Taking a look at how all the "default CM6 themes are built with css-in-js approaches, it occurs to me that making a single css variable based theme would be WAY easier than rewriting all the boiler plate code for a css-in-js theme. If a generic theme was created with css vars as values instead of hardcoded hex codes, then changing theme colors would be as simple as setting css vars and no one would have to search to find some theme they wanted as a package, etc. Also, with css vars, a light/dark mode theme could be supported out of the box just by changing the css var values at runtime based on the mode or prefers-color-scheme settings etc.
Would this repo be a good place to create such a theme or do you think it should be its own repo/pkg?
Taking a look at how all the "default CM6 themes are built with css-in-js approaches, it occurs to me that making a single css variable based theme would be WAY easier than rewriting all the boiler plate code for a css-in-js theme. If a generic theme was created with css vars as values instead of hardcoded hex codes, then changing theme colors would be as simple as setting css vars and no one would have to search to find some theme they wanted as a package, etc. Also, with css vars, a light/dark mode theme could be supported out of the box just by changing the css var values at runtime based on the mode or
prefers-color-schemesettings etc.Would this repo be a good place to create such a theme or do you think it should be its own repo/pkg?