@theme-kit/svelte
v1.3.0
Published
Svelte 5 bindings for Theme Kit.
Downloads
999
Maintainers
Readme
@theme-kit/svelte
Svelte 5 context-based provider with reactive readable stores.
Reference snippet
<script>
import { useTheme } from "@theme-kit/svelte";
const { theme, mode, toggleTheme } = useTheme();
</script>
<button onclick={toggleTheme}>
{$theme.name} · {$mode}
</button>Provider
ThemeProvider (context, DOM + CSS variable bindings); getThemeRuntime() / setThemeRuntime() context helpers.
Stores
useTheme — reactive readable stores for theme, mode, family plus useThemeHistory, useThemeBatch, useThemeSnapshot, useThemeRestore, useThemeLifecycle, useThemePacks.
Components
ThemeScope — scoped theming.
Documentation
Full API reference and guides: Theme Kit docs. All packages: npm.
