ThemePicker
moleculesTheme switcher: the trigger shows the active palette swatch and opens a popover grid of light and dark themes, with an optional auto mode.
Appearance settings
a settings row beside FontScalePicker and SoundSettings; auto offers a row that follows the system scheme; theme.label reads the store.
Theme Dark · dark
Text size normal
Sounds Clicks, toggles and toasts
Boxes and trigger chrome
box xs/sm/md/lg sizes the square; variant/tone/pill/control pass to the Popover trigger; placement picks the corner.
Header toolbar, auto labels, disabled, store access
the picker in a Toolbar next to FontScalePicker; autoLabel/lightLabel/darkLabel rename the groups; theme.set and theme.toggle drive it from code.
disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
box | 'xs' | 'sm' | 'md' | 'lg' | 'md' | Shared square box scale (`--box-xs/sm/md/lg`) for an icon-only trigger, pinning the square exactly. The default trigger floors at the `sm` box and grows with its content; override that floor with `style="min-width: …; min-height: …"` for any other square. |
placement | Placement | 'bottom-end' | |
variant | TriggerVariant | — | Button-compatible trigger chrome. Omitting every chrome prop preserves the original ghost icon-button trigger. `toggle` renders the trigger as the `Toggle` chip itself, so a trigger and a Toggle side by side share one box — `size`, `pill` and `pressed` behave as they do on `Toggle`. |
tone | TriggerTone | — | |
size | TriggerSize | — | |
pill | boolean | — | Fully rounded trigger (`--r-pill`), as on `Button`. |
control | boolean | — | Uniform toolbar/composer control height; follows a sized `Cluster`. |
block | boolean | — | |
bare | boolean | — | Drop the default ghost-icon chrome so the trigger is an unstyled button you fully own (pair with `triggerClass`). |
hitArea | 'auto' | 'compact' | — | Icon-only triggers grow a touch hit slab on coarse pointers; `compact` opts out. |
disabled | boolean | — | |
auto | boolean | false | Offer an "auto" row that follows `prefers-color-scheme`, remembering one light and one dark theme. |
autoLabel | string | 'Auto' | |
autoHelp | string | 'Follow the system light/dark setting' | |
lightLabel | string | 'Light' | |
darkLabel | string | 'Dark' | |
class | string | '' | |
style | string | '' |