Elevation
The shadows the components use, in the Raised look.
Levels
Light and dark recipe for each.
- tray
The frame a card's surface rests in. No shadow; filled with
tint-tray.- raised
A card's surface, a dialog's body.
Light 0 0 0 1px rgb(0 0 0/0.03), 0 1px 2px rgb(0 0 0/0.04)
Dark inset 0 1px 0 rgb(255 255 255/0.06), 0 0 0 1px rgb(255 255 255/0.03)- raised-hover
A card that is a link, under the pointer.
Light 0 0 0 1px rgb(0 0 0/0.04), 0 2px 4px rgb(0 0 0/0.05), 0 14px 24px -14px rgb(0 0 0/0.22)
Dark inset 0 1px 0 rgb(255 255 255/0.09), 0 0 0 1px rgb(255 255 255/0.05), 0 14px 24px -14px rgb(0 0 0/0.8)- control
Secondary buttons and fields: a hairline that sits on the control, and a 1px drop.
inset 0 0 0 1px color-mix(in oklab, var(--foreground) 13%, transparent), 0 1px 2px rgb(0 0 0/0.05)
- tooltip
Tooltips.
Light 0 0 0 1px rgb(0 0 0/0.06), 0 2px 4px -1px rgb(0 0 0/0.06), 0 10px 24px -8px rgb(0 0 0/0.16)
Dark inset 0 1px 0 rgb(255 255 255/0.06), 0 0 0 1px rgb(255 255 255/0.07), 0 10px 24px -8px rgb(0 0 0/0.6)- popover
Menus, selects, popovers.
Light 0 0 0 1px rgb(0 0 0/0.06), 0 2px 4px -1px rgb(0 0 0/0.06), 0 12px 28px -8px rgb(0 0 0/0.2)
Dark inset 0 1px 0 rgb(255 255 255/0.06), 0 0 0 1px rgb(255 255 255/0.07), 0 12px 28px -8px rgb(0 0 0/0.6)- toast
Toasts.
Light 0 0 0 1px rgb(0 0 0/0.06), 0 4px 10px -4px rgb(0 0 0/0.08), 0 16px 32px -12px rgb(0 0 0/0.18)
Dark inset 0 1px 0 rgb(255 255 255/0.06), 0 0 0 1px rgb(255 255 255/0.06), 0 16px 40px -12px rgb(0 0 0/0.7)- dialog
Dialogs: the one surface over a scrim.
Light 0 0 0 1px rgb(0 0 0/0.06), 0 4px 10px -4px rgb(0 0 0/0.08), 0 24px 48px -12px rgb(0 0 0/0.25)
Dark inset 0 1px 0 rgb(255 255 255/0.05), 0 0 0 1px rgb(255 255 255/0.06), 0 24px 60px -12px rgb(0 0 0/0.7)
States
- focus
A focused field: the hairline darkens and a soft 3px halo appears. Buttons and rows take a 2px outline in
foreground/50, 2px out.inset 0 0 0 1px color-mix(in oklab, var(--foreground) 48%, transparent), 0 0 0 3px color-mix(in oklab, var(--foreground) 10%, transparent)
- invalid
A focused field with an error.
inset 0 0 0 1px var(--destructive), 0 0 0 3px color-mix(in oklab, var(--destructive) 16%, transparent)
- selected-agent
The node or step in focus in the AI agent components.
Light 0 0 0 1px oklch(0.62 0.16 250/0.7), 0 0 0 4px oklch(0.62 0.16 250/0.12)
Dark 0 0 0 1px oklch(0.75 0.13 250/0.7), 0 0 0 4px oklch(0.75 0.13 250/0.12)
In each look
- •
Raised uses the recipes above.
- •
Inset drops the hairline ring: a card's grey panel sits in a white frame, and floating surfaces keep only their drops.
- •
Flat has no shadows. Floating surfaces are a 6% tint (10% in dark) on the background, and controls keep their hairline.