Skip to main content

Module theme

Module theme 

Source
Expand description

The Cybercore theme engine: versioned theme documents, validation, contrast reports, built-in and user theme catalogs, selection, and CSS.

Existing palette files remain the built-in source of truth. Custom themes use ThemeDocument and live under the user’s Cybercore config directory, so consumers can load them without rebuilding their binary.

Structs§

AppearanceContrastCheck
ContrastCheck
ContrastReport
DesignTokens
Shared typography, density, corners, and motion settings. These are deliberately enums/allowlisted values so imported themes cannot inject arbitrary CSS into an application’s page.
PackConflicts
PackImportReport
ThemeCatalog
Theme index with embedded built-ins and optional custom documents. In-memory operations never read environment variables or access the filesystem.
ThemeDocument
A saved theme, portable as JSON and independent of a specific app.
ThemeEntry
ThemeMetadata
ThemePackDocument
A portable bundle of themes that can be shared and installed together.
ThemePackMetadata
ThemeQualityReport

Enums§

Appearance
Corners
Density
Motion
PackConflictPolicy
What to do when an imported pack contains IDs already in the catalog.
ThemeError

Constants§

FORMAT_VERSION
THEME_PACK_FORMAT_VERSION

Functions§

contrast_ratio