Design system
When to use each of the 5 design system blocks, with a live example of every one.
The design system blocks: what each one is for, how to choose between neighbours, and a live starter example you can edit — converted at build time from the authoring skill your agent reads. Every example body is YAML; in a real doc the fence language is the block type (for example sequence … ). Schemas are strict — unknown fields are rejected. The full field contract for any block — every field, enum, and terse one-line form, generated from the schema — is npx chiltepin block <type>. See the block catalog for every block rendered on one page.
Shape: Structure & emphasis — token specimens, usage rules, and low-fi
screens (palette, typescale, dodont, inventory, wireframe).
Answers: What does the UI look like before it exists? What tokens and
styles exist, and what does correct use look like?
Not this family: a real screenshot → figure (narrative.md); the
component tree → frontend (architecture.md); component code → code
(tables-data.md); shipped history → changelog (planning.md).
Design system
palette — color-token swatches
A card grid of swatches: the hex in mono, the token name, its usage. Text
contrast on each swatch is automatic. Answers: which colour tokens exist,
and what is each for? Always quote hex values ("#0E54A1"): an unquoted
# starts a YAML comment. An invalid colour falls back to gray.
palette for colour tokens; stats for numbers.
chiltepin checktypescale — a live type specimen
One row per style; the sample text renders live at that size, weight, and
font. Answers: what does each text style look like?
Sizes over 64px render clamped at 64 but keep the true label.
typescale when the visual matters; table for a token list with no visual
payoff.
chiltepin checkdodont — do / don't guideline cards
Two cards side by side, DO green and DON'T red; both lists are required.
Answers: what does correct use look like? An item's example renders
beneath it as a mono chip, good for label copy.
dodont for usage rules; proscons to weigh a decision; callout for one
warning.
chiltepin checkinventory — component / feature status board
Hairline rows, each with a name, a tag chip, an optional note, and a
colour-coded maturity chip. Answers: how mature is each component?
inventory for maturity; statustable for task work; changelog for
shipped history.
chiltepin checkwireframe — low-fi screen mockups (desktop / browser / phone)
Device frames left to right, each a top-to-bottom stack of gray elements.
Answers: what does the UI look like before it exists?
nav and tabs read their items from a comma-separated label; quote it.
rows repeats a list or card and sizes text or a spacer.
Keep it low fidelity: a wireframe, not a comp. figure for a real
screenshot; frontend for the component tree.
chiltepin check