Themes & density

The playground below is a single container withdata-pl-theme and data-pl-density attributes. Settingdata-pl-theme flips color-scheme, which drives thelight-dark() tokens; data-pl-density resizes controls via the control tokens. No JavaScript is needed in the framework: the toggles here just change two attributes.

Theme
Density
Enterprise Palette

Live preview

This whole panel uses --pl-color-bg,--pl-color-text, and --pl-color-border. The control below uses --pl-control-block-size: change density to see it resize. Change palette to see full theme color ramp steering.

A control-height bar
Accent BadgeSuccess

Palette

Dark-first midnight preset

data-pl-preset="midnight" combines the dark color scheme with the midnight palette, including derived accent and focus tokens.

Incident command

Dark-first operations surface

3 open

The preset applies the midnight surfaces, cobalt accent, and focus ring without a second attribute.

Healthy

Reduced motion, contrast & forced colors

prefers-reduced-motion zeroes --pl-motion-scale.prefers-contrast: more strengthens structural boundaries and focus affordances.forced-colors (Windows High Contrast) remaps the semantic tokens to system colors. Toggle these in your OS or DevTools rendering pane to verify.