Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const subtleStyle = ({ theme: { colors }, color }: PropsWithTheme) => {
const _color = colors[color] && colors[color][200];
const alphaColors = generateAlphaColors(_color);
const darkModeBg = alphaColors[300];
return {
light: {
bg: get(color, "100"),
color: get(color, "800"),
},
dark: {
bg: darkModeBg,
color: get(color, "200"),
},
};
};