Reference

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.

Muted small text uses --text-muted for secondary information.

Buttons

Status badges

default success warning error

Tables

TypeUse forStatus
specImplementation planstable
pr-explainPR review writeupstable
designComponent prototypedraft

Code

function tokens() {
  return { bg: 'var(--bg)', text: 'var(--text)' };
}

SVG diagrams

Source Synthesize Artifact

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');
});
Token snapshot Copied