[ Case Study ]

Loom

A design system generator. Describe a brand in one short file, and Loom builds the styles every screen is made from — color, type, spacing, hover and focus — plus a matching Figma library.

  • CSS
  • Accessibility
  • Design Tokens
  • Figma Plugin API

Open source on GitHub (opens in a new tab)

[ The Problem ]

Every new project I started properly lost its first weeks to foundation work, set up once in Figma and again in code. The first versions of Loom answered that with a large library of React components. Building real products on it showed me that consistency lives less in the components than in the decisions under them: how a corner rounds, where a focus ring sits, how an error reads. Loom now makes those decisions once.

[ How It Works ]

One file goes in. A complete styling foundation comes out, with as little as possible on top.

Answers file
  • Primary color
  • Font pairing
  • Type scale
  • Spacing density
  • Edge style
Figma
  • Color variables
  • Spacing + radius
  • Text styles
  • Effect styles
Code
  • Design tokens
  • Ready-made styles
  • Interactive components
  • One-command updates
Answers file
  • Primary color
  • Font pairing
  • Type scale
  • Spacing density
  • Edge style
Figma
  • Color variables
  • Spacing + radius
  • Text styles
  • Effect styles
Code
  • Design tokens
  • Ready-made styles
  • Interactive components
  • One-command updates

[ Decisions ]

[ Under the Hood ]

Four pieces of the real output, and the rest of the source on GitHub (opens in a new tab).

Two real projects on the same generator. Paperboy is a dense, square-cornered news reader; Party Wipe is an amber-gold game with Cinzel headings. Everything that makes them look different is in these few lines, and the code that builds their screens uses the same style names.

> pb2/loom-answers.json · party-wipe/frontend/loom-answers.json
// Paperboy, a news reader
{
  "$note": "…",
  "styleDirection": "brutalist",
  "primary": "#009cd6",
  "secondary": "#0a37cc",
  "accent": "#3f0acc",
  "heading": "Inter",
  "body": "Inter",
  "edges": "none",
  "density": "compact",
  "shadowDepth": "flat",
  "typeScale": "compact",
  "controlHeight": "touch",
  "defaultMode": "dark",
  "projectName": "pb2"
}

// Party Wipe, a combat roguelike
{
  "$note": "…",
  "projectName": "party-wipe",
  "styleDirection": "bold",
  "defaultMode": "dark",
  "primary": "#DAA520",
  "secondary": "#2e5bcc",
  "accent": "#29d1a1",
  "heading": "Cinzel",
  "body": "JetBrains Mono",
  "edges": "sharp",
  "density": "compact",
  "shadowDepth": "flat",
  "typeScale": "compact",
  "controlHeight": "standard"
}