DesignOverviewDesign SystemMapsGraphIntroductionInstallationDeriving a themeSandboxTheme builderVisual testingAgentsCortexMemoryActiveProvenanceActiveContextActiveServicesInsightsGet in touchSource on GitHub
Foundations
Elevation and materialLayersTokenValue--helix-layer-beneath-1--helix-layer-base0--helix-layer-raised10--helix-layer-sticky100--helix-layer-overlay1000--helix-layer-toast1200The five main layers are named after what sits at each one. A numbered scale
leads to values such as z-index: 1001 that nobody can explain, and those
values cause stacking context bugs.LayerWhat is at itbaseThe documentraisedSomething lifted but still in the flow: a hovered row, a dragged cardstickyA header or a column that stays while content scrolls under itoverlayMenus, dialogs, popovers, tooltipstoastAbove everything, including a modalMost overlays do not need these tokens. They use the popover API and render
in the browser's top layer, which is always above every z-index. Use the tokens
for the cases the top layer does not cover:
your own sticky header
your own dragged element
anything that has to sit between two of our layers
ShadowsTokenValue--helix-shadow-nonenone--helix-shadow-sm0 1px 2px light-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 5%, transparent), color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 8%, transparent))--helix-shadow-md0 4px 12px light-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 6%, transparent), color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 10%, transparent))--helix-shadow-lg0 12px 32px light-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 9%, transparent), color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 14%, transparent))--helix-shadow-surfacevar(--helix-shadow-none)--helix-shadow-floatingvar(--helix-shadow-sm), var(--helix-shadow-lg)--helix-shadow-raisedvar(--helix-shadow-sm), var(--helix-shadow-md)The first four are the values. The last three are policy tokens. A theme sets
them to make your interface shadow-first or border-first. See Surfaces and
separation.MaterialThese tokens describe translucency:TokenValueFor--helix-material-backdropblur(var(--helix-material-blur-md)) saturate(1.5)The blur and saturation behind a translucent surface.--helix-material-opacity1How opaque a translucent surface is.--helix-material-scrim-liftvar(--_helix-material-scrim-lift)How much a glass Dialog or Drawer brightens the page behind its scrim.--helix-material-glass-opacitycalc(0.72 * var(--helix-material-opacity))How much of a mark a glass material covers.--helix-material-frosted-opacitycalc(0.88 * var(--helix-material-opacity))How much of a mark a frosted material covers.--helix-material-blur-sm8pxThe lightest backdrop blur.--helix-material-blur-md16pxThe backdrop blur behind a modal.--helix-material-blur-lg32pxThe heaviest backdrop blur.--helix-material-translucentlight-dark(color-mix(in oklab, oklch(1 0 0) min(100%, 30% * var(--helix-material-opacity)), transparent), color-mix(in oklab, oklch(0.182 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) min(100%, 72% * var(--helix-material-opacity)), transparent))The translucent background, for a surface that shows what is behind it.--helix-material-translucent-strongcolor-mix(in oklab, light-dark(oklch(1 0 0), oklch(0.182 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258))) min(100%, 88% * var(--helix-material-opacity)), transparent)The stronger translucent background, for a surface that shows less of what is behind it.--helix-material-panellight-dark(color-mix(in oklab, oklch(1 0 0) min(100%, 72% * var(--helix-material-opacity)), transparent), var(--helix-material-translucent))The glass of every panel, from a Menu, Popover, or Tooltip to a Dialog or Drawer over its scrim.--helix-material-borderlight-dark(color-mix(in oklab, oklch(0.15 var(--helix-seed-neutral-chroma, 0) var(--helix-seed-neutral-hue, 258)) 14%, transparent), color-mix(in oklab, oklch(1 0 0) 12%, transparent))The border a translucent surface needs to keep a visible edge.The material axis draws its three values, frosted, glass, and
transparent, with these tokens. Material is an axis of its own, separate from
emphasis, because a panel can be glass and outlined at the same time. Two
properties that can apply at once belong on two axes. See Visual
axes.ValueGroundBackdrop filterglassmaterial-panel: 72% white in light mode, and 72% of the dark ground in dark modematerial-backdrop: a 16px blur and 1.5 times the saturation. A glass Dialog or Drawer adds a brightness of material-scrim-liftfrostedmaterial-translucent-strong: 88% of the ground in both modesA 32px blur, material-blur-lg, with no change to saturationtransparentNoneNoneEvery family that takes material draws glass at the same coverage, a Dialog
and a Drawer included, except App Header. Its glass is material-translucent,
30% white in light mode and 72% of the dark ground in dark mode, so a bar across
the page lets more of what scrolls under it show. --helix-material-opacity
scales every coverage together.A modal Dialog or Drawer paints its scrim behind the panel, so a glass panel's
filter samples the page with the scrim already over it. In light mode the white
page came through as a gray. --helix-material-scrim-lift is the brightness the
filter adds to undo the scrim: 1 / 0.6 in light mode, where the scrim is 40% of
the ink, and 1 in dark mode, where the glass is drawn over the dimmed page. The
color mode sets it, and a Dialog and a Drawer read it in their own filters.Use blur with care, because it is expensive. A backdrop-filter makes the
compositor read what is behind the element again on every frame the element
moves. A frosted header that is always on screen pays that cost all the time.
To show depth without that cost, use separation="elevated" on a Card, or
data-separation="elevated" on an element of your own. Each lifts the surface
with a shadow and needs no backdrop filter.A translucent surface takes its color from what is behind it, so on a busy
background it has no visible edge. Every glass or frosted surface draws
material-border as its edge: 14% of near-black in light mode and 12% of
white in dark mode, a wash that takes the color of what shows through. Inside a
glass or frosted surface, border and border-floating are material-border
too, so the panel's edge and the lines inside it match. The quiet inks are
raised inside it as well, so muted text stays readable over a busy page.