Skip to content
Nerdfishui
Esc
↑↓navigate↵open⌘Jpreview

Elevation

Shadow and interaction-state tokens.

Elevation is a hairline border plus one soft shadow. The border separates the layer; the shadow only adds depth, and is stronger in dark mode where soft shadows disappear.

shadow-hairline
Controls and cards that sit on a surface: inputs, outline buttons, toggles, the selected tab, cards.
shadow-raised
Groups and handles a step above the page: segmented tabs, slider thumbs, floating sidebars.
shadow-floating
Anything that floats above the page: menus, popovers, selects, tooltips.
shadow-overlay
Modal layers: dialogs, alert dialogs and sheets.

Interaction states

Tints of the text color for hover, selected and pressed backgrounds. They work on every neutral surface.

bg-state-hover
Hovered rows and controls.
Menu item
bg-state-selected
Selected or pressed items, such as an active toggle.
Menu item
bg-state-active
Selected items while hovered or pressed.
Menu item