Files
design/guidelines/brand-radii.card.html
zeekayandHanzo Dev 01dc7b5306 fix: shipped components spoke the fork's border vocabulary, which no longer exists
Swapping the forked token layer for the inherited one silently orphaned
two names. The fork declared --border-hairline (a solid #262626) and
--border-card; the substrate draws every one of those boundaries with a
single alpha --border, and explains at length why alpha beats a solid hex
there — a solid edge reads on the page and vanishes the moment it lands
on a lifted surface.

Nineteen shipped files still asked for the old names: Card, Avatar,
Badge, Table, Accordion, Dialog, DropdownMenu, Sheet, Toaster, seven
specimen cards, and the generation prompts. An undefined custom property
in `border:1px solid var(--gone)` does not fail. The declaration is
invalid at computed-value time, border-color falls back to currentColor,
and every one of those surfaces draws its edge in the INK colour — a
stark near-white hairline on black that reads as a bold design choice
rather than as nineteen broken files.

They are not re-declared as aliases. Both mapped to the substrate's
--border, so keeping them would be two names for one thing — exactly the
duplication this package exists to remove. The components now speak the
substrate's vocabulary.

check-tokens gains the check that would have caught it. Check 4 proves
the STYLESHEET is internally consistent and says nothing about the
components, kits, specimen cards and prompts shipped beside it — which
are the files a consumer actually renders. Now every var() in all 78 of
them must resolve against the sheet. Mutation-proven: pointing one card
back at --border-hairline fails the build.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-05 15:50:28 -07:00

17 lines
2.0 KiB
HTML

<!-- @dsCard group="Brand" viewport="700x150" name="Radii" subtitle="Six steps, from the 6px button to the 28px composer" -->
<!doctype html><html class="dark"><head><meta charset="utf-8"><title>Radii</title><link rel="stylesheet" href="../styles.css">
<style>body{margin:0;padding:16px 20px;background:#000;font-family:var(--font-sans);color:var(--foreground)}
.g{display:flex;gap:10px;flex-wrap:wrap}.sw{flex:1;min-width:64px}.chip{height:56px;border-radius:8px;border:1px solid var(--white-10)}
.n{margin-top:6px;font-size:10px;font-weight:600;letter-spacing:.06em;color:var(--neutral-300);font-family:var(--font-mono)}
.v{font-size:9px;color:var(--neutral-600);font-family:var(--font-mono)}
.row{display:flex;align-items:baseline;gap:14px}.mono{font-family:var(--font-mono)}
.meta{font-size:10px;color:var(--neutral-600);font-family:var(--font-mono);white-space:nowrap}
</style></head><body>
<div class="g">
<div class="sw"><div style="height:48px;background:var(--surface-card);border:1px solid var(--border);border-radius:6px"></div><div class="n">6px</div><div class="v">button · input</div></div>
<div class="sw"><div style="height:48px;background:var(--surface-card);border:1px solid var(--border);border-radius:12px"></div><div class="n">12px</div><div class="v">card</div></div>
<div class="sw"><div style="height:48px;background:var(--surface-card);border:1px solid var(--border);border-radius:16px"></div><div class="n">16px</div><div class="v">panel</div></div>
<div class="sw"><div style="height:48px;background:var(--surface-card);border:1px solid var(--border);border-radius:24px"></div><div class="n">24px</div><div class="v">story card</div></div>
<div class="sw"><div style="height:48px;background:var(--surface-card);border:1px solid var(--border);border-radius:28px"></div><div class="n">28px</div><div class="v">composer</div></div>
<div class="sw"><div style="height:48px;background:var(--surface-card);border:1px solid var(--border);border-radius:999px"></div><div class="n">999px</div><div class="v">pill · avatar</div></div>
</div></body></html>