stitchesjs / stitches

[Not Actively Maintained] CSS-in-JS with near-zero runtime, SSR, multi-variant support, and a best-in-class developer experience.
https://stitches.dev
MIT License
7.73k stars 249 forks source link

Inject theme vars (css properties) on-demand #1093

Open hackwaly opened 1 year ago

hackwaly commented 1 year ago

Currently theme vars are injected eagerly into :root element. Actually some vars are defined but never used.

hadihallak commented 1 year ago

I think this could potentially be slower than injecting them before hand and might make the code more branched but keeping this issue open for the future.