提交 ace5dd29 编写于 作者: E
feat: CSS variable injection, cssvar helper, media query theme pattern for cssvar
When using <ThemeProvider>, css variables synthesized from the given theme will be automatically injected into the page. The developer can then decide to consume the variables via the new "cssvar" helper. In tandem with this change, I have introduced a special key to the theme object definition ("MQ_THEME_KEY") that allows for media-query based adaptation of theme. Note: this only applies to cssvar usage, useTheme and such will not adapt the retrieved value based on MQ. The primary use case for this functionality is easier SSR support for things like dark mode.
Showing with 257 addition and 43 deletion