Skip to Content
Documentation
Getting startedComponentsChartsTheming
Get Pro
Concepts
Overview
Customization

Layer styles

Fill, outline, indicator, overlay, and backdrop compositions

Layer styles name a surface treatment. Palette styles read colorPalette, so they follow accent and status. Surface styles read semantic tokens.

<Box layerStyle="fill.solid" colorPalette="accent" />
<Box layerStyle="overlay" />

Palette treatments

StyleWhat it sets
fill.mutedcolorPalette.muted + colorPalette.fg
fill.subtlecolorPalette.subtle + colorPalette.fg
fill.surfaceMuted fill with an inset colorPalette.subtle ring
fill.solidcolorPalette.solid + colorPalette.contrast
outline.subtleInset ring, no fill
outline.solid1px colorPalette.solid border
indicator.top|bottom|start|endBar using colorPalette.solid

Indicator thickness and offset are --indicator-thickness (default 3px) and --indicator-offset-x / --indicator-offset-y.

Surfaces

These do not read colorPalette. They are the floating-panel and dim treatments used by dialogs, menus, and popovers.

StyleWhat it sets
overlaybg.overlay, radii.panel, shadows.overlay, --overlay-effect
backdropbg.backdrop, --backdrop-effect

--overlay-effect defaults to blur(10px) via Theme.

State

StyleWhat it sets
disabledopacity: 0.5, cursor: not-allowed
noneEmpty. Clears an inherited layer style

layerStyle: fill

fill.muted
fill.subtle
fill.surface
fill.solid

layerStyle: outline

outline.subtle
outline.solid

layerStyle: indicator

indicator.top
indicator.bottom
indicator.start
indicator.end

layerStyle: surface

overlay
backdrop

layerStyle: state

disabled
none

Previous

Text Styles

Next

Overview