Design
The living reference for the site's design system: tokens from Figma, and every Nunjucks component rendered live with the call that produced it.
This is the design system as the site actually renders it. Every page here is built from the same files the site uses: token pages read the generated theme files, and component pages import the real macro, render it with sample params, and print the call underneath. If a component changes, its page changes with it.
What's here
In the order of the sidebar:
- Accessibility: the contrast of every colour on the site's grounds, and how the choreography handles reduced motion.
- Tokens: colour, type, spacing, and motion. Figma owns most of these values.
- Decoration: the project utilities built on the tokens: gels, patterns and graph paper, radius, shadow and borders, masks, registration marks, and arrows.
- Atoms, Molecules, and Organisms: one page per component under
views/atoms/,views/molecules/, andviews/organisms/, mirroring its path. The sidebar groups them under Styling. - Choreography: how the site's motion runs, with a page for every module under
js/choreography/. - Maintenance: how to change this reference, build it, and check it.
Using a component
Every component follows the Component API spec (specs/views/component-api.views-spec.md):
{% import "molecules/stats/stats.njk" as Stats %}
{{ Stats.render({ stats: rows, classes: { base: "grid", sm: "grid-cols-3" }, styles: { term: "text-neutral-400" } }) }}
- One macro,
render(params = {}), with named params only. - Import without
with context. A component reads nothing butparams, so data such ascms,collections.all, orpage.urlhas to be passed in. classesstyles the root element;stylesstyles named inner slots. Pass a string, an array, or a variant map ({ base, sm, md, lg, xl }); the component flattens it with theclassesfilter.- Your classes are added to the component's own baseline, never substituted. To vary colour or type, use the slot the component exposes for it rather than stacking a competing utility.
- Some components take content through a call body (
{% call Link.render({...}) %}…{% endcall %}). Their pages show it.
Each component page lists its params from the component's sidecar (the .md next to the .njk), which stays the authority.
Adding a page to the reference is covered in Maintenance.