Files
kryon/docs/THEMING.md
T
waozi 9383e95e57 Add the GPU scene renderer, hosted widget aggregates and component packages
Restructure maintained components into per-widget source folders, add the
portable scene GPU renderer with GLSL shaders, hosted widget aggregates,
GTK theming and multi-target clipboard support, rebuild the guide with
theming guidance, and move the toolchain to the Ziran revision without
module root limits so the eighty component roots resolve everywhere.
2026-11-12 00:12:06 -03:00

973 B

Theme customization

Kryon uses one modern CUI-inspired style. Light and dark are color modes of that style; applications do not need a style-pack registry or selector.

Import kryon/Theme for theme tokens. InstallDefaultTheme(dark) installs the default palette, metrics, fonts, shadows and motion. SetThemeMode(dark) changes the palette and keeps installed metrics, fonts and motion settings. It resets palette colors, so reapply custom accents after changing modes.

Use WithAccent(theme, accent, on_accent, accent_strong, accent_subtle) and InstallTheme(theme) to customize colors. ThemePolicy and ResolveDark support system, light and dark preferences. SetReducedMotion controls motion.

Typed style rules and optional CSS remain available for application-specific colors and control styling, using the same components and interaction behavior.

The former style-picker gallery route remains a single-style example so existing links continue to open.