Skip to content

v1.0.0

Choose a tag to compare

@gnomical gnomical released this 11 Apr 01:33
· 7 commits to main since this release
93477b8

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 tree
  • ThemePicker and ThemeToggle as first-class exports
  • setThemesConfig on the context for runtime theme config updates
  • Per-theme label and JSX icon in ThemeConfig
  • 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 → systemThemes
  • ThemeConfig.browser_theme_color → browserThemeColor; icon is now () => JSX.Element
  • calculate_variants → calculateVariants; menu_placement → menuPlacement
  • Module-level currentTheme and setTheme exports removed — use useTheme() instead
  • Dropdown is no longer a public export

PRs

  • Refactor: True Provider Architecture with Composable UI Components by @gnomical in #12

Full Changelog: v0.11.0...v1.0.0