Versions in this module Expand all Collapse all v0 v0.8.0 Sep 26, 2026 Changes in this version + func ValidTokenKeys() []string + func ValidateTokens(tokens map[string]string) []string + type Mode string + const ModeDark + const ModeDefault + const ModeLight + type Options struct + Density string + Mode Mode + SourcePrefix string + type Theme struct + Tokens map[string]string + func FromDesignSystem(ds *dss.DesignSystem, opts Options) (*Theme, error) + func FromDesignSystemWithModes(ds *dss.DesignSystem, opts Options) (*Theme, *uispec.ThemeRef, error) + func (t *Theme) CSS(selector string) string + func (t *Theme) CSSWithModes(selector string, modes map[string]map[string]string) string + func (t *Theme) ThemeRef(id string, mode Mode) *uispec.ThemeRef