<kern-theme-toggle>
Icon button switching between dark (default) and light; remembers the choice (localStorage kern-theme). The icon shows the current theme (moon = dark). Set the theme before first paint with initTheme() or the inline snippet from the README.
Examples
Dark and light theme
The button switches between dark (default) and light and remembers the choice in localStorage (kern-theme). small makes it 28px for the topbar. Its accessible label describes the action (label-light, label-dark).
Properties
labelDarkstring | undefined
Accessible label while light.
labelLightstring | undefined
Accessible label while dark.
smallboolean
28px instead of 34px.