building-components

Installation
SKILL.md

Building components

Every component is the same three things stacked, in this order. Get the order wrong and you get an inaccessible or off-brand component that looks done but isn't.

  1. A headless primitive library is the base. Behaviour, ARIA, focus management, keyboard support, all bundled, all from the full primitive (Radix, React Aria, Base UI, whichever your repo uses). You never hand-roll accessibility.
  2. Your semantic tokens are the only paint. Headless primitives ship unstyled on purpose. You style them with semantic CSS variables and nothing else: no hex, no palette utilities, no eyeballed pixel values. The values come from the design file, read exactly.
  3. The doc contract is the finish line. A component isn't done when it renders. It's done when it has the agent- and human-first docs.

This skill is the procedure. The rules live in docs/standards/STANDARDS.md (CODE-, COMP-, DOCS-); this skill tells you the order to apply them in and why each step matters. Radix is the worked example throughout; the same steps apply to any headless library.

Configure for your repo

Installs
1
GitHub Stars
9
First Seen
11 days ago