A warm theme for shadcn, and the parts it doesn’t ship.

Patternmode is Daniel Howells’s interface library. A shadcn theme sets the type and colour. Small React packages handle the behaviour registries leave to you.

npx shadcn add https://patternmode.com/r/theme.json
Browse components

Theme

Three faces and warm neutrals. Hierarchy comes from size, face and colour, never bold.

  • Hedvig Letters SerifDisplay and titles. One weight.
  • InterInterface text. Full font, with cv01, cv02, cv11.
  • Geist MonoFigures and code. Tabular.
  • Background0.988 0.003 106
  • Muted0.970 0.005 95
  • Border0.910 0.007 89
  • Muted foreground0.544 0.012 95
  • Foreground0.230 0.004 107
  • Ring0.438 0.056 166
  • Background0.199 0.004 107
  • Muted0.255 0.004 107
  • Border0.321 0.007 95
  • Muted foreground0.708 0.012 95
  • Foreground0.925 0.007 89
  • Ring0.696 0.052 166

Ten type roles

The same names in every Howells app. Reach for a role, not a size: type-title rather than text-2xl.

type-display
Patternmode
Hedvig 36–72 / 1.05
type-title
Sheets that stack and step back
Hedvig 24 / 32
type-heading
Install the theme
Inter 16 / 24
type-label
Evergreen, 48% of the palette
Inter 14 / 20, weight 500
type-lead
The paragraph under a title that sets the scene.
Inter 16–18 / 1.6
type-figure
12,783.25
Inter 36–48 / 1
type-body
Reading text and descriptions at the body base. Keep measures around 45 to 65 characters.
Inter 14 / 21
type-ui
Controls, navigation, list rows and field labels
Inter 13 / 18
type-meta
Updated 4 minutes ago · 12 items
Inter 12 / 16
type-data
#315C4B · 1,204.50 · 0.0086
Geist Mono 13 / 18

Components

Each package is one behaviour, named for what it does. They read your shadcn tokens, so they take on whatever theme the app already has. MIT licensed.

Install

The theme goes in through shadcn because it has to land in your own CSS. Components come from npm, so fixes arrive as upgrades.

  1. Theme

    Colour tokens, the ten type roles and the three fonts, written into globals.css.

    npx shadcn add https://patternmode.com/r/theme.json
  2. Components

    Add the ones you need and pin them once in your workspace catalogue.

    pnpm add @patternmode/stacksheet @patternmode/swatch
  3. Editable source

    Copies a component into your repo. A copy no longer gets fixes.

    npx shadcn add @patternmode/swatch

    Add the @patternmode registry to components.json first.