Dark mode
Choose light, dark, or system mode. The selection persists and updates every preview.
Overview
Choose light, dark, or system mode. The selection persists and updates every preview.
Configuration
Use the design switcher in the header to test this setting live.
Component behavior
The setting is inherited by components, blocks, templates, and playground previews.
Use semantic colors in both modes
Use shared surface, text, border and focus tokens instead of hard-coded white and black. Check disabled, hover, selected and error states in both themes using the appearance control.
.panel { background: var(--wrn-color-surface); color: var(--wrn-color-text); border: 1px solid var(--wrn-color-border); }Verify the result
Open the matching component page, change its options, and try the keyboard controls. Copy the demonstrated configuration into your page, then replace sample content with your data.