Design System
Tokens, components, and patterns every artifact in artifacts/ should reuse.
Edit the :root variables in the <style> block to match your project's taste —
the structure below stays the same.
Colors
Typography
Display heading
Section heading
Subsection heading
Detail heading
Body copy uses the sans stack at --text-base with --leading-body line height.
Reading is more important than density. Inline link, inline code, and
strong emphasis follow.
--text-muted for secondary information.
Buttons
Status badges
default
success
warning
error
Tables
| Type | Use for | Status |
|---|---|---|
| spec | Implementation plan | stable |
| pr-explain | PR review writeup | stable |
| design | Component prototype | draft |
Code
function tokens() {
return { bg: 'var(--bg)', text: 'var(--text)' };
}
SVG diagrams
Two-way interaction
Artifacts that accept input must include an export button. Pattern:
btn.addEventListener('click', () => {
navigator.clipboard.writeText(JSON.stringify(state, null, 2));
toast('Copied');
});