Border
A border draws the line between things: it holds a card together, separates a list, outlines a field and marks what is selected. Thread keeps borders few and light, so the ones that matter can be seen.
The widths
A border is one of three weights, plus one for controls. Each width aliases a primitive directly, so a border never carries a raw number, not even a 1px one. Width and color are separate decisions: the width says how much a line matters, and a border color role says how loud it is.
The houses share every width but one. Controls such as fields and outlined buttons take td.border.width.control, which is heavier at Macy’s than at Bloomingdale’s. It is the highlighted line above; switch the house to see it change.
Anatomy
A form card, drawn to scale and enlarged, with the five borders that shape it.
- 1Container outline is td.border.width.sm, 1px, in td.color.border.base.
- 2Divider is td.border.width.sm, 1px, in td.color.border.subtle, the faintest line.
- 3Control border is td.border.width.control, 2px for Macy’s, in td.color.border.base.
- 4Selected is td.border.width.md, 1.5px, in td.color.border.strong. The weight carries the state.
- 5Disabled keeps the control width and takes td.color.border.disabled.
Steps
Reach for sm unless you have a reason not to. Step up when the border is carrying state rather than structure.
sm1pxThe default hairline: dividers, card and table outlines.
md1.5pxEmphasis and state: selected, hovered or active.
lg2pxThe heaviest stroke, for strong emphasis. Use it rarely.
Control width
Fields, selects and outlined buttons take td.border.width.control, the one width that differs by house. Bind it, and a control takes the right weight in either house without a change.
Color
Width sets thickness only. The color comes from the border roles, so a line can change weight and hue independently. Each role adapts to light and dark.
td.color.border.subtleThe faintest visible line: hairline dividers and quiet separation.
td.color.border.baseThe default border for controls and containers.
td.color.border.strongHigh emphasis: selected items and strong outlines.
td.color.border.disabledA disabled control’s border. Disabled is a state, never a role.
td.color.border.cutoutMatches the surface, so overlapping items read as cut out: avatar stacks, layered chips.
The full palette behind these roles is on the color tokens page.
Focus
Focus indicators are not borders. Thread uses the browser’s own focus ring, so it stays familiar to keyboard users and meets contrast in every theme, and there is no focus width token to reach for. Never remove the ring or stand a border in for it.
How to use
Each pair shows the practice and the mistake it guards against.
Tokens
Every width, as it is named in the Tokens library.
| Token | Macy’s | Bloomingdale’s |
|---|---|---|
td.border.width.sm | 1px | 1px |
td.border.width.md | 1.5px | 1.5px |
td.border.width.lg | 2px | 2px |
td.border.width.control | 2px | 1.5px |