Command Palette

Search for a command to run...

Foundations

Borders

Border radius, width and style conventions used across Nimbus components.

Radius

There's no dedicated radius token set — components take their radius from the spacer scale, and it converges on 5px.

SampleTokenValueUsed for
none0Subtle and plain variants (Callout subtle, group edges)
$size-spacer-xs5pxDefault for controls and surfaces: Button, TextInput, Callout, Table, Popover, Menu
$size-spacer-sm10pxLarger containers, such as Disclosure groups
toast neutral8pxNeutral Toast
$button-borderRadius-rounded30pxButton with the rounded prop (pill)
  • Use 5px for controls, panels and anything that contains content.
  • Use square corners only where a component sits flush against another, such as the subtle Callout variant.
  • Reserve the 30px pill for the Button rounded prop — not inputs or containers.
  • Don't invent intermediate radii. If a component needs a different value, add a component token.

Width & style

Nimbus has no border-width or border-style tokens. Across the component SCSS, borders are hardcoded to a single convention: 1px solid.

Convention, not a token
Confirmed directly in component styles — Callout.module.scss, DatePicker.module.scss, TextArea.module.scss and TextInput.module.scss all set border: 1px solid (or an equivalentborder-width: 1px) against a semantic color token. There's nothing to swap in — if a component needs a different width or style, that's a deliberate exception, not a token lookup.
border: 1px solid
Default — inputs, callouts, cards, popovers
border: 1px dashed
Seen only in a Flex story placeholder — not a real component convention