Skip to main content

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:

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" } }) }}

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.