@theme-kit/solid
v1.3.0
Published
SolidJS bindings for Theme Kit.
Maintainers
Readme
@theme-kit/solid
Signals-first theming for Solid with a context provider and scoped subtrees.
Reference snippet
import { ThemeProvider, useTheme } from "@theme-kit/solid";
function ThemeSwitcher() {
const { theme, mode, toggleTheme } = useTheme();
return <button onClick={toggleTheme}>{theme().name} · {mode()}</button>;
}
export function App() {
return (
<ThemeProvider themes={themes}>
<ThemeSwitcher />
</ThemeProvider>
);
}Signals
useTheme — signals for theme, mode, family with getters and setters, plus useThemeHistory, useThemeBatch, useThemeSnapshot, useThemeRestore, useThemeLifecycle, useThemePacks.
Components
ThemeProvider (context + bindings), ThemeScope — scoped theming.
Documentation
Full API reference and guides: Theme Kit docs. All packages: npm.
