Snapshot for
@system-core/core0.8.x. Current docs live at /.
theme
Generated Reference
Theme tokens, presets, and CSS generation utilities for branded sites and editor tooling. This page is generated from core/cms/theme/index.ts against package version 0.8.1 on the 0.8 docs line.
Import
ts
import { THEME_PRESETS, tokensToCssVariables } from '@system-core/core/theme'Entry
| Field | Value |
|---|---|
| Import path | @system-core/core/theme |
| Package export | ./theme |
| Source entry | core/cms/theme/index.ts |
| Exported symbols | 14 |
| Runtime file | ./dist/theme.js |
| Types file | ./dist/theme.d.ts |
Use This Surface When
- Use this for site theming, token application, and preset-driven styling.
- Keep theming shared across public sites and admin builders.
- Pair it with
site-clientandsectionsfor visual composition.
Public Surface
Functions
| Export | Kind | Source |
|---|---|---|
applyThemeToDom | function | core/cms/theme/css.ts |
generateThemeInlineScript | function | core/cms/theme/css.ts |
tokensToCssVariables | function | core/cms/theme/css.ts |
Consts
| Export | Kind | Source |
|---|---|---|
THEME_PRESET_META | const | core/cms/theme/presets.ts |
THEME_PRESETS | const | core/cms/theme/presets.ts |
Interfaces
| Export | Kind | Source |
|---|---|---|
ThemeBackgroundColors | interface | core/cms/types/index.ts |
ThemeBrandColors | interface | core/cms/types/index.ts |
ThemeCategoryColors | interface | core/cms/types/index.ts |
ThemeConfig | interface | core/cms/types/index.ts |
ThemeFooterColors | interface | core/cms/types/index.ts |
ThemeHeaderColors | interface | core/cms/types/index.ts |
ThemePresetDefinition | interface | core/cms/types/index.ts |
ThemeStatusColors | interface | core/cms/types/index.ts |
ThemeTokens | interface | core/cms/types/index.ts |