Add a preprocessor (ref #32) to generate CSS file for external consumption or preprocess into the ThemeWrapper style block (with global styles), negating the need for the current JS-based solution to load on mount.
Thoughts
how do we determine whether preprocessor is in use (e.g. when do we not execute the onMount behavior)?
do we add styles to ThemeWrapper style block with :global(html) or :root? Does this have unintended behaviors with initial load?
add an option to "eject" the created stylesheet for external consumption
Description
Add a preprocessor (ref #32) to generate CSS file for external consumption or preprocess into the
ThemeWrapper
style block (with global styles), negating the need for the current JS-based solution to load on mount.Thoughts
:global(html)
or:root
? Does this have unintended behaviors with initial load?