Theming

Origon UI ships 6 first-class themes — Kripto, Hisse, and Global brands each in Dark and Light modes. Figma variable collection: 01-Color Tokens (node 3393:141).

BrandDarkLight
Kriptodefault✓
Hisse✓✓
Global✓✓

Other variants ship as sub-path exports.

How themes are structured

  • Primitives (colors, sizes, typography) don’t change across themes — they are the raw palette + text scale + dimensions.
  • Semantic tokens (semantic.button.primary, semantic.text.focus, semantic.level.surface, …) point to different primitives per brand × theme.
  • Themed dimensions (spacing.*, radius.*) currently resolve identically in Dark and Light modes, but the pipeline supports per-theme overrides.

Runtime switching (React)

Set data attributes on the root element and the CSS variables from

Or set the attributes yourself:

Then reference tokens via CSS variables:

Compile-time selection (React)

For SSR / server-render use cases, import a specific variant directly:

Or use the map:

Values by variant

Roadmap

  • Emit all 6 variants as React sub-path exports.
  • Ship themes.css with scoped [data-brand][data-theme] selectors.
  • applyTheme(brand, theme) runtime helper.
  • Docs live-preview brand/theme switcher.
  • Migrate all 15 component ports to consume theme from context/environment instead of static OrigonSemantic.* (currently only React uses runtime CSS