Skip to main content

Styling and Design Tokens

Tailwind v4, CSS-first

There's no tailwind.config.js. Tokens are declared with @theme in src/app/globals.css, which also holds base-layer styles. PostCSS uses @tailwindcss/postcss. Prettier sorts classes via prettier-plugin-tailwindcss (configured with tailwindStylesheet: ./src/app/globals.css).

Visual direction

National Park Service / museum feel: confident serif headings, generous whitespace, warm neutrals anchored by deep navy, and a brass accent reserved for primary calls to action.

Colour tokens

Scale Role Key values
navy-50…950 Structure, text, dark bands navy-800 #1e2a3d (primary navy), navy-900 #141d2b (body text, dark sections)
brass-50…900 Primary CTA and highlights only brass-500 #b5862f (primary accent; also the focus ring)
sand-50…300 Light section backgrounds sand-50 #faf7f1 (page background)
stone (Tailwind built-in) Borders, neutral UI stone-200 borders

Section bands alternate bg-white and bg-sand-50. Closing CTAs use bg-navy-900.

Typography

  • Sans: Inter (--font-inter), used for body and UI.
  • Serif: Source Serif 4 (--font-source-serif), used automatically for h1–h4 (base layer) and via font-serif.
  • Both are loaded with next/font/google in layout.tsx with display: swap.
  • Eyebrow pattern: text-sm font-semibold tracking-[0.15em] text-brass-600 uppercase above an h2.

Base styles and accessibility

  • :focus-visible gives a 2px brass outline on every focusable element.
  • Smooth scrolling is enabled only under prefers-reduced-motion: no-preference.
  • Headings use text-wrap: balance.
  • The no-scrollbar utility is used for horizontal pill and card scrollers.

Rules of thumb

  • Use buttonClasses() rather than restyling links as buttons by hand.
  • Keep touch targets at min-h-11 (44px) or larger.
  • Keep text over photography legible with gradient scrims, as PageHero and HomeHero do.
  • Use only one brass primary button per view where possible.