↧
Answer by Dennis Vash for Using Styled-Map with PolishedJS
darken Returns a string value for the darkened color. darken(amount: (number | string), color: string): string As 2nd argument, you need to pass a string where colorProps in your case is a function....
View ArticleUsing Styled-Map with PolishedJS
I have the following Styled-Map object: export const colorProps = styledMap({ default: yellow, primary: blue, secondary: green, }) I use it as follows in a Styled Component: const MyComponent =...
View Article