Build with Milpa · Unit 4 of 4
Compose with @milpa/design
Design ships tokens, motion, primitives, components, artifacts and layouts. It doesn't ship JavaScript: state, data and behavior still belong to the application.
By the end, you'll be able to
- Load the six bundles in order
- Separate the visual contract from product logic
Understand
Design ships tokens, motion, primitives, components, artifacts and layouts. It doesn't ship JavaScript: state, data and behavior still belong to the application.
Consume a published version. Academy can try out ac-* compositions, but it must not duplicate the anatomy of a mui-* piece or read the package's private files.
See
Audit the executable contract
Change theme and surface; the gate computes contrast live.
Do
Run the practice in your checkout and keep the output as evidence.
Verify
Show that you can apply the unit. Progress only advances once you pass the assessment.
Criteria assessed
- The bundles load tokens, motion, primitives, components, artifacts and layouts, in that order.
- Progress logic lives in Academy, not in Design.
Primary sources
Content verified: 2026-07-10