Components

Button

Solid or outline button, as a link. Outline buttons get the ↗ arrow. External links open in a new tab.

components/ui/ButtonLink.tsx

Live preview

Tokens it uses

--btn-height
px

Height of every button.

In buttons

--btn-pad-x
px

Space either side of the button text.

In buttons

--btn-weight

How bold button text is.

In buttons

--btn-border
px

Outline thickness on buttons.

In buttons

--btn-bg

Solid buttons, and the border and hover fill of outline buttons.

In colors

--btn-ink

Text on solid buttons and selected chips.

In colors

--radius-control
px

Anything you click or type into.

In radius

--sans

Body text, labels, nav and buttons.

In typography

Where it’s used

Works with

  • Top barThe Resume button is this component at a compact size.
  • FooterThe footer's 'Send me a message' is the outline variant.
  • Contact formThe submit button uses the same .btn class.
  • Filter chipsSelected chips borrow the button fill and text colours so 'chosen' looks like 'pressed'.

Shared tokens

These components share tokens with Button, so editing a shared token changes them together — that’s what keeps the interface cohesive.

  • Top barshares Body fontButton heightButton side paddingButton text weightButton border widthButton fillButton textButtons, chips and inputs
  • Footershares Button heightButton side paddingButton text weightButton border widthButton fillButton textButtons, chips and inputsBody font
  • Contact formshares Buttons, chips and inputsButton heightButton side paddingButton text weightButton border widthButton fillButton textBody font
  • Filter chipsshares Buttons, chips and inputsButton fillButton text
  • View toggleshares Buttons, chips and inputsButton fillButton text
  • Project windowshares Buttons, chips and inputs
  • Contact linksshares Buttons, chips and inputs
  • Case study layoutshares Body font