Skip to content
Theme
endue.ai

Foundations

Space and shape

A 4px grid, four control heights, and corners and shadows that tell you what kind of thing you are looking at.

Spacing

A 4px grid. Values off the grid snap to the nearest step (the smaller one on a tie). Only a 1px hairline may use a raw value.

space-0-52pxspace-14pxspace-1-56pxspace-28pxspace-2-510pxspace-312pxspace-416pxspace-520pxspace-624pxspace-832pxspace-1040pxspace-1248pxspace-1664pxspace-2080pxspace-2496pxspace-32128px
  • Sections are space-8 (32px) apart.
  • Rows are divided by one hairline, not by a gap.

Control heights

Shared heights for buttons and inputs. Controls in one row share the same height. Toolbars use sm. Forms and modals use md.

TokenValueUse
control-h-xs28pxButton xs and filter chips.
control-h-sm32pxButton sm, input sm and icon button md.
control-h-md40pxButton md and input md (default).
control-h-lg48pxButton lg (CTA on public surfaces).

Corner radius

  • Cards, panels and modals use radius-lg (12px).
  • Buttons, inputs, menus and tooltips use radius-md (8px).
  • Tags and keycaps use radius-sm (4px).
  • The composer and your own bubble use radius-xl (16px).
  • The pill, radius-full, is only for filter chips and status badges. Don't make a button a pill.
radius-sm

4px

radius-md

8px

radius-lg

12px

radius-xl

16px

radius-full

9999px

Shadow

  • A card has no shadow. It is told apart by its 1px border.
  • Shadows are for floating things only. The composer, an approval request and a card on hover useshadow-sm. Menus, popovers and tooltips use shadow-md. Modals useshadow-lg.
  • Behind a modal is overlay-scrim with an 8px blur.
shadow-sm

Chips, cards on hover and the active segment.

shadow-md

Menus, popovers, hover cards and tooltips (with the popover surface and a 1px border).

shadow-lg

Modals.

shadow-panel

Panels that slide in from the side (the shadow falls to the right).

TokenValueUse
shadow-smLight: 0 1px 2px rgba(20, 16, 30, 0.06)
Dark: 0 1px 2px rgba(0, 0, 0, 0.40)
Chips, cards on hover and the active segment.
shadow-mdLight: 0 8px 24px rgba(20, 16, 30, 0.12)
Dark: 0 8px 24px rgba(0, 0, 0, 0.45)
Menus, popovers, hover cards and tooltips (with the popover surface and a 1px border).
shadow-lgLight: 0 20px 40px rgba(20, 16, 30, 0.15)
Dark: 0 20px 48px rgba(0, 0, 0, 0.55)
Modals.
shadow-panelLight: 12px 0 24px rgba(20, 16, 30, 0.05)
Dark: 12px 0 24px rgba(0, 0, 0, 0.35)
Panels that slide in from the side (the shadow falls to the right).

Placement

  • Before you wrap a block in a card, ask whether it is an object a person could pick up on its own. If it is not, group it with a heading and space, and divide its rows with the hairlines ofList.
  • The console container is at most container-max (1280px). The chat column ischat-column-max (860px).
  • Public surfaces have two widths: reading surfaces use site-reading-max (1120px), and experience surfaces use site-experience-max (1328px).

Breakpoints

There are four width breakpoints and two height breakpoints.

TokenValueUse
bp-sm640pxBelow this width is mobile. A tall modal becomes full screen.
bp-md768pxTablet.
bp-lg1024pxDesktop.
bp-xl1280pxWide desktop.
short-height900pxBelow this height, the progress box shrinks to 3 lines.
compact-height720pxBelow this height, the padding of the header, the band and the composer shrinks too.

Layout constants

Layout constants that several screens need to share.

TokenValueUse
container-max1280pxMaximum width of the console container.
container-padding24pxHorizontal padding of the container.
site-reading-max1120pxWidth of reading surfaces among public surfaces (detail and legal pages).
site-experience-max1328pxWidth of experience surfaces among public surfaces (landing and listing pages).
site-header-h68pxHeight of the public site header.
chat-column-max860pxMaximum width of the chat column.
top-bar-h48pxHeight of the console top bar.
mobile-bottom-bar-h56pxHeight of the mobile bottom bar.
artifact-card-h178pxHeight of an Output card.
artifact-card-preview-h120pxHeight of the Output card preview.
account-panel-height52pxHeight of the account panel at the bottom left.
account-panel-inset6pxBetween the account panel and the screen edge.
account-panel-gap6pxBetween the account panel and the sub-sidebar content.
overlay-blur8pxBackground blur of the modal scrim. Source name --overlay-blur.

Layers

Use named layers only. Do not add or subtract with calc. Local stacking order may use raw values from -1 to 5 only.

TokenValueUse
z-above10Sticky headers, resize handles and popovers inside a parent context.
z-float20Inline dropdowns inside a component and drop overlays.
z-float-top30Inline palettes and the site header menu.
z-sheet50Mobile inspector sheet of the canvas.
z-launcher90Floating voice launcher.
z-nav100Sub-sidebar.
z-nav-overlay110Overlay of the expanded panel.
z-topbar970Main top bar.
z-drawer-backdrop980Backdrop of the left panel.
z-drawer990Left panel.
z-sidebar1000Left sidebar.
z-shell1010Left column, mobile bottom bar and usage nudge.
z-shell-panel1020Right panel, account panel and guest sign-in.
z-shell-drawer1030Mobile drawer, mobile canvas and right sidebar.
z-shell-float1040Floating elements of the agent layout and the Ask capsule.
z-banner1050Disconnected banner. Above the shell, below modals.
z-modal-scrim1059Sheet scrim rendered as a separate sibling.
z-modal1060Modals, command palette and lightbox.
z-popover1070Menus, popovers, dropdowns and hover cards. They must show inside a modal too.
z-tooltip1080Tooltips.
z-modal-top1090Re-authentication. Above even open menus and tooltips.
z-theme-overlay1100Crossfade for the theme switch.
z-celebration1110Celebration screen.
z-celebration-fx1111Confetti.
z-fly1120Flying chip.