Svelte 5
@themvora/svelte
Svelte 5Stores7 exports
Svelte 5 provider, context stores and runes-based reactivity.
Verified with Themvora 2.0.0·Updated 2026-09-17
Prerequisites
Package Manager
npm, pnpm, yarn, or bun
Dependencies
@themvora/core (peer dependency)
Use Case
Svelte 5 projects with theme support
Installation
Install the integration — @themvora/core is pulled in automatically as a dependency.
pnpm add @themvora/svelteQuick Start
Complete copy-paste usage for this package.
<script lang="ts">
import { ThemeProvider } from "@themvora/svelte";
</script>
<ThemeProvider defaultTheme="light">
<App />
</ThemeProvider>API Reference
Curated highlights below. The complete generated reference — every signature, parameter and type — is at /api-reference/svelte.
Provider
| Export | Description |
|---|---|
ThemeProvider | Context-based provider with DOM / CSS bindings. |
getThemeRuntime / setThemeRuntime | Context helpers. |
Stores
| Export | Description |
|---|---|
useTheme | Reactive readable stores for theme, mode and family. |
useThemeHistory / useThemeBatch | History and batching. |
useThemeSnapshot / useThemeRestore | Serialize / restore. |
useThemeLifecycle / useThemePacks | Events and packs. |
Components
| Export | Description |
|---|---|
ThemeScope | Scoped theming. |