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.
| Sample | Token | Value | Used for |
|---|---|---|---|
| none | 0 | Subtle and plain variants (Callout subtle, group edges) | |
| $size-spacer-xs | 5px | Default for controls and surfaces: Button, TextInput, Callout, Table, Popover, Menu | |
| $size-spacer-sm | 10px | Larger containers, such as Disclosure groups | |
| toast neutral | 8px | Neutral Toast | |
| $button-borderRadius-rounded | 30px | Button 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
roundedprop — 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