Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const subtle = ({ color, theme }: AlertStylePropsWithTheme) => {
let darkBg = theme.colors[color] && theme.colors[color][200];
return {
light: {
bg: `${color}.100`,
},
dark: { bg: colorEmphasis(darkBg, "lowest") },
};
};