Components

Contact form

Name, email and message; opens the visitor's mail app with the message ready.

app/contact/ContactForm.tsx

Live preview

Send message

Tokens it uses

--radius-control
px

Anything you click or type into.

In radius

--line

Dividers, input borders, chip borders, nav and footer rules.

In colors

--ink

Main text, headings and active nav links.

In colors

--ink-soft

Summaries, captions, inactive nav links, footer text.

In colors

--fs-label
px

Small labels, chips and form labels.

In typography

--label-tracking
em

Spacing between letters in labels.

In typography

--label-case

All caps or as written.

In typography

--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

--sans

Body text, labels, nav and buttons.

In typography

Where it’s used

Works with

  • ButtonSubmits with the standard solid button.
  • Filter chipsInputs share the control radius and hairline border with chips.

Shared tokens

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

  • Top barshares TextSecondary textHairlines and bordersBody fontButton heightButton side paddingButton text weightButton border widthButton fillButton textButtons, chips and inputs
  • Footershares Hairlines and bordersSecondary textButton heightButton side paddingButton text weightButton border widthButton fillButton textButtons, chips and inputsBody font
  • Buttonshares Button heightButton side paddingButton text weightButton border widthButton fillButton textButtons, chips and inputsBody font
  • Filter chipsshares Buttons, chips and inputsHairlines and bordersTextButton fillButton textLabel sizeLabel letter-spacingLabel case
  • Playground rowshares Hairlines and bordersTextSecondary textLabel sizeLabel letter-spacingLabel case
  • View toggleshares Buttons, chips and inputsHairlines and bordersTextSecondary textButton fillButton text
  • Project cardshares TextSecondary textLabel sizeLabel letter-spacingLabel case
  • Section introshares Label sizeLabel letter-spacingLabel caseText
  • Page headershares Label sizeLabel letter-spacingLabel caseSecondary text
  • Project windowshares TextSecondary textHairlines and bordersButtons, chips and inputs
  • Contact linksshares TextSecondary textHairlines and bordersButtons, chips and inputs
  • Type testershares Hairlines and bordersTextSecondary text
  • Case study layoutshares Body fontTextSecondary text
  • Back linkshares Secondary textText
  • Logo rowshares TextSecondary text
  • Say hishares TextSecondary text
  • Your-version pillshares Text