Quantcast
Channel: Using Styled-Map with PolishedJS - Stack Overflow
Browsing index pages (2 articles)

Using 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


Image may be NSFW.
Clik here to view.

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 Article

Browsing index pages (2 articles)


Latest Images