styled-components / vscode-styled-components

Syntax highlighting for styled-components
MIT License
917 stars 117 forks source link

xstyled + strongly-pathed theme colors #422

Open quantizor opened 1 year ago

quantizor commented 1 year ago

It’d be great to have an option for this extension to enable an “xstyled” mode that allows some new options for CSS values based on theme (would need a way to specify the file and export name to grab it for analysis.)

jasonwilliams commented 1 year ago

Hey @probablyup could you give some more context as to what xstyled is or what an "xstyled mode" would look like? What sort of new options for CSS values would you expect to see?

quantizor commented 1 year ago

Hey yeah! xstyled is a meta framework built on top of styled-components that allows for CSS enriched with theme values: https://xstyled.dev/

It’s part of our org now :)

Part of it is a theme specification for defining things like named specialty colors that map back to theme.colors.* https://xstyled.dev/docs/magic-styled-components/

I’m definitely open to helping/doing this work if no one else is interested, just wanted to start the issue and get some eyeballs on it!