Light themes
Dark themes

Make your own

Space and shape

Space, corners, sizes, the one shadow and the rest of the scale: each a token, with its value and what it is for.

Space

Space inside components comes from these steps; the gap between a tray and what it holds is the smallest one.

PictureTokenValueUse
--space-14pxThe gap between segments, tabs and stepper buttons; the padding of the tray that holds them.
--space-28pxLabel to field; icon to text in a small control; between stacked choices.
--space-312pxControl to its text (checkbox, radio, avatar); rows of a compact list.
--space-416pxThe grid gap between cards; between fields; icon to label in a large button.
--space-520pxThe padding of an accordion row or a list row.
--space-624pxBetween a heading and its content inside a card.
--space-728pxCard padding on a phone (the lower end of card-pad).
--space-832pxHorizontal padding of a large button; between groups inside a card.
--space-936pxBetween sections of a form.
--space-1040pxPage padding on desktop (the upper end of page-pad).
--space-1248pxCard padding on desktop (the upper end of card-pad).
--space-1664pxBetween the parts of an empty state; large vertical breathing room inside a card.

Corners

Corners are very round and step down with nesting. Nothing has a hard corner.

PictureTokenValueUse
--radius-card40pxCards, dialogs, sheets and drawers. Radii step down with nesting.
--radius-panel28pxA panel inside a card; popovers and hover cards.
--radius-button20pxLarge buttons; the tray of a segmented control, tab strip or stepper; menus.
--radius-input16pxInputs, selects, textareas, choice cards, medium buttons, toasts.
--radius-control14pxSmall buttons, segments, tabs, menu items, calendar days.
--radius-chip12pxChips, badges, tooltips, extra-small buttons, avatars.
--radius-mark4pxChart marks and their key swatches, the checkbox, a key cap.
--radius-pill999pxMeters, sliders and the switch only.

Sizes

The heights of controls. Nothing a finger must hit is smaller than the hit size.

PictureTokenValueUse
--size-lg64pxHeight of a large button: the main action of a page or card.
--size-md56pxHeight of inputs, selects, and a medium button that sits in a row with them.
--size-segment52pxHeight of a segment and of a stepper button.
--size-sm48pxHeight of a small button and of the theme switch, in a header or toolbar.
--size-hit44pxThe smallest target: tabs, menu items, calendar days, icon buttons in a row.
--size-xs40pxHeight of a chip, and of an extra-small button in a dense toolbar or table.
--size-icon20pxThe icon box. An icon is drawn on Lucide's 24px grid and shown at this size, with a 2px stroke.

Layout

One centred container, a 12-column bento on a 16px gap, and the measure of a column of text.

PictureTokenValueUse
--container1360pxThe widest the centred page container gets.
--page-padclamp(16px, 3vw, 40px)Padding between the viewport edge and the container.
--card-padclamp(28px, 3.4vw, 48px)Padding inside every card, dialog and sheet.
--section-gapclamp(72px, 9vw, 128px)The even gap between page sections.
--grid-gap16pxThe gap between cards in a bento row.
--measure38remThe width of a reading column: about 70 characters of body.

Shadow

The only shadow, for things that float above the page: a menu, a dialog, a toast.

PictureTokenValueUse
--shadow-float0 6px 20px rgba(20, 20, 20, 0.18)The only shadow. For things that float above the page: tooltip, popover, menu, dialog, toast. Never on a resting card, button or input.

Fluid type sizes

The five heading styles take their size from these.

PictureTokenValueUse
--display-sizeclamp(2.75rem, 0.25rem + 6.2vw, 6rem)Font size of display.
--headline-sizeclamp(2.125rem, 0.25rem + 4.2vw, 4rem)Font size of headline.
--title-sizeclamp(1.75rem, 0.25rem + 2.6vw, 2.5rem)Font size of title.
--subtitle-sizeclamp(1.375rem, 0.5rem + 1.4vw, 1.75rem)Font size of subtitle.
--figure-sizeclamp(4rem, 0.25rem + 7.2vw, 7rem)Font size of figure.

Motion

Short eased changes of fill, a press, a knob that travels. Nothing moves on its own.

PictureTokenValueUse
--easecubic-bezier(.2, .8, .2, 1)The one easing curve, for changes of fill and position, and for everything that appears.
--duration-press.15sHover darkening and the press scale of a button.
--duration-fill.18sA change of fill on state: segment, tab, checkbox, card hover.
--duration-move.2sSomething that travels: the switch knob, the pill of a segment or a tab, a toast.
--duration-in.22sSomething appearing: a menu or popover opening from its trigger, a dialog, sheet or drawer coming in, a tooltip, a toast.
--duration-out.14sThe same things going away: always quicker than they came, so a closed thing is out of the way at once.
--ease-exitcubic-bezier(.4, 0, 1, 1)The curve of going away: it starts slowly and leaves fast.
--ease-springcubic-bezier(.3, 1.5, .5, 1)A small overshoot for a thing that answers in place: a count that bumps, a word or a tick that pops in.

Layers

Four layers, in this order.

PictureTokenValueUse
--z-sticky20The pinned header.
--z-float40Popovers, menus, tooltips.
--z-overlay60Scrim, dialog, drawer, sheet.
--z-toast80Toasts, above everything.

Breakpoints

The widths at which layouts change. Media queries cannot read custom properties, so the stylesheet repeats these values.

PictureTokenValueUse
--bp-phone34remBelow this, segmented controls stack their labels and chart labels grow.
--bp-tablet40remFrom here, fields and choices sit two to a row.
--bp-bento56remFrom here, cards take unequal widths in a row; below, every card is full width.
--bp-header76remFrom here, the header is one row; below, the tab strip takes a second, pinned row.

Opacity

One step, for what is disabled.

PictureTokenValueUse
--opacity-disabled0.45A disabled control, with cursor: not-allowed. Disabled controls keep their fill.
↑↓ to moveEnter to openEsc to close