v1.0.1
Bug Fixes
CSS variable names are now fully hyphenated.
Alpha variant suffixes (-alpha-primary, -alpha-secondary, -alpha-tertiary, -alpha-quaternary) and --stp-button-radius previously used underscores, which is non-standard for CSS custom properties. They are now hyphenated consistently.
If you reference any of these variables in your stylesheets, update the underscores to hyphens.
Theme intent is preserved when the themes config is replaced at runtime.
Swapping the themes prop on ThemeProvider after mount previously reset the active theme to the config default. It now keeps the user on the equivalent light or dark theme in the new config, and respects whether they were following system preference.
What's new in the demo
The demo site has new dedicated routes for ThemeToggle and ThemePicker, plus a persistent footer for navigation between examples.
Upgrading to v1.0.0
Update any stylesheet references that use the old underscore-based variable names:
| Before | After |
|---|---|
-alpha_primary |
-alpha-primary |
-alpha_secondary |
-alpha-secondary |
-alpha_tertiary |
-alpha-tertiary |
-alpha_quaternary |
-alpha-quaternary |
--stp-button_radius |
--stp-button-radius |
No other breaking changes.