mirror of
https://github.com/hanzoai/design.git
synced 2026-10-30 14:58:37 +00:00
`guidelines/*.card.html` drew from `--border-hairline` and `--border-card` across seven files. Neither is declared anywhere. An undefined custom property makes the declaration invalid, `border-color` falls back to `currentColor`, and near-white hairlines on black is precisely the defect this package exists to prevent — rendered, for anyone reading the documentation, by the card that documents borders. It survived because `lint.mjs` skipped those paths ENTIRELY. The exemption is real but narrower than it was written: a swatch legitimately states a hex, and a swatch does not legitimately name a token that does not exist. Rule 1 — "a var() must resolve" — is a correctness rule, not a value rule, and now runs on every file. `pnpm test` lints guidelines alongside components so it cannot go quiet again. The borders card itself was documenting the pre-0.4 world: two tokens that no longer exist, and captions reading #1f1f1f, neutral-700 and #333 for values that are now white/10, white/16 and white/40. It shows the six real rungs. Co-authored-by: Hanzo Dev <[email protected]>
17 lines
2.0 KiB
HTML
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> |