Skip to content
Theme

Elevation and radius

Three elevations, each a contact shadow and an ambient one, denser on dark surfaces where a light shadow would not read. Corner radii from a hairline to a pill.

Elevation

TokenValuePreviewUse
shadow.sm0px 1px 2px -1px oklch(0% 0 0 / 0.6), 0px 1px 3px 0px oklch(0% 0 0 / 0.6)Raised a little: a card, a tag.
shadow.md0px 2px 6px 0px oklch(0% 0 0 / 0.6), 0px 6px 20px -2px oklch(0% 0 0 / 0.6)Floating: a popover, a menu.
shadow.lg0px 8px 8px -8px oklch(0% 0 0 / 0.6), 0px 10px 30px -4px oklch(0% 0 0 / 0.6)Above everything: a dialog, a sheet, a toast.

Radius

TokenValuePreviewUse
radius.xs0.125remA checkbox box, inline code.
radius.sm0.25rem
radius.md0.5rem
radius.control0.625remButtons, text fields, selects and segmented controls.
radius.lg0.75rem
radius.xl1remScreenshot frames and marketing cards.
radius.full9999pxA pill or a circle.