@codemonster-ru/vueforge-theme
v1.2.0
Published
Shared theme engine, tokens, and preset runtime for the VueForge ecosystem.
Maintainers
Readme
VueForge Theme
Shared neutral theme engine, token contract, and preset runtime for the VueForge ecosystem.
Includes
- 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.
Usage
import {
applyThemeConfig,
applyThemeConfigs,
createThemePreset,
resolveTheme,
resolveThemeConfig,
themeConfigsToCssText,
} from "@codemonster-ru/vueforge-theme";Package Boundary
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
