vscode-colorize icon indicating copy to clipboard operation
vscode-colorize copied to clipboard

styled-components theme support

Open nbar1 opened this issue 5 years ago • 1 comments

Would be awesome to have the extension be given a styled-components theme file in the config that it could then match the color to the theme variable.

For instance, this would be colored:

color: ${props => props.theme.primaryColor};

nbar1 avatar May 22 '19 17:05 nbar1

I agree with and have another idea above this idea when having a conditional in theme passed to theme provider and you use a color of the theme the colorize add two ( or more ) colors in the same expression like this

/*     |      red      |      blue        |    */
color: ${props => props.theme.primaryColor};

mateushnsoares avatar Aug 05 '20 15:08 mateushnsoares