Invisible Docs
GalerieTokens

Theme-Umschalter — component.theme-switcher

Theme-Umschalter für Hell/Dunkel/System oder den Theme-Katalog. Website-Modus mit optionalem Fenster-/Bereichs-Scope: App und Subapp wählen unabhängig vom Desktop; die temporäre Auswahl wird pro scopeKey gemerkt und über Standard zurückgesetzt. 1.6: feste Texte mehrsprachig (invisible_i18n). 1.9.0 (

Componentv1.9.0Aktionenweb.documentweb.applicationdesktop.shellbuilder.preview

Beispiele

Icons (Hell / Dunkel / System — wirkt sofort auf die Seite)

Mit Beschriftungen

Website-Themes (inline)

Design

Katalog mit Gruppen, Leisten-Variante (dock, 1.4.0)

Design
FrameworkWebsiteEigenes

Eigenschaften

PropTypDefault
lightThemestring""
darkThemestring"demo-dark"
labelsbooleanfalse
modestring: appearance | website | desktop"appearance"
desktopCyclestring: all | manual"all"
labelstring"Design"
sourcestring: list | all"list"
frameThemestring""
frameThemeDarkstring""
themesarray[]
defaultLabelstring"Standard"
variantstring: floating | inline | dock"floating"
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""
scopestring: document | window | region"document"
scopeKeystring""

Events & Slots

Events: change

Stellschrauben (Komponenten-Tokens)

TokenDefault
--theme-switcher-elevation-controlvar(--elevation-control)
--theme-switcher-focus-ring-colorvar(--focus-ring-color)
--theme-switcher-focus-ring-offsetvar(--focus-ring-offset)
--theme-switcher-focus-ring-widthvar(--focus-ring-width)
--theme-switcher-radius-fullvar(--radius-full)
--theme-switcher-surface-defaultvar(--color-surface-default)
--theme-switcher-surface-sunkenvar(--color-surface-sunken)
--theme-switcher-text-defaultvar(--color-text-default)
--theme-switcher-text-mutedvar(--color-text-muted)
--theme-switcher-surface-overlayvar(--color-surface-overlay)
--theme-switcher-bordervar(--color-border-default)
--theme-switcher-border-strongvar(--color-border-strong)
--theme-switcher-elevation-overlayvar(--elevation-overlay)
--theme-switcher-radius-panelvar(--radius-surface)
--theme-switcher-radius-itemvar(--radius-control)
--theme-switcher-activevar(--color-accent-soft)

Genutzte Design-Tokens

border.hairline color.accent-soft color.border.default color.border.strong color.surface.default color.surface.overlay color.surface.sunken color.text.default color.text.muted container.sm duration.fast easing.standard elevation.control elevation.overlay focus.ring-color focus.ring-offset focus.ring-width font.family.default layer.dropdown layer.sticky radius.control radius.full radius.surface size.05 size.1 size.10 size.2 size.24 size.3 size.4 size.5 size.8 text.sm text.xs weight.semibold