Skip to content
Career & process

Building a personal UI library

Everything Motif ships is a lesson in the same craft: a personal library is how a designer compounds taste. What to collect, how to document it, and why your own library beats every framework's.

Answers How do I build a personal UI library that survives contact with real projects?the structure matters more than the count — the palette is the search layer that makes a library usable.

Intermediate2 min read (computed · recorded 11)updated 2026-09-10libraryprocesscareerdesign systems

The library is a second brain with a grid

A personal UI library is where the patterns you have shipped — the ones that worked, the ones you rescued, the ones you swore never to repeat — live in reusable form. It is a second brain, but better organised: every entry has a job, a code shape and a note on when it earned its place. Frameworks give you a hundred components and zero memory of why yours are yours; a personal library is the opposite — small, opinionated, and full of scar tissue.

  • Collect by job, not by novelty: the library holds patterns with a named function (settle an entrance, confirm a delete, show progress) — a component without a job sentence is decoration with storage.
  • Steal shamelessly, credit always: half of any good library is patterns seen elsewhere and remade better — the note field records where the idea came from, because provenance is how taste compounds.
  • Document the scar: each entry carries its failure history — 'v1 had no focus ring, v2 added it after a keyboard audit' — the scar is the teaching, and it is what makes the entry yours.
  • Keep it shippable: a personal library earns its keep only if entries are copy-pasteable in under a minute — every entry ships as code plus tokens plus the one-line 'when to use'.

The Motif lesson: document in public

Motif's own library works because every entry is a page — code, notes, run logs, fidelity scores — and those pages are the site. The lesson transfers: a personal library that documents in public (a portfolio, a blog, a small site) stops being a private folder and becomes a reputation. The act of writing the 'when to use' note is where the learning actually happens; the folder was just the excuse.

library-entry.md
# Pattern: confirm-before-destructive
Job      let the user take back a misclick
Code     [link/code block]
When     destructive actions only; never for routine submits
Scars    v1 used a modal -> interrupted everyone
         v2 used inline 'Delete? / Confirm' -> better
         v3 added Undo toast for the reversible cases
Origin   seen in a checkout flow, rebuilt with tokens

Words this guide uses that the glossary defines: Fidelity score · Run log

Practise the lesson

Theory sticks when you ship it. These original Motif assets put this guide's lesson to work — open one and copy it into your own page.