{ "schemaVersion": 2, "generatedAt": "2026-12-01T00:00:00Z", "title": "Design System: refs", "extensions": { "colorMeta": { "ground": { "role": "neutral", "displayName": "Ground", "canonical": "#0e0e10", "tonalRamp": [ "#09090b", "#0a0a0c", "#0e0e10", "#151517", "#1a1a1d", "#1d1d20", "#83838c", "#f2f2f3" ] }, "panel": { "role": "neutral", "displayName": "Card Panel", "canonical": "#151517", "tonalRamp": [ "#09090b", "#0e0e10", "#151517", "#1a1a1d", "#1d1d20", "#232326", "#a3a3ab", "#f2f2f3" ] }, "ink": { "role": "neutral", "displayName": "Ink", "canonical": "#f2f2f3", "tonalRamp": [ "#5c5c66", "#6c6c76", "#83838c", "#a3a3ab", "#cfcfd5", "#dedee2", "#f2f2f3", "#ffffff" ] }, "primary": { "role": "primary", "displayName": "Ink Primary", "canonical": "#f2f2f3", "tonalRamp": [ "#18181b", "#2e2e33", "#5c5c66", "#a3a3ab", "#cfcfd5", "#dedee2", "#f2f2f3", "#ffffff" ] }, "accent": { "role": "secondary", "displayName": "Person Blue", "canonical": "#3d69f2", "tonalRamp": [ "#1b2f73", "#2449d6", "#2f5bf0", "#3d69f2", "#6a90ff", "#92adff", "#c2d0ff", "#e6ecff" ] }, "needs": { "role": "secondary", "displayName": "Needs-You Amber", "canonical": "#f5b83d", "tonalRamp": [ "#5c4000", "#8a5d00", "#d99a0b", "#f5b83d", "#f7c85f", "#f9d98a", "#fbe7b5", "#fdf3da" ] }, "success": { "role": "secondary", "displayName": "Merged Green", "canonical": "#45c287", "tonalRamp": [ "#0f4a2c", "#1c8551", "#2fa56c", "#45c287", "#6fd3a2", "#9ae2be", "#c5efd9", "#e6f8ee" ] }, "porcelain": { "role": "tertiary", "displayName": "Main Line", "canonical": "#d8d8dc", "tonalRamp": [ "#3a3a40", "#5c5c66", "#83838c", "#a3a3ab", "#c4c4ca", "#d8d8dc", "#ececef", "#f7f7f8" ] }, "ochre": { "role": "tertiary", "displayName": "Ochre Branch", "canonical": "#d0a455", "tonalRamp": [ "#4d3a14", "#7a5c1e", "#a77b2a", "#d0a455", "#dcb977", "#e7cd9b", "#f1e1c1", "#f9f1e2" ] }, "sage": { "role": "tertiary", "displayName": "Sage Branch", "canonical": "#7db892", "tonalRamp": [ "#2a4332", "#4f7d5b", "#689b78", "#7db892", "#9bcaab", "#b9dbc4", "#d6ebdd", "#edf6f0" ] } }, "typographyMeta": { "body": { "displayName": "Body", "purpose": "Inter Variable, 14px root in rem, for text and prose." }, "control": { "displayName": "Compact", "purpose": "Inter 500 at 13px (`text-compact`) for buttons, tabs, fields and cells." }, "title": { "displayName": "Title", "purpose": "Inter 600 at 24px (`text-title`) with tight tracking, for a page, a pull request or a task." }, "caption": { "displayName": "Caption", "purpose": "Inter 500 at 12px, sentence case, for the label of a row, a field or a group. Never a kicker." }, "code": { "displayName": "Code", "purpose": "Geist Mono Variable for paths, refs, hashes, diffs and agent handles." } }, "shadows": [ { "name": "card", "value": "0 0 0 1px rgb(255 255 255 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.03)", "purpose": "The ring of a card. In light mode it adds a tight lift and an ambient layer." }, { "name": "control", "value": "0 0 0 1px rgb(255 255 255 / 0.11), inset 0 1px 0 rgb(255 255 255 / 0.04), 0 1px 2px rgb(0 0 0 / 0.4)", "purpose": "The ring of a secondary button." }, { "name": "surface", "value": "0 0 0 1px rgb(255 255 255 / 0.1), 0 4px 12px -4px rgb(0 0 0 / 0.5), 0 20px 48px -12px rgb(0 0 0 / 0.7)", "purpose": "Menus, popovers, dialogs and the drawer only." }, { "name": "row-hairline", "value": "inset 0 -1px 0 var(--hairline)", "purpose": "Divider under a row or a card header." }, { "name": "agent-ring", "value": "inset 0 0 0 1.5px var(--porcelain)", "purpose": "Hollow agent mark." } ], "motion": [ { "name": "ease-out", "value": "cubic-bezier(0.23, 1, 0.32, 1)", "purpose": "Press, popups, dialogs, reveals, entrances, line draw." }, { "name": "ease-in-out", "value": "cubic-bezier(0.77, 0, 0.175, 1)", "purpose": "On-screen movement." }, { "name": "ease-drawer", "value": "cubic-bezier(0.32, 0.72, 0, 1)", "purpose": "The drawer and phone sheets." }, { "name": "ease-icon", "value": "cubic-bezier(0.2, 0, 0, 1)", "purpose": "Icon swaps: scale 0.25 to 1, blur 4px to 0, 300ms." }, { "name": "press", "value": "scale 0.96, 150ms", "purpose": "Buttons only. Frequent controls stay still." }, { "name": "popup", "value": "from opacity 0 scale 0.96, 180ms in, 120ms out", "purpose": "Grows from the trigger." }, { "name": "shimmer", "value": "translate -100% to 100%, 1.4s linear", "purpose": "The one loading language. No progress bar." }, { "name": "line-draw", "value": "stroke-dashoffset, 700ms ease-out", "purpose": "The authored moment: the line draws when a pull request opens." } ], "breakpoints": [ { "name": "sm", "value": "640px" }, { "name": "md", "value": "768px" }, { "name": "lg", "value": "1024px" } ] }, "components": [ { "name": "Primary Button", "kind": "button", "refersTo": "button-primary", "description": "The one ink action on a surface.", "html": "", "css": ".ds-btn-primary { height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--primary, #f2f2f3); color: var(--on-primary, #111113); font: 500 13px 'Inter Variable', system-ui, sans-serif; cursor: pointer; transition: background-color 150ms, scale 150ms cubic-bezier(0.23,1,0.32,1); } .ds-btn-primary:hover { background: var(--primary-hover, #dedee2); } .ds-btn-primary:active { scale: 0.96; } .ds-btn-primary:focus-visible { outline: 2px solid var(--accent-hover, #6a90ff); outline-offset: 2px; }" }, { "name": "Secondary Button", "kind": "button", "refersTo": "button-secondary", "description": "A control fill on a soft ring. The default button.", "html": "", "css": ".ds-btn-secondary { height: 28px; padding: 0 11px; border: 0; border-radius: 8px; background: var(--control, #1a1a1d); color: var(--ink, #f2f2f3); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.11), 0 1px 2px rgb(0 0 0 / 0.4); font: 500 13px 'Inter Variable', system-ui, sans-serif; cursor: pointer; transition: background-color 150ms, scale 150ms cubic-bezier(0.23,1,0.32,1); } .ds-btn-secondary:hover { background: var(--control-hover, #232326); } .ds-btn-secondary:active { scale: 0.96; }" }, { "name": "Text Field", "kind": "input", "refersTo": "input", "description": "A field fill with a line ring. Focus shows an accent ring and a soft tint.", "html": "", "css": ".ds-input { width: 220px; height: 28px; padding: 0 9px; border: 0; border-radius: 8px; background: var(--field, rgb(255 255 255 / 0.035)); color: var(--ink, #f2f2f3); box-shadow: inset 0 0 0 1px var(--line, rgb(255 255 255 / 0.13)); font: 400 13px 'Inter Variable', system-ui, sans-serif; transition: box-shadow 150ms; } .ds-input::placeholder { color: var(--faint, #83838c); } .ds-input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--accent-hover, #6a90ff), 0 0 0 3px var(--accent-tint, rgb(79 124 255 / 0.15)); }" }, { "name": "Underline Tab", "kind": "nav", "refersTo": "layer-card", "description": "The active tab has a 2px ink underline.", "html": "
ReasoningConversationFiles
", "css": ".ds-tabs { display: flex; gap: 18px; box-shadow: inset 0 -1px 0 var(--hairline, rgb(255 255 255 / 0.07)); } .ds-tab { position: relative; padding: 5px 0 9px; color: var(--muted, #a3a3ab); font: 500 13px 'Inter Variable', system-ui, sans-serif; cursor: pointer; transition: color 150ms; } .ds-tab:hover, .ds-tab[data-active] { color: var(--ink, #f2f2f3); } .ds-tab[data-active]::after { content: \"\"; position: absolute; inset: auto 0 0 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--ink, #f2f2f3); }" }, { "name": "Layer Card", "kind": "card", "refersTo": "layer-card", "description": "A panel on a soft ring with a header row. Every list, table, file and form sits in one.", "html": "
Agents online
claude-code on tasks/2
", "css": ".ds-card { overflow: hidden; border-radius: 12px; background: var(--panel, #151517); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07), inset 0 1px 0 rgb(255 255 255 / 0.03); } .ds-card-head { padding: 10px 14px; color: var(--ink, #f2f2f3); font: 500 13px 'Inter Variable', system-ui, sans-serif; box-shadow: inset 0 -1px 0 var(--hairline, rgb(255 255 255 / 0.07)); } .ds-card-body { padding: 14px; color: var(--ink, #f2f2f3); font: 400 14px 'Inter Variable', system-ui, sans-serif; }" }, { "name": "Status Badge", "kind": "chip", "refersTo": "badge", "description": "A 20px chip in caption type, sentence case. Green means merged.", "html": "Merged", "css": ".ds-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--success-tint, rgb(69 194 135 / 0.13)); color: var(--success, #45c287); font: 500 12px 'Inter Variable', system-ui, sans-serif; }" }, { "name": "Human and Agent Avatars", "kind": "custom", "refersTo": "avatar-human", "description": "A person is a filled blue circle. An agent is a hollow ring.", "html": "AK CC", "css": ".ds-human, .ds-agent { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 9999px; font: 600 10px 'Inter Variable', system-ui, sans-serif; } .ds-human { background: var(--accent, #3d69f2); color: #fff; } .ds-agent { color: var(--porcelain, #d8d8dc); box-shadow: inset 0 0 0 1.5px var(--porcelain, #d8d8dc); }" }, { "name": "Line Badge", "kind": "custom", "refersTo": "layer-card", "description": "A branch as a short line ending in a hollow dot. Ochre or sage for branches, porcelain for main.", "html": "tasks/2", "css": ".ds-line { display: inline-flex; align-items: center; gap: 6px; color: var(--ink, #f2f2f3); font: 400 12px 'Geist Mono Variable', ui-monospace, monospace; }" }, { "name": "Decision Card", "kind": "custom", "refersTo": "layer-card", "description": "A decision heading with a Steer action, then rows with caption labels.", "html": "
Keep one ordered queue per customer.
WhyBilling reads webhooks in order.
Touchessrc/queue.ts
", "css": ".ds-decision { border-radius: 12px; background: var(--panel, #151517); box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07); color: var(--ink, #f2f2f3); font: 400 13px 'Inter Variable', system-ui, sans-serif; } .ds-d-head { padding: 12px 14px; box-shadow: inset 0 -1px 0 var(--hairline, rgb(255 255 255 / 0.07)); font-size: 14px; } .ds-d-row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 7px 14px; } .ds-caption { color: var(--faint, #83838c); font: 500 12px 'Inter Variable', system-ui, sans-serif; } .ds-decision code { font: 400 12px 'Geist Mono Variable', ui-monospace, monospace; color: var(--muted, #a3a3ab); }" }, { "name": "Shimmer", "kind": "custom", "refersTo": "layer-card", "description": "A loading placeholder in the shape of the content. The only loading indicator for pages.", "html": "", "css": ".ds-shimmer { display: block; position: relative; overflow: hidden; height: 12px; border-radius: 6px; background: var(--hover, rgb(255 255 255 / 0.06)); } .ds-shimmer::after { content: \"\"; position: absolute; inset: 0; translate: -100% 0; background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.07), transparent); animation: ds-shimmer 1.4s linear infinite; } @keyframes ds-shimmer { to { translate: 100% 0; } }" } ], "narrative": { "northStar": "Quiet Line", "overview": "refs is a calm ink interface. Apple's Human Interface Guidelines are the method, applied where they fit the web, with Linear as a second reference. Almost everything is neutral ink on graphite or on white. Cards on soft rings give each page its structure. The line of decisions is refs' own signature: a branch is a line, a decision is a station, a merge is an interchange. The theme follows the system and the reader can change it.", "keyCharacteristics": [ "The theme follows the system; dark and light use the same semantic tokens.", "Cards on soft shadow rings hold every list, table, file and form. Hairlines divide rows.", "The header, menus and popovers are a translucent material. Content is never glass.", "The primary action is an ink button. Blue stays for people.", "Inter for text, Geist Mono for machine text, Lucide icons with a 1.5px stroke at every size.", "Loading is a shimmer in the shape of the content. There is no progress bar.", "One signature: the line diagram. One authored motion moment: the line draws itself." ], "rules": [ { "name": "The Colour Jobs Rule", "body": "Blue is a person. Amber needs you now. Green is merged. Do not use a color for decoration.", "section": "colors" }, { "name": "The Ink Primary Rule", "body": "A surface has one primary button, and it is ink. Secondary actions sit on the control fill with a ring.", "section": "colors" }, { "name": "The Needs-You Rule", "body": "Amber appears only on items that wait for the reviewer.", "section": "colors" }, { "name": "The Contrast Rule", "body": "faint is the quietest text allowed. It is 4.5:1 or more on ground, panel and sunken in both themes. Use needs-text, not needs, for amber text.", "section": "colors" }, { "name": "The Tracking Rule", "body": "Tracking follows size. Large text tightens. Text of 12px and smaller stays at 0.", "section": "typography" }, { "name": "The Scale Rule", "body": "Use the named sizes in rem: title 24, heading 22, headline 16, callout 15, base 14, compact 13, xs 12. No pixel text sizes. Nothing smaller than 12px.", "section": "typography" }, { "name": "The Caption Rule", "body": "A caption names the data beside it or below it. Do not put it above a heading as a kicker.", "section": "typography" }, { "name": "The Mono For Machines Rule", "body": "Anything a machine wrote or reads (path, ref, hash, agent handle) is set in Geist Mono.", "section": "typography" }, { "name": "The Structure Rule", "body": "Cards give a page its structure. Do not strip the frame from a list to make a page look simpler. Use shadow rings for depth and hairlines for dividers.", "section": "elevation" }, { "name": "The Two Layers Rule", "body": "Blur belongs to the functional layer that floats. Cards, rows and content never get glass. Do not stack glass on glass.", "section": "elevation" }, { "name": "The Loading Rule", "body": "Loading is a shimmer placeholder. A navigation keeps the page, then dims it, then shows a skeleton of the page to come. A form shows its work in its button.", "section": "motion" } ], "dos": [ "Do read semantic tokens so dark and light stay in step.", "Do keep one ink primary button on a surface.", "Do mark a human act with the filled blue circle and agent work with the hollow ring.", "Do keep lists, tables, files and forms in cards.", "Do keep radii concentric: 6, 8, 12 and 16px.", "Do import icons from `@refs/design-system/icons`.", "Do give every screen an empty state with a next step, a loading state and an error state.", "Do keep motion small and fast, and give each animation a reduced-motion variant." ], "donts": [ "Don't use blue, amber or green as decoration.", "Don't put blur on content, or glass on glass.", "Don't add a progress bar or a spinner for page loads.", "Don't write pixel text sizes or raw hex in components.", "Don't animate frequent controls (menu items, tabs, rail rows, checkboxes) or page changes.", "Don't use `transition: all`, `scale(0)` or `ease-in`.", "Don't replace the line diagram with a flat commit list." ] } }