Components

Top bar

Name on the left, page links and the Resume button on the right. Collapses into a menu on phones.

components/Nav.tsx

Live preview

Ridhwan SalaudeenWorkAboutPlaygroundResume

Tokens it uses

--bg

Background behind every page.

In colors

--ink

Main text, headings and active nav links.

In colors

--ink-soft

Summaries, captions, inactive nav links, footer text.

In colors

--line

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

In colors

--nav-height
px

Height of the navigation bar.

In spacing

--gutter-max
px

Space between content and the screen edge (shrinks on phones).

In spacing

--wrap
px

How wide content can grow on large screens.

In spacing

--sans

Body text, labels, nav and buttons.

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

--radius-control
px

Anything you click or type into.

In radius

Where it’s used

Works with

  • ButtonHolds the Resume button.
  • FooterMirrors the footer: same wrapper width and hairline, so the page is framed top and bottom.
  • Type testerIts height is where the Type tester controls stick.

Shared tokens

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

  • Footershares Hairlines and bordersSecondary textPage side marginMax content widthButton heightButton side paddingButton text weightButton border widthButton fillButton textButtons, chips and inputsBody font
  • Contact formshares Buttons, chips and inputsHairlines and bordersTextSecondary textButton heightButton side paddingButton text weightButton border widthButton fillButton textBody font
  • Buttonshares Button heightButton side paddingButton text weightButton border widthButton fillButton textButtons, chips and inputsBody font
  • View toggleshares Buttons, chips and inputsHairlines and bordersPage backgroundTextSecondary textButton fillButton text
  • Project windowshares Page backgroundTextSecondary textHairlines and bordersButtons, chips and inputsPage side margin
  • Case study layoutshares Body fontTextSecondary textPage backgroundPage side marginTop bar height
  • Filter chipsshares Buttons, chips and inputsHairlines and bordersTextButton fillButton text
  • Contact linksshares TextSecondary textHairlines and bordersButtons, chips and inputs
  • Type testershares Hairlines and bordersTextSecondary textTop bar height
  • Playground rowshares Hairlines and bordersTextSecondary text
  • Project cardshares TextSecondary text
  • Your-version pillshares TextPage background
  • Back linkshares Secondary textText
  • Logo rowshares TextSecondary text
  • Say hishares TextSecondary text
  • Section introshares Text
  • Page headershares Secondary text