system-ui / theme-specification

A specification for defining theme objects & design tokens for use with UI components
https://system-ui.com/theme
531 stars 19 forks source link

Question - convert theme to SCSS variables #13

Open yairEO opened 4 years ago

yairEO commented 4 years ago

Love the theme spec. Been using on some projects with great success (with the awesome xstyled)

Is there any way, when working on vanilla codebase, to convert (using some npm script assumably) the theme to SCSS variables?

I would expect such solution to read the theme file, create a SCSS file with the variables which could be imported & used by other SCSS files

Thanks!