Auditable architecture · Unit 4 of 5
The visual contract is executable
A CSS class isn't enough of a contract. Milpa Design documents anatomy, states, tokens, accessibility, motion and examples, and the gates check that the published package preserves those promises.
By the end, you'll be able to
- Read structure, states and a11y as a contract
- Check dark/light parity
Understand
A CSS class isn't enough of a contract. Milpa Design documents anatomy, states, tokens, accessibility, motion and examples, and the gates check that the published package preserves those promises.
See
Measure the contract
Inspect AA contrast and change surface without altering the content.
Do
Run the practice in your checkout and keep the output as evidence.
$npm test
Verify
Show that you can apply the unit. Progress only advances once you pass the assessment.
Criteria assessed
- The component keeps its meaning without relying on color alone.
- The consumed version is pinned and doesn't follow main by accident.
Primary sources
Content verified: 2026-07-10