Theming
foundationsThirty built-in light and dark themes picked through the theme store, plus theme.register() to ship your own [data-theme] block.
Register a custom theme
theme.register({ id, label, mode, icon, themeColor }) adds it to every picker; the colours live in your own :global([data-theme=id]) rule.
Current theme: Dark
Pickers and auto mode
ThemePicker lists theme.all; auto adds a row that follows the system scheme and remembers one light and one dark palette.
mode: dark · resolved: dark
Driving the store from code
theme.all lists built-ins and registered themes; theme.set(id), theme.toggle() and theme.next read and write the same persisted preference. An app that stores the preference itself calls theme.configure({ persist: false }) before the first render, replays it with theme.hydrate(pref) and listens on theme.onchange.
32 themes registered