Skip to content

Style guide

The parts Nacre is built from.

Colours for both themes, the type scale, controls and the light itself. Every value comes from tokens/alembic.tokens.json.

01Colour

Pearl, deep water and one aqua accent.

Each token has a light and a dark value. Switch the theme to see the page change; the swatches show both.

  • Page

    --al-bg

    #f4f2ee · #071416

  • Band

    --al-bg-2

    #e9efec · #0a1c1f

  • Card

    --al-panel

    #fbfaf8 · #0f2427

  • Text

    --al-ink

    #0e2326 · #e8f1ee

  • Secondary text

    --al-muted

    #4a5d5f · #9db1af

  • Aqua

    --al-accent

    #139089 · #5fd9cc

  • Accent text

    --al-accent-ink

    #0b6964 · #8aeadf

  • Pearl

    --al-pearl

    #ead9e3 · #c9b2d6

02Type

Two families, both upright.

Funnel Display for headings and numbers, Funnel Sans for everything people read. No italics anywhere: emphasis comes from weight, size or colour.

  • Display

    Funnel Display 400, 86 / 0.98, -3.5%

    Light, layered slowly

  • Title

    Funnel Display 400, 52 / 1, -3.5%

    Light, layered slowly

  • Card title

    Funnel Display 500, 22 / 1.2, -1.5%

    Light, layered slowly

  • Lead

    Funnel Sans 400, 18 / 1.6

    Light, layered slowly

  • Body

    Funnel Sans 400, 16 / 1.6

    Light, layered slowly

  • Small

    Funnel Sans 400, 14 / 1.5

    Light, layered slowly

  • Kicker

    Funnel Sans 500, 12, +16%, capitals

    Light, layered slowly

03Controls

Buttons, fields and labels.

ChipBadge Registered

A sentence with a text link in it.

04Surfaces

Cards, glass and plates.

Cards sit on the page. Glass sits on the light. Plates are generated stills of the same caustic shader, used where a photo would go.

Card

Panel colour, hairline border, 24px corners.

Glass

Blurred panel over light.

Plate p12

05Light

The caustic scene and the compare slider.

One WebGL shader draws the hero, the page heads and the closing band. The compare slider works by drag, keyboard and, in the scroll section, by scrolling.

Redness, before and after, before treatmentRedness, before and after, after treatmentBeforeAfter

06Mark

Logo and icons.

The pearl mark and wordmark are SVG components in components/logo.tsx. Icons are Lucide at 1.6 to 1.7 stroke.

Nacre