themeVarsToVars
Theme
stable
Flatten the structured IThemeVars token bucket (color / rounded / border / typo / shadow / spacing / motion groups) into a flat record of `--origam-*` CSS variable names to values.
API
Signature
Signature TypeScript complète, extraite du fichier util.
API
Paramètres
Paramètres d'entrée acceptés par cet util.
- varsrequisIThemeVars
- The structured token bucket. Each top-level key (`color`, `rounded`, `border`, `typo`, `shadow`, `spacing`, `motion`) is walked recursively and its leaves are emitted as `--origam-{group}-{path}: value` pairs.
API
Valeur de retour
La valeur retournée par cet util.
- A flat `Record<string, string>` keyed by full CSS variable names. Groups not present in the input are silently skipped.
Usage
Exemples
Extraits de code prêts à coller.
Flatten a partial token bucket