Components
Button
Solid or outline button, as a link. Outline buttons get the ↗ arrow. External links open in a new tab.
components/ui/ButtonLink.tsxLive preview
Tokens it uses
--btn-heightpx
Height of every button.
--btn-pad-xpx
Space either side of the button text.
--btn-weightHow bold button text is.
--btn-borderpx
Outline thickness on buttons.
--btn-bgSolid buttons, and the border and hover fill of outline buttons.
--btn-inkText on solid buttons and selected chips.
--radius-controlpx
Anything you click or type into.
--sansBody text, labels, nav and buttons.
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