Short supporting text.
Read moreA design system agents can read.
Tokens, themes and component recipes in plain CSS and JSON, with rules an AI agent follows. Free, no sign-up, one zip.
- One token layer. Four presets and light/dark change tokens only. Components never change.
- Any stack. CSS variables, W3C Design Tokens JSON and semantic HTML. No framework, no build step.
- Tested rules. Contrast, 44px targets, reduced motion and no sideways scroll are checked on every deploy.
Use it with your agent
Opens your own assistant with this prompt filled in.
Use the free design system at https://madhavnair.in/design/llms.txt (tokens: https://madhavnair.in/design/tokens.json, components: https://madhavnair.in/design/components.json). Follow its rules and test checklist exactly. Build me: [describe the page or component]. Output plain HTML and CSS that uses its tokens and c- components, in light and dark mode.Tokens
Live values from the CSS. They change when you switch theme or mode. W3C format: tokens.json.
Colour
--bg-page--bg-raised--bg-sunken--fg--fg-2--fg-muted--accent--on-accent--line--line-2--focus-ring--pillType
--t-3xl Display · --t-2xl Heading · --t-xl Subheading · --t-lg Lead · --t-md Body · --t-sm Small · --t-xs Caption · Spacing
--s-1--s-2--s-3--s-4--s-5--s-6--s-7--s-8--s-9Radii
--r-sm--r--r-lg--r-pillMotion
--d-base with --ease. Off under reduced motion.
Components
The real components.css markup. Copy puts exactly this HTML on your clipboard. Specs: components.json.
Preview style
Card .c-card
One heading per card. If the whole card is a link, use only one <a>. No fixed min-height.
HTML
<article class="c-card"><span class="c-pill"><span class="c-pill__dot"></span>Now</span><h3>Card title</h3><p>Short supporting text.</p><a class="c-card__foot" href="#">Read more</a></article>One per screen.
HTML
<article class="c-card c-card--lead"><h3>The current thing</h3><p>One per screen.</p></article>Image clipped to the card.
HTML
<article class="c-card c-card--media"><div class="ds-ph" role="img" aria-label="Placeholder image">16:9 image</div><div class="c-card__body"><h3>Media card</h3><p>Image clipped to the card.</p></div></article>Sunken, no shadow.
HTML
<article class="c-card c-card--quiet"><h3>Quiet card</h3><p>Sunken, no shadow.</p></article>Button .c-btn
At least 44×44px. Visible :focus-visible ring ≥3:1. Text on accent ≥4.5:1.
HTML
<a class="c-btn" href="#"><span class="c-btn__chip" aria-hidden="true">→</span>Primary</a>HTML
<a class="c-btn c-btn--ghost c-btn--back" href="/notes.html" aria-label="Back to Notes"><svg viewBox="0 0 12 12" aria-hidden="true" focusable="false"><path d="M7.5 3 4.5 6l3 3" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"/></svg>Notes</a>Pill .c-pill
Not interactive. The dot is decorative.
HTML
<span class="c-pill"><span class="c-pill__dot"></span>Label</span>Chip .c-chip
State via aria-pressed. 44px tap height on touch.
HTML
<button class="c-chip" aria-pressed="true">Selected</button> <button class="c-chip" aria-pressed="false">Filter</button>Tab switch .c-tabswitch
State via aria-selected. Selected: no fill, primary text and an inset accent line that stays inside the tab.
HTML
<div class="c-tabswitch" role="tablist" aria-label="Choose your tool"><button type="button" role="tab" aria-selected="true">Claude / GPT</button><button type="button" role="tab" aria-selected="false" tabindex="-1">Grok Bot</button></div>Team card .c-teamcard
List of people. Avatar is decorative (aria-hidden, alt empty) because the name is in text. 56px avatar from 112px sources. Optional video loop in the avatar slot: transparent PNG poster first, alpha WebM only, never an opaque MP4; posters only under reduced motion; one loop at a time. Focusable cards (tabindex=0) only when they carry a hover or focus loop. Modifier .c-teamcard--wide gives one card a full-width row (grid-column: 1 / -1) in the same style, with a photo avatar at object-fit: cover.
Name Role
One line on what they do.
Rum Junior Developer
Stages every change so it gets seen first.
HTML
<ul class="c-teamcards" aria-label="Team"><li class="c-teamcard"><span class="c-teamcard__av" aria-hidden="true"><img src="/images/about/madhav-avatar.svg" alt="" width="56" height="56"></span><div class="c-teamcard__body"><p class="c-teamcard__n">Name <span class="c-teamcard__pill">Role</span></p><p class="c-teamcard__d">One line on what they do.</p></div></li><li class="c-teamcard"><span class="c-teamcard__av" aria-hidden="true"><img src="/images/about/crew/bot-rum-112-poster-alpha.png" alt="" width="56" height="56"></span><div class="c-teamcard__body"><p class="c-teamcard__n">Rum <span class="c-teamcard__pill">Junior Developer</span></p><p class="c-teamcard__d">Stages every change so it gets seen first.</p></div></li></ul>Tag .c-tag
Text on accent ≥4.5:1. Never the only signal of state.
HTML
<span class="c-tag">New</span> <span class="c-tag c-tag--pixel">BETA</span>Section .c-section
Has a heading or aria-label.
Section content.
HTML
<section class="c-section c-section--tight"><div class="c-section__head"><h2>Section title</h2></div><p>Section content.</p></section>Sticky bar .c-sticky
Solid, never translucent. top = header height (--hh). Anchors need scroll-margin-top.
HTML
<div class="c-sticky" style="position:static"><div style="display:flex;gap:8px;padding-inline:12px"><button class="c-chip" aria-pressed="true">All</button><button class="c-chip" aria-pressed="false">Notes</button></div></div>Plate .c-plate
Meaningful alt. Lazy-load below the fold.
HTML
<figure class="c-plate"><div class="ds-ph" role="img" aria-label="Placeholder image">16:9 image</div><figcaption>Caption</figcaption></figure>Flow .c-flow
Ordered list with aria-label. Branches are text, not shapes. Avatar img alt empty when the name is in text.
Request arrives
One plain message.
Human approves?
- YesNext step.
- NoStop and ask.
Ship and check
HTML
<ol class="c-flow" aria-label="Example flow"><li class="c-flow__step"><p class="c-flow__t">Request arrives</p><p class="c-flow__d">One plain message.</p></li><li class="c-flow__step c-flow__step--human"><p class="c-flow__t">Human approves?</p><ul class="c-flow__br"><li><b>Yes</b><span>Next step.</span></li><li><b>No</b><span>Stop and ask.</span></li></ul></li><li class="c-flow__step"><p class="c-flow__t">Ship and check</p></li></ol>.c-flow--rulesRule title
One line on what it means.
Rule title
One line on what it means.
HTML
<ol class="c-flow c-flow--rules" aria-label="Example rules"><li class="c-flow__step"><p class="c-flow__t">Rule title</p><p class="c-flow__d">One line on what it means.</p></li><li class="c-flow__step"><p class="c-flow__t">Rule title</p><p class="c-flow__d">One line on what it means.</p></li></ol>Themes
Themes only change tokens. Pick one; this page and the rest of the site follow.
--bg-page--bg-raised--fg--accent--on-accent--line-2Pages
Page layouts as wireframes, built from the same components. Placeholders only.
ZipDESIGN.mdtokens.jsoncomponents.jsonllms.txt
Free to use. Inter and Geist Pixel are under the SIL Open Font License.
