Repository navigation
v1.0.0
After a significant refactor, v1 is here.
The biggest change is architectural: ThemeProvider is now a true SolidJS context provider. It manages all theme state, exposes it via useTheme() and most importantly, doesn't render anything but it's children. UI components ThemePicker and ThemeToggle are decoupled from the provider and can be placed anywhere within its descendants.
What's new
useTheme()hook for consuming theme state anywhere in the treeThemePickerandThemeToggleas first-class exportssetThemesConfigon the context for runtime theme config updates- Per-theme
labeland JSXiconinThemeConfig - Scoped CSS Modules per component
- Vite-based library build replacing Rollup
- Full TypeScript types exported (
ThemeContextValue,ThemePickerProps,ThemeToggleProps, etc.)
Breaking changes from 0.x
ThemesConfigObject→ThemesConfig;system_theme_config→systemThemesThemeConfig.browser_theme_color→browserThemeColor;iconis now() => JSX.Elementcalculate_variants→calculateVariants;menu_placement→menuPlacement- Module-level
currentThemeandsetThemeexports removed — useuseTheme()instead Dropdownis no longer a public export
PRs
Full Changelog: v0.11.0...v1.0.0