Shared neutral theme engine, token contract, and preset runtime for the VueForge ecosystem.
- theme token types
- theme preset types
- preset merging and resolution helpers
- single and multi-config CSS variable serialization helpers
- mode helpers for
light,dark, andsystem - shared motion tokens
This package is intentionally engine-only. It does not ship a built-in defaultThemePreset.
Opinionated presets belong in consumer packages such as @codemonster-ru/vueforge-core.
import {
applyThemeConfig,
applyThemeConfigs,
createThemePreset,
resolveTheme,
resolveThemeConfig,
themeConfigsToCssText,
} from "@codemonster-ru/vueforge-theme";Use @codemonster-ru/vueforge-theme when you need:
- neutral theme types and preset helpers
- runtime CSS variable serialization
- multi-package theme orchestration
- mode helpers without depending on VueForge components
Use @codemonster-ru/vueforge-core when you need:
- the built-in
defaultThemePreset - Vue plugin integration
VfThemeProvideranduseTheme()- the component library itself