mirror of
https://github.com/block/buzz.git
synced 2026-11-25 02:31:36 +00:00
feat(desktop-next): add the type system, fix unreachable border roles
The design system site rendered black borders and dividers while the tokens said `#d4d4d4`. The border roles were declared in layer 2 and never registered with Tailwind, so `border-primary` silently resolved to `--color-primary` — the *text* colour — and every hairline drew at text contrast. Tailwind's `--color-*` is a single namespace and text/borders share the emphasis names while holding different values, so borders now register as `--border-color-*`. Add typography as the second foundation, same three layers as colour: a nine-step size ramp plus leading, tracking, and weight ramps in layer 1; ten public roles in layer 2, each carrying its whole setting via Tailwind v4's `--text-<name>--<property>` convention, so `text-body` alone produces correctly set text and two supposedly identical labels cannot drift apart. Inter Variable and JetBrains Mono, both already shipped in every current Buzz client. Every size derives from one virtual rem, so keyboard zoom and the font-size preference work by construction. Soften the documentation surface to match where the product is going: regions separated by soft fills rather than outlines, hairlines only for genuine boundaries and never above `border-secondary`, no page-wide gradient behind reading columns, and no all-caps labels anywhere. The `/design/typography` page renders from the registry, so it cannot drift from the system. Add `scripts/check-type.mjs` enforcing the four rules a token cannot express — no arbitrary sizes (px or rem), no `uppercase`, no hand-applied tracking, no size role paired with a weight or leading utility. Also collapse the nav to a wrapped row below `lg`; the fixed 256px column overflowed the viewport under 420px. Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This commit is contained in:
@@ -32,10 +32,16 @@ Port 1430, so it can run alongside the existing client on 1420.
|
||||
|
||||
```bash
|
||||
pnpm typecheck # tsc --noEmit
|
||||
pnpm check # biome
|
||||
pnpm check # biome + the type-system guard
|
||||
pnpm check:type # the type-system guard alone
|
||||
pnpm biome check --write . # auto-fix
|
||||
```
|
||||
|
||||
`scripts/check-type.mjs` enforces four things the type system cannot express as
|
||||
a token: no arbitrary text sizes (px **or** rem), no `uppercase`, no
|
||||
hand-applied `tracking-*`, and no size role paired with a weight or leading
|
||||
utility. Each one is a defect the existing client already paid for.
|
||||
|
||||
---
|
||||
|
||||
## Stack, and why
|
||||
@@ -52,6 +58,53 @@ dependency.
|
||||
|
||||
---
|
||||
|
||||
## The type system
|
||||
|
||||
Same three layers as colour, and the same rule: only roles are used when
|
||||
building a screen.
|
||||
|
||||
```
|
||||
LAYER 1 --type-size-1…9 --type-leading-* --type-tracking-* --type-weight-*
|
||||
LAYER 2 --text-body: var(--type-size-4) + its line height, tracking, weight
|
||||
LAYER 3 text-body
|
||||
```
|
||||
|
||||
**A role carries its whole typographic setting**, using Tailwind v4's
|
||||
`--text-<name>--<property>` convention. So `text-body` sets size, line height,
|
||||
letter spacing, and weight together — never pair a size role with a separate
|
||||
`font-medium` or `leading-*`, because that is how two supposedly identical labels
|
||||
drift apart.
|
||||
|
||||
Ten roles: `text-display`, `text-title`, `text-heading`, `text-subheading`,
|
||||
`text-body-lg`, `text-body`, `text-label`, `text-caption`, `text-meta`,
|
||||
`text-code`. Two faces: `font-sans` (Inter Variable) and `font-mono`
|
||||
(JetBrains Mono) — both already shipped in every current Buzz client.
|
||||
|
||||
Hard rules:
|
||||
|
||||
- **Never a px size.** Everything derives from one virtual rem, so keyboard zoom
|
||||
and the font-size preference both work by construction. A px literal breaks
|
||||
both, which the existing client learned by shipping the regression.
|
||||
- **No `uppercase`, no hand-applied `tracking-*`.** All-caps labels are less
|
||||
legible and read as enterprise chrome; tracking is already corrected per step.
|
||||
- **Size roles and colour roles never collide.** Colour registers in
|
||||
Tailwind's `--color-*` namespace and is named for emphasis (`text-primary`);
|
||||
size registers in `--text-*` and is named for an editorial job (`text-body`).
|
||||
So `text-primary text-body` is one colour plus one setting, and no name ever
|
||||
means both.
|
||||
|
||||
### Borders register in their own namespace
|
||||
|
||||
`--color-*` is a single namespace, and text and borders share the emphasis names
|
||||
`primary` / `secondary` / `tertiary` while holding different values — text at the
|
||||
dark end of the neutral ramp, borders at the light end. Border roles therefore
|
||||
register as `--border-color-*`, not `--color-border-*`.
|
||||
|
||||
Get this wrong and there is no error: `border-primary` silently resolves to the
|
||||
*text* colour and every hairline in the product draws at near-black. That is not
|
||||
hypothetical — it shipped, and it is why the first design system site had black
|
||||
dividers while the tokens said `#d4d4d4`.
|
||||
|
||||
## The colour system
|
||||
|
||||
Three layers. Only the role layer is ever used when building a screen.
|
||||
@@ -134,8 +187,9 @@ time as the product repeats something — see DESIGN.md § Components.
|
||||
|
||||
Deliberately, so nobody assumes it was forgotten:
|
||||
|
||||
- **Typography, spacing, radius, and motion tokens.** Their `/design` pages state
|
||||
what is still to decide rather than pretending to a system. Typography is next.
|
||||
- **Spacing, radius, and motion tokens.** Their `/design` pages state what is
|
||||
still to decide rather than pretending to a system. Typography has landed;
|
||||
spacing is next.
|
||||
- **Any product component.** No Button, no Dialog, no input layer.
|
||||
- **Tauri.** This is a web app for now; the native shell comes with the app shell.
|
||||
- **Relay, auth, event handling.** None of it. When it arrives it comes from the
|
||||
|
||||
@@ -11,7 +11,9 @@ Buzz is a place where people build together and bring their agents into the room
|
||||
## Surface and depth
|
||||
|
||||
- **Panels sit on the backdrop; the backdrop is a gradient.** Everything else is a panel in a different place. The navigation column is not a special kind of surface.
|
||||
- **Depth comes from hairline borders and near-invisible shadows, not from many surface colours.** Reach for a border before reaching for a new fill.
|
||||
- **A region is separated by a soft fill, not by an outline.** Reach for `bg-inset` before reaching for a border. A bordered box announces its own edges; a filled one lets the content sit in a place. Grouping is the common case, so the quiet treatment is the default one.
|
||||
- **A border is for a genuine boundary, and never above `border-secondary`.** A hairline that reads as a line — rather than as the edge where two surfaces meet — is too strong. Text and borders share the emphasis names but not their values: text lives at the dark end of the neutral ramp, borders at the light end. If a divider looks like text, it is pointed at the wrong role.
|
||||
- **No page-wide gradient behind documentation or dense reading.** The gradient is the product's backdrop for chrome and panels. Behind a column of prose it fights the text and makes contrast position-dependent — such surfaces sit on `bg-panel`.
|
||||
- **Shadows stay at the threshold of perception.** If a shadow is obvious, it is too strong. The two elevation values are the whole vocabulary.
|
||||
- **Elevation is carried by shadow in light mode and by lightness in dark mode.** On a near-black background there is nothing darker for a shadow to cast, so a floating surface becomes a step lighter instead. Never reach for a stronger shadow to make something float in dark mode.
|
||||
- **On a translucent surface, elevation reads as less translucency, not as a lighter colour.** A glass container with a fully opaque child looks layered; the same container with a merely brighter child looks unchanged.
|
||||
@@ -36,6 +38,15 @@ Buzz is a place where people build together and bring their agents into the room
|
||||
- **Borders use the same three levels, and they mean the same thing.** Learn the ramp once.
|
||||
- **Weight and size carry hierarchy before colour does.** Reaching for a louder colour to fix hierarchy usually means the size relationship is wrong.
|
||||
|
||||
## Type
|
||||
|
||||
- **A type role carries its whole setting.** Size, line height, letter spacing, and weight are one decision, not four. `text-body` alone produces correctly set text — never pair a size role with a separate weight or leading utility, because that is how two supposedly identical labels drift apart.
|
||||
- **Roles are named for the job the text does, never for its size.** `text-title`, not `text-28`. A size name is a value in disguise and goes stale the moment the ramp moves.
|
||||
- **Never all-caps, and never tracked-out labels.** A capitalised label is harder to read than its sentence-case version and reads as enterprise chrome. A quiet label earns its quietness from size and colour — `text-meta` on `text-tertiary` — rather than from being shouted. There is deliberately no uppercase utility in this system.
|
||||
- **Every size is relative.** Nothing may be expressed in px: fixed pixel text freezes against keyboard zoom and ignores the person's font-size preference. The existing client shipped a regression from exactly this.
|
||||
- **Tracking is an optical correction, not a style.** Inter needs progressively tighter spacing as it grows. The ramp already applies it per step; do not add tracking by hand.
|
||||
- **Code is one step below body.** At equal size a monospace face reads larger than Inter and pulls the eye off the sentence.
|
||||
|
||||
## Both modes
|
||||
|
||||
- **Design in both modes, not in light and then dark.** Dark is not a filter applied afterwards: elevation, glass, and accent text all behave differently there.
|
||||
|
||||
@@ -9,12 +9,14 @@
|
||||
"typecheck": "tsc --noEmit",
|
||||
"preview": "vite preview",
|
||||
"lint": "biome lint .",
|
||||
"check": "biome check .",
|
||||
"format": "biome format --write ."
|
||||
"check": "biome check . && node scripts/check-type.mjs",
|
||||
"format": "biome format --write .",
|
||||
"check:type": "node scripts/check-type.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@base-ui-components/react": "1.0.0-rc.0",
|
||||
"@fontsource-variable/inter": "^5.2.8",
|
||||
"@fontsource/jetbrains-mono": "^5.3.0",
|
||||
"@tanstack/react-router": "^1.168.10",
|
||||
"react": "^19.1.0",
|
||||
"react-dom": "^19.1.0"
|
||||
|
||||
125
desktop-next/scripts/check-type.mjs
Normal file
125
desktop-next/scripts/check-type.mjs
Normal file
@@ -0,0 +1,125 @@
|
||||
#!/usr/bin/env node
|
||||
/**
|
||||
* Type-system guard.
|
||||
*
|
||||
* Three rules from DESIGN.md § Type, enforced rather than trusted. Each one has
|
||||
* already cost the existing client real work:
|
||||
*
|
||||
* 1. No arbitrary text sizes — `text-[15px]`, `text-[0.9rem]`, `font-size:`.
|
||||
* Fixed px froze against keyboard zoom and shipped a message-timeline
|
||||
* regression; arbitrary rem re-fragments the scale we just consolidated.
|
||||
* 2. No `uppercase` / `tracking-*` utilities. All-caps labels are less legible
|
||||
* and read as enterprise chrome, and tracking is corrected per ramp step.
|
||||
* 3. No size role paired with a weight or leading utility. A role carries its
|
||||
* whole setting; pairing one with `font-medium` is how two supposedly
|
||||
* identical labels drift apart.
|
||||
*
|
||||
* Run: pnpm check:type
|
||||
*/
|
||||
|
||||
import { readdirSync, readFileSync, statSync } from "node:fs";
|
||||
import { join, relative } from "node:path";
|
||||
|
||||
const SRC = new URL("../src", import.meta.url).pathname;
|
||||
|
||||
/** Size roles a component may use. Kept in sync with typography.css. */
|
||||
const SIZE_ROLES = [
|
||||
"display",
|
||||
"title",
|
||||
"heading",
|
||||
"subheading",
|
||||
"body-lg",
|
||||
"body",
|
||||
"label",
|
||||
"caption",
|
||||
"meta",
|
||||
"code",
|
||||
];
|
||||
|
||||
const RULES = [
|
||||
{
|
||||
id: "arbitrary-text-size",
|
||||
// text-[...] with any unit, plus raw CSS font-size declarations.
|
||||
pattern: /\btext-\[[^\]]*(?:px|rem|em|pt|%)[^\]]*\]|font-size\s*:/g,
|
||||
message:
|
||||
"arbitrary text size — use a named role (text-body, text-label, …). px freezes against zoom; arbitrary rem re-fragments the scale.",
|
||||
},
|
||||
{
|
||||
id: "uppercase",
|
||||
// Only inside a className/class string — otherwise prose describing the
|
||||
// rule trips it, and a guard that cries wolf gets ignored.
|
||||
pattern: /class(?:Name)?=(?:"|'|`)[^"'`]*\buppercase\b/g,
|
||||
message:
|
||||
"all-caps text — DESIGN.md § Type forbids it. A quiet label uses text-meta on text-tertiary instead.",
|
||||
},
|
||||
{
|
||||
id: "manual-tracking",
|
||||
pattern: /\btracking-(?:tighter|tight|normal|wide|wider|widest|\[)/g,
|
||||
message:
|
||||
"hand-applied tracking — the ramp already corrects tracking per step.",
|
||||
},
|
||||
{
|
||||
id: "role-plus-weight",
|
||||
// A size role sharing a *className string* with a weight or leading
|
||||
// utility. Anchoring to the attribute keeps the ramp's own
|
||||
// `--text-body--line-height` declarations out of it — those are the
|
||||
// definitions, not a component overriding one.
|
||||
pattern: new RegExp(
|
||||
`class(?:Name)?=(?:"|'|\`)[^"'\`]*\\btext-(?:${SIZE_ROLES.join("|")})\\b[^"'\`]*\\b(?:font-(?:thin|extralight|light|normal|medium|semibold|bold|extrabold|black)|leading-)`,
|
||||
"g",
|
||||
),
|
||||
message:
|
||||
"size role paired with a weight/leading utility — a role already carries its whole setting.",
|
||||
},
|
||||
];
|
||||
|
||||
function walk(dir) {
|
||||
return readdirSync(dir).flatMap((entry) => {
|
||||
const full = join(dir, entry);
|
||||
if (statSync(full).isDirectory()) return walk(full);
|
||||
return /\.(tsx?|css)$/.test(full) ? [full] : [];
|
||||
});
|
||||
}
|
||||
|
||||
const failures = [];
|
||||
|
||||
for (const file of walk(SRC)) {
|
||||
const source = readFileSync(file, "utf8");
|
||||
// The typography ramp itself is the one place literals are legal — it is
|
||||
// layer 1, where values live by design.
|
||||
const isRamp = file.endsWith("typography.css");
|
||||
const lines = source.split("\n");
|
||||
|
||||
lines.forEach((line, index) => {
|
||||
// Skip comment-only lines: the docs quote the very patterns they forbid.
|
||||
const trimmed = line.trim();
|
||||
if (
|
||||
trimmed.startsWith("*") ||
|
||||
trimmed.startsWith("//") ||
|
||||
trimmed.startsWith("/*")
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const rule of RULES) {
|
||||
if (isRamp && rule.id === "arbitrary-text-size") continue;
|
||||
rule.pattern.lastIndex = 0;
|
||||
const match = rule.pattern.exec(line);
|
||||
if (match) {
|
||||
failures.push(
|
||||
`${relative(process.cwd(), file)}:${index + 1} ${rule.id}\n ${trimmed}\n → ${rule.message}`,
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (failures.length > 0) {
|
||||
console.error(
|
||||
`\n✗ Type system: ${failures.length} violation${failures.length === 1 ? "" : "s"}\n`,
|
||||
);
|
||||
console.error(`${failures.join("\n\n")}\n`);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log("✓ Type system: no violations");
|
||||
@@ -3,14 +3,14 @@ import { Link, createFileRoute } from "@tanstack/react-router";
|
||||
function Home() {
|
||||
return (
|
||||
<div className="flex min-h-screen flex-col items-center justify-center gap-4 px-6 text-center">
|
||||
<h1 className="text-2xl font-semibold text-primary">Buzz</h1>
|
||||
<p className="max-w-md text-sm text-secondary">
|
||||
<h1 className="text-title text-primary">Buzz</h1>
|
||||
<p className="max-w-md text-body-lg text-secondary">
|
||||
The new client. Nothing here yet — the shell and its capabilities come
|
||||
later. The design system is the foundation being built first.
|
||||
</p>
|
||||
<Link
|
||||
to="/design"
|
||||
className="rounded-lg bg-accent px-4 py-2 text-sm font-medium text-on-accent transition-opacity hover:opacity-90"
|
||||
className="rounded-lg bg-accent px-4 py-2 text-label text-on-accent transition-opacity hover:opacity-90"
|
||||
>
|
||||
Open the design system
|
||||
</Link>
|
||||
|
||||
@@ -11,23 +11,23 @@ function RoleRow({ role }: { role: Role }) {
|
||||
return (
|
||||
<div className="flex items-start gap-4 border-b border-tertiary py-3 last:border-b-0">
|
||||
<div
|
||||
className="mt-0.5 h-9 w-16 shrink-0 rounded-md border border-secondary"
|
||||
className="mt-0.5 h-9 w-16 shrink-0 rounded-md border border-tertiary"
|
||||
style={{ background: `var(${role.variable})` }}
|
||||
/>
|
||||
<div className="flex min-w-0 flex-1 flex-col gap-1">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<code className="text-sm font-medium text-primary">{role.token}</code>
|
||||
<span className="text-xs text-tertiary">{role.pointsAt}</span>
|
||||
<code className="text-label text-primary">{role.token}</code>
|
||||
<span className="text-caption text-tertiary">{role.pointsAt}</span>
|
||||
{role.status !== "core" ? (
|
||||
<span className="rounded-full bg-warning-tint px-2 py-0.5 text-xs font-medium text-warning">
|
||||
<span className="rounded-full bg-warning-tint px-2 py-0.5 text-meta text-warning">
|
||||
{role.status}
|
||||
{role.owner ? ` · ${role.owner}` : ""}
|
||||
</span>
|
||||
) : null}
|
||||
</div>
|
||||
<p className="text-xs leading-relaxed text-secondary">{role.use}</p>
|
||||
<p className="text-caption text-secondary">{role.use}</p>
|
||||
{role.exception ? (
|
||||
<p className="text-xs leading-relaxed text-tertiary">
|
||||
<p className="text-caption text-tertiary">
|
||||
Exception: {role.exception}
|
||||
</p>
|
||||
) : null}
|
||||
@@ -52,10 +52,8 @@ export function ColourPage() {
|
||||
{RAMPS.map((ramp) => (
|
||||
<div key={ramp.id} className="flex flex-col gap-3">
|
||||
<div className="flex flex-col gap-1">
|
||||
<h3 className="text-sm font-semibold text-primary">
|
||||
{ramp.name}
|
||||
</h3>
|
||||
<p className="max-w-2xl text-xs leading-relaxed text-secondary">
|
||||
<h3 className="text-label text-primary">{ramp.name}</h3>
|
||||
<p className="max-w-2xl text-caption text-secondary">
|
||||
{ramp.description}
|
||||
</p>
|
||||
</div>
|
||||
@@ -89,14 +87,12 @@ export function ColourPage() {
|
||||
{ROLE_GROUPS.map((group) => (
|
||||
<div key={group.id} className="flex flex-col gap-2">
|
||||
<div className="flex flex-col gap-1">
|
||||
<h3 className="text-sm font-semibold text-primary">
|
||||
{group.name}
|
||||
</h3>
|
||||
<p className="max-w-2xl text-xs leading-relaxed text-secondary">
|
||||
<h3 className="text-label text-primary">{group.name}</h3>
|
||||
<p className="max-w-2xl text-caption text-secondary">
|
||||
{group.description}
|
||||
</p>
|
||||
</div>
|
||||
<div className="rounded-lg border border-secondary bg-panel px-4">
|
||||
<div className="rounded-xl bg-inset px-5">
|
||||
{group.roles.map((role) => (
|
||||
<RoleRow key={role.token} role={role} />
|
||||
))}
|
||||
@@ -112,14 +108,9 @@ export function ColourPage() {
|
||||
>
|
||||
<div className="flex flex-col gap-3">
|
||||
{EXCEPTIONS.map((exception) => (
|
||||
<div
|
||||
key={exception.name}
|
||||
className="rounded-lg border border-secondary bg-inset px-4 py-3"
|
||||
>
|
||||
<code className="text-xs font-medium text-primary">
|
||||
{exception.name}
|
||||
</code>
|
||||
<p className="mt-1 text-xs leading-relaxed text-secondary">
|
||||
<div key={exception.name} className="rounded-xl bg-inset px-5 py-4">
|
||||
<code className="text-meta text-primary">{exception.name}</code>
|
||||
<p className="mt-1 text-caption text-secondary">
|
||||
{exception.why}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -33,10 +33,10 @@ function NavLink({ to, children }: { to: string; children: ReactNode }) {
|
||||
return (
|
||||
<Link
|
||||
to={to}
|
||||
className="block rounded-md px-3 py-1.5 text-sm text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
className="block rounded-lg px-3 py-2 text-label text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
activeProps={{
|
||||
className:
|
||||
"block rounded-md px-3 py-1.5 text-sm bg-accent-tint text-primary font-medium",
|
||||
"block rounded-lg px-3 py-2 text-label bg-accent-tint text-accent",
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
@@ -48,37 +48,44 @@ export function DesignSystemLayout() {
|
||||
const { scheme, toggle } = useColorScheme();
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen">
|
||||
/* Narrow: the nav stacks above the content as a wrapped list, because a
|
||||
256px column beside a reading column leaves neither enough room. From lg
|
||||
it becomes the sticky side rail. */
|
||||
<div className="flex min-h-screen flex-col bg-panel lg:flex-row">
|
||||
<nav
|
||||
aria-label="Design system"
|
||||
className="sticky top-0 flex h-screen w-60 shrink-0 flex-col gap-6 overflow-y-auto border-r border-secondary bg-panel px-4 py-6"
|
||||
className="flex shrink-0 flex-col gap-8 px-4 py-8 lg:sticky lg:top-0 lg:h-screen lg:w-64 lg:overflow-y-auto"
|
||||
>
|
||||
<div className="px-3">
|
||||
<Link to="/design" className="text-sm font-semibold text-primary">
|
||||
<Link to="/design" className="text-label text-primary">
|
||||
Buzz Design System
|
||||
</Link>
|
||||
<p className="mt-1 text-xs text-tertiary">
|
||||
<p className="mt-1 text-caption text-tertiary">
|
||||
Rendered from the tokens themselves
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-1 flex-col gap-5">
|
||||
<div className="flex flex-1 flex-col gap-6 lg:gap-7">
|
||||
{SECTIONS.map((section) => (
|
||||
<div key={section.heading} className="flex flex-col gap-0.5">
|
||||
<h2 className="px-3 pb-1 text-xs font-semibold uppercase tracking-wide text-tertiary">
|
||||
<div key={section.heading} className="flex flex-col gap-1">
|
||||
<h2 className="px-3 pb-1.5 text-meta text-tertiary">
|
||||
{section.heading}
|
||||
</h2>
|
||||
{section.items.length === 0 ? (
|
||||
<p className="px-3 py-1 text-xs text-tertiary">
|
||||
<p className="max-w-prose px-3 py-1 text-caption text-tertiary">
|
||||
None yet — the primitive layer gets built one component at a
|
||||
time, as the product repeats something.
|
||||
</p>
|
||||
) : (
|
||||
section.items.map(([label, to]) => (
|
||||
<NavLink key={to} to={to}>
|
||||
{label}
|
||||
</NavLink>
|
||||
))
|
||||
/* Narrow: links wrap as a row so the nav costs a few lines
|
||||
instead of a screen. From lg they return to a column. */
|
||||
<div className="flex flex-wrap gap-1 lg:flex-col">
|
||||
{section.items.map(([label, to]) => (
|
||||
<NavLink key={to} to={to}>
|
||||
{label}
|
||||
</NavLink>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
))}
|
||||
@@ -88,14 +95,14 @@ export function DesignSystemLayout() {
|
||||
type="button"
|
||||
onClick={toggle}
|
||||
aria-label={`Switch to ${scheme === "light" ? "dark" : "light"} mode`}
|
||||
className="mx-3 rounded-md border border-primary bg-panel px-3 py-1.5 text-xs text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
className="mx-3 self-start rounded-lg bg-inset px-3 py-2 text-label text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
>
|
||||
{scheme === "light" ? "Dark mode" : "Light mode"}
|
||||
</button>
|
||||
</nav>
|
||||
|
||||
<main className="min-w-0 flex-1 px-10 py-10">
|
||||
<div className="mx-auto max-w-4xl">
|
||||
<main className="min-w-0 flex-1 px-6 py-10 sm:px-10 lg:px-16">
|
||||
<div className="mx-auto max-w-3xl">
|
||||
<Outlet />
|
||||
</div>
|
||||
</main>
|
||||
|
||||
@@ -18,11 +18,9 @@ export function ElevationPage() {
|
||||
className="flex h-24 w-44 items-center justify-center rounded-xl bg-panel"
|
||||
style={{ boxShadow: `var(${level.variable})` }}
|
||||
>
|
||||
<code className="text-xs font-medium text-primary">
|
||||
{level.token}
|
||||
</code>
|
||||
<code className="text-meta text-primary">{level.token}</code>
|
||||
</div>
|
||||
<span className="max-w-44 text-xs leading-snug text-secondary">
|
||||
<span className="max-w-44 text-caption text-secondary">
|
||||
{level.use}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -18,8 +18,8 @@ function ChromePill() {
|
||||
type="button"
|
||||
className={
|
||||
selected
|
||||
? "elevate-xs rounded-full bg-chrome-selected px-5 py-2 text-sm font-medium text-primary"
|
||||
: "rounded-full px-5 py-2 text-sm text-secondary transition-colors hover:bg-chrome-glass-hover hover:text-primary"
|
||||
? "elevate-xs rounded-full bg-chrome-selected px-5 py-2 text-label text-primary"
|
||||
: "rounded-full px-5 py-2 text-body text-secondary transition-colors hover:bg-chrome-glass-hover hover:text-primary"
|
||||
}
|
||||
>
|
||||
{label}
|
||||
@@ -44,7 +44,7 @@ export function GlassPage() {
|
||||
<div className="texture-dots flex items-center justify-center rounded-xl bg-app px-8 py-12">
|
||||
<ChromePill />
|
||||
</div>
|
||||
<div className="flex flex-col gap-1 text-xs text-secondary">
|
||||
<div className="flex flex-col gap-1 text-caption text-secondary">
|
||||
<span>
|
||||
container <code className="text-primary">bg-chrome-glass</code> +{" "}
|
||||
<code className="text-primary">rim-glass</code> +{" "}
|
||||
@@ -84,10 +84,8 @@ export function GlassPage() {
|
||||
className="flex flex-col items-center gap-2 rounded-lg bg-chrome-glass px-6 py-5"
|
||||
style={{ backdropFilter: `blur(${blur.value})` }}
|
||||
>
|
||||
<code className="text-xs font-medium text-primary">
|
||||
{blur.token}
|
||||
</code>
|
||||
<span className="text-xs text-tertiary">{blur.value}</span>
|
||||
<code className="text-meta text-primary">{blur.token}</code>
|
||||
<span className="text-caption text-tertiary">{blur.value}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
@@ -98,7 +96,7 @@ export function GlassPage() {
|
||||
description="A deliberate exception: two literal values, not a ramp step and not one of the numbered gradients. Those are background treatments; this is a material detail. Real glass catches light along one edge and falls away on the opposite one, so the rim is a directional pair from one fixed light direction that every glass surface shares."
|
||||
>
|
||||
<div className="rounded-lg bg-inverse px-5 py-4">
|
||||
<code className="whitespace-pre text-xs leading-relaxed text-on-inverse">
|
||||
<code className="whitespace-pre text-caption text-on-inverse">
|
||||
{`box-shadow:\n inset 0 1px 0 var(--rim-lit),\n inset 0 -1px 0 var(--rim-shade);`}
|
||||
</code>
|
||||
</div>
|
||||
|
||||
@@ -48,15 +48,13 @@ export function GrowthPage() {
|
||||
title="The procedure"
|
||||
description="Runs per change, by whoever needs the value. Nothing here needs permission, and every addition arrives in the same change that needed it, carrying its values, its description, and its owner."
|
||||
>
|
||||
<ol className="flex flex-col gap-2 rounded-lg border border-secondary bg-panel px-5 py-4">
|
||||
<ol className="flex flex-col gap-2 rounded-xl bg-inset px-5 py-4">
|
||||
{GROWTH_PROCEDURE.map((step, index) => (
|
||||
<li key={step} className="flex gap-3">
|
||||
<span className="w-4 shrink-0 text-sm font-semibold text-accent">
|
||||
<span className="w-4 shrink-0 text-label text-accent">
|
||||
{index + 1}
|
||||
</span>
|
||||
<span className="text-sm leading-relaxed text-secondary">
|
||||
{step}
|
||||
</span>
|
||||
<span className="text-body text-secondary">{step}</span>
|
||||
</li>
|
||||
))}
|
||||
</ol>
|
||||
@@ -66,14 +64,16 @@ export function GrowthPage() {
|
||||
title="The audit"
|
||||
description="Runs on a schedule rather than per change. It reports rather than silently rewrites, except where the fix is unambiguous. Growth without pruning is how a system accumulates thirteen transparencies of one colour."
|
||||
>
|
||||
<div className="rounded-lg border border-secondary bg-panel px-5">
|
||||
<div className="rounded-xl bg-inset px-5">
|
||||
{AUDIT.map(([check, action]) => (
|
||||
<div
|
||||
key={check}
|
||||
className="flex flex-col gap-1 border-b border-tertiary py-3 last:border-b-0 sm:flex-row sm:gap-4"
|
||||
>
|
||||
<span className="flex-1 text-xs text-primary">{check}</span>
|
||||
<span className="flex-1 text-xs text-secondary">{action}</span>
|
||||
<span className="flex-1 text-caption text-primary">{check}</span>
|
||||
<span className="flex-1 text-caption text-secondary">
|
||||
{action}
|
||||
</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
|
||||
@@ -30,7 +30,7 @@ export function MotionPage() {
|
||||
"Never animate blur. Re-blurring a large surface every frame is expensive enough to feel. Animate opacity instead.",
|
||||
"Motion explains a change; it does not decorate one. If removing an animation loses no information, remove it.",
|
||||
].map((rule) => (
|
||||
<li key={rule} className="text-sm leading-relaxed text-secondary">
|
||||
<li key={rule} className="text-body text-secondary">
|
||||
{rule}
|
||||
</li>
|
||||
))}
|
||||
|
||||
@@ -23,16 +23,16 @@ export function OverviewPage() {
|
||||
title="The layers"
|
||||
description="Only the role layer is ever used when building a screen. That separation is what lets the entire look change without editing a component."
|
||||
>
|
||||
<div className="flex flex-col gap-2 rounded-lg border border-secondary bg-inset px-5 py-4">
|
||||
<div className="flex flex-col gap-2 rounded-xl bg-inset px-6 py-5">
|
||||
{LAYERS.map(([layer, what, why]) => (
|
||||
<div key={layer} className="flex flex-wrap items-baseline gap-x-4">
|
||||
<span className="w-16 shrink-0 text-xs font-semibold text-tertiary">
|
||||
<span className="w-16 shrink-0 text-label text-tertiary">
|
||||
{layer}
|
||||
</span>
|
||||
<code className="min-w-0 flex-1 text-xs text-primary">
|
||||
<code className="min-w-0 flex-1 text-caption text-primary">
|
||||
{what}
|
||||
</code>
|
||||
<span className="text-xs text-secondary">{why}</span>
|
||||
<span className="text-caption text-secondary">{why}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
@@ -40,9 +40,9 @@ export function OverviewPage() {
|
||||
|
||||
<Section title="The grammar">
|
||||
<div className="rounded-lg bg-inverse px-5 py-4">
|
||||
<code className="text-sm font-medium text-on-inverse">{GRAMMAR}</code>
|
||||
<code className="text-label text-on-inverse">{GRAMMAR}</code>
|
||||
</div>
|
||||
<p className="text-xs text-secondary">
|
||||
<p className="text-caption text-secondary">
|
||||
The order is fixed, so there is one correct spelling. See{" "}
|
||||
<Link to="/design/vocabulary" className="text-accent underline">
|
||||
the vocabulary
|
||||
@@ -53,24 +53,30 @@ export function OverviewPage() {
|
||||
|
||||
<Section
|
||||
title="Where this stands"
|
||||
description="Colour is complete and ready to build against. Typography, spacing, radius, and motion are not started — their pages say what is still to decide rather than pretending to a system that does not exist yet. Components come one at a time, as the product repeats something."
|
||||
description="Colour and typography are complete and ready to build against. Spacing, radius, and motion are not started — their pages say what is still to decide rather than pretending to a system that does not exist yet. Components come one at a time, as the product repeats something."
|
||||
>
|
||||
<div className="flex flex-wrap gap-2">
|
||||
<Link
|
||||
to="/design/colour"
|
||||
className="rounded-lg bg-accent px-4 py-2 text-sm font-medium text-on-accent transition-opacity hover:opacity-90"
|
||||
className="rounded-lg bg-accent px-4 py-2 text-label text-on-accent transition-opacity hover:opacity-90"
|
||||
>
|
||||
Colour
|
||||
</Link>
|
||||
<Link
|
||||
to="/design/typography"
|
||||
className="rounded-lg bg-inset px-4 py-2 text-body text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
>
|
||||
Typography
|
||||
</Link>
|
||||
<Link
|
||||
to="/design/glass"
|
||||
className="rounded-lg border border-primary px-4 py-2 text-sm text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
className="rounded-lg bg-inset px-4 py-2 text-body text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
>
|
||||
Glass
|
||||
</Link>
|
||||
<Link
|
||||
to="/design/growth"
|
||||
className="rounded-lg border border-primary px-4 py-2 text-sm text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
className="rounded-lg bg-inset px-4 py-2 text-body text-secondary transition-colors hover:bg-hover hover:text-primary"
|
||||
>
|
||||
Growing the system
|
||||
</Link>
|
||||
|
||||
@@ -1,40 +1,141 @@
|
||||
import { PageHeader, Section, Stub } from "./primitives";
|
||||
import {
|
||||
TYPE_FAMILIES,
|
||||
TYPE_RAMPS,
|
||||
TYPE_ROLES,
|
||||
type TypeRole,
|
||||
} from "@/shared/tokens/registry";
|
||||
|
||||
import { Note, PageHeader, Row, Rows, Section } from "./primitives";
|
||||
|
||||
/**
|
||||
* Every specimen below is set in the role it documents, so the page is the
|
||||
* system rather than a description of it. A role that reads badly here reads
|
||||
* badly in the product.
|
||||
*/
|
||||
function RoleSpecimen({ role }: { role: TypeRole }) {
|
||||
return (
|
||||
<Row>
|
||||
<div className="flex flex-col gap-2">
|
||||
<p
|
||||
className={`${role.token} ${role.mono ? "font-mono" : ""} text-primary`}
|
||||
>
|
||||
{role.mono ? "createChannel(name, members)" : "Bring your agents in"}
|
||||
</p>
|
||||
<div className="flex flex-wrap items-baseline gap-x-3 gap-y-1">
|
||||
<code className="text-code text-accent">{role.token}</code>
|
||||
<span className="text-meta text-tertiary">{role.pointsAt}</span>
|
||||
<span className="text-meta text-tertiary">
|
||||
{role.size} / {role.lineHeight} / {role.tracking} / {role.weight}
|
||||
</span>
|
||||
</div>
|
||||
<p className="max-w-xl text-caption text-secondary">{role.use}</p>
|
||||
</div>
|
||||
</Row>
|
||||
);
|
||||
}
|
||||
|
||||
export function TypographyPage() {
|
||||
return (
|
||||
<>
|
||||
<PageHeader
|
||||
title="Typography"
|
||||
status="not started"
|
||||
intro="The next system to define. The starting point is the type stack every current Buzz client already shares — Inter for interface text, a monospace for code — and the decision to make is whether the redesign keeps it."
|
||||
intro="Nine sizes, ten roles, two faces. A role carries its whole setting — size, line height, letter spacing, weight — because those four are one decision rather than four, so text-body alone produces correctly set text and there is nothing left to get wrong."
|
||||
/>
|
||||
|
||||
<Section title="What this page will hold">
|
||||
<Stub
|
||||
what="A named size ramp where each step says what it is for, plus weight, line height, letter spacing, and the semantic text roles that sit on top of them."
|
||||
decide={[
|
||||
"Whether Inter stays, or the redesign wants its own face",
|
||||
"The size ramp: how many steps, and what each one is for",
|
||||
"Which sizes are named roles (conversation text, metadata) rather than raw steps",
|
||||
"Weight and line-height pairings per step",
|
||||
"How the relative-unit contract is enforced, so text follows the person's font-size preference and keyboard zoom",
|
||||
]}
|
||||
/>
|
||||
<Section
|
||||
title="The faces"
|
||||
description="Both already ship in every current Buzz client, so this is a decision to keep rather than to make. Inter is drawn for interface text at small sizes, which is most of this product."
|
||||
>
|
||||
<Rows>
|
||||
{TYPE_FAMILIES.map((family) => (
|
||||
<Row key={family.token}>
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<p
|
||||
className={`text-subheading text-primary ${
|
||||
family.token === "font-mono" ? "font-mono" : "font-sans"
|
||||
}`}
|
||||
>
|
||||
{family.name}
|
||||
</p>
|
||||
<code className="text-code text-accent">{family.token}</code>
|
||||
<p className="max-w-xl text-caption text-secondary">
|
||||
{family.use}
|
||||
</p>
|
||||
</div>
|
||||
</Row>
|
||||
))}
|
||||
</Rows>
|
||||
</Section>
|
||||
|
||||
<Section
|
||||
title="The one rule that already exists"
|
||||
description="Anything readable uses relative units. The current client learned this the hard way: hardcoded pixel sizes freeze against zoom, and a CI guard now rejects them. Whatever ramp this becomes, it inherits that contract."
|
||||
title="The roles"
|
||||
description="Named for the job the text does, never for its size. text-title, not text-28 — a size name is a value in disguise and goes stale the moment the ramp moves. Each specimen is set in the role it documents."
|
||||
>
|
||||
<div className="rounded-lg border border-secondary bg-inset px-4 py-3">
|
||||
<p className="text-xs leading-relaxed text-secondary">
|
||||
The Cash Sans and BlockUI type variables that appear in the design
|
||||
exploration are contamination from another Figma library linked into
|
||||
that file. They exist nowhere in any Buzz codebase and need no
|
||||
cleanup — only a decision not to inherit them.
|
||||
</p>
|
||||
</div>
|
||||
<Rows>
|
||||
{TYPE_ROLES.map((role) => (
|
||||
<RoleSpecimen key={role.token} role={role} />
|
||||
))}
|
||||
</Rows>
|
||||
</Section>
|
||||
|
||||
{TYPE_RAMPS.map((ramp) => (
|
||||
<Section key={ramp.id} title={ramp.name} description={ramp.description}>
|
||||
<Rows>
|
||||
{ramp.steps.map((step) => (
|
||||
<Row key={`${ramp.id}-${step.step}`}>
|
||||
<div className="flex flex-wrap items-baseline gap-x-4">
|
||||
<code className="w-28 shrink-0 text-code text-primary">
|
||||
{ramp.id} {step.step}
|
||||
</code>
|
||||
<span className="w-20 shrink-0 text-caption text-secondary">
|
||||
{step.value}
|
||||
</span>
|
||||
<span className="text-caption text-tertiary">{step.job}</span>
|
||||
</div>
|
||||
</Row>
|
||||
))}
|
||||
</Rows>
|
||||
</Section>
|
||||
))}
|
||||
|
||||
<Section
|
||||
title="Two rules"
|
||||
description="Both are inherited rather than invented — the existing client learned each of them the expensive way."
|
||||
>
|
||||
<Rows>
|
||||
<Row>
|
||||
<p className="text-label text-primary">
|
||||
Every size is relative. Never px.
|
||||
</p>
|
||||
<p className="mt-1.5 max-w-xl text-caption text-secondary">
|
||||
Fixed pixel text freezes against keyboard zoom and ignores the
|
||||
person's font-size preference. The current client shipped a
|
||||
message-timeline regression from exactly this and now has a CI
|
||||
guard rejecting arbitrary size literals. This ramp derives
|
||||
entirely from one virtual rem, so both dials work by construction.
|
||||
</p>
|
||||
</Row>
|
||||
<Row>
|
||||
<p className="text-label text-primary">
|
||||
No all-caps, and no tracked-out labels.
|
||||
</p>
|
||||
<p className="mt-1.5 max-w-xl text-caption text-secondary">
|
||||
A capitalised label is harder to read than the sentence-case
|
||||
version and reads as enterprise chrome. Section labels earn their
|
||||
quietness from size and colour — text-meta on text-tertiary —
|
||||
rather than from being shouted. There is no uppercase utility in
|
||||
this system.
|
||||
</p>
|
||||
</Row>
|
||||
</Rows>
|
||||
</Section>
|
||||
|
||||
<Note>
|
||||
The Cash Sans and BlockUI type variables that appear in the design
|
||||
exploration are contamination from another Figma library linked into
|
||||
that file. They exist nowhere in any Buzz codebase and need no cleanup —
|
||||
only a decision not to inherit them.
|
||||
</Note>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -15,20 +15,20 @@ export function VocabularyPage() {
|
||||
/>
|
||||
|
||||
<Section title="The words">
|
||||
<div className="flex flex-col gap-0 rounded-lg border border-secondary bg-panel px-5 py-2">
|
||||
<div className="flex flex-col gap-0 rounded-xl bg-inset px-5 py-2">
|
||||
{VOCABULARY.map((group) => (
|
||||
<div
|
||||
key={group.group}
|
||||
className="flex flex-wrap items-baseline gap-x-4 gap-y-1 border-b border-tertiary py-3 last:border-b-0"
|
||||
>
|
||||
<span className="w-24 shrink-0 text-xs font-semibold text-tertiary">
|
||||
<span className="w-24 shrink-0 text-label text-tertiary">
|
||||
{group.group}
|
||||
</span>
|
||||
<div className="flex min-w-0 flex-1 flex-wrap gap-x-2 gap-y-1">
|
||||
{group.words.map((word) => (
|
||||
<code
|
||||
key={word}
|
||||
className="rounded bg-inset px-1.5 py-0.5 text-xs text-primary"
|
||||
className="rounded bg-inset px-1.5 py-0.5 text-caption text-primary"
|
||||
>
|
||||
{word}
|
||||
</code>
|
||||
@@ -44,21 +44,21 @@ export function VocabularyPage() {
|
||||
description="A name reads property, then role, then modifier, then material, then state. The order is fixed, so an agent writing a hover for a glass surface produces the same name every time instead of two equally plausible ones."
|
||||
>
|
||||
<div className="rounded-lg bg-inverse px-5 py-4">
|
||||
<code className="text-sm font-medium text-on-inverse">{GRAMMAR}</code>
|
||||
<code className="text-label text-on-inverse">{GRAMMAR}</code>
|
||||
</div>
|
||||
<div className="flex flex-col gap-3 sm:flex-row">
|
||||
<div className="flex-1 rounded-lg border border-success bg-success-tint px-4 py-3">
|
||||
<p className="mb-1.5 text-xs font-semibold text-success">Legal</p>
|
||||
<div className="flex-1 rounded-xl bg-success-tint px-5 py-4">
|
||||
<p className="mb-1.5 text-label text-success">Legal</p>
|
||||
{GRAMMAR_EXAMPLES.legal.map((example) => (
|
||||
<code key={example} className="block text-xs text-success">
|
||||
<code key={example} className="block text-caption text-success">
|
||||
{example}
|
||||
</code>
|
||||
))}
|
||||
</div>
|
||||
<div className="flex-1 rounded-lg border border-danger bg-danger-tint px-4 py-3">
|
||||
<p className="mb-1.5 text-xs font-semibold text-danger">Illegal</p>
|
||||
<div className="flex-1 rounded-xl bg-danger-tint px-5 py-4">
|
||||
<p className="mb-1.5 text-label text-danger">Illegal</p>
|
||||
{GRAMMAR_EXAMPLES.illegal.map((example) => (
|
||||
<code key={example} className="block text-xs text-danger">
|
||||
<code key={example} className="block text-caption text-danger">
|
||||
{example}
|
||||
</code>
|
||||
))}
|
||||
|
||||
@@ -4,6 +4,11 @@ import type { ReactNode } from "react";
|
||||
* Presentation pieces for the design system pages only. These are documentation
|
||||
* furniture, not product components — the shared primitive layer gets built one
|
||||
* component at a time as the product repeats something.
|
||||
*
|
||||
* Surface convention on these pages: a region is separated by a soft fill, not
|
||||
* by an outline. Reach for `bg-inset` before reaching for a border; use a
|
||||
* hairline only where a genuine boundary is needed, and never above
|
||||
* `border-secondary`. See DESIGN.md § Surface and depth.
|
||||
*/
|
||||
|
||||
export function PageHeader({
|
||||
@@ -16,21 +21,19 @@ export function PageHeader({
|
||||
status?: string;
|
||||
}) {
|
||||
return (
|
||||
<header className="mb-10 flex flex-col gap-3">
|
||||
<header className="mb-14 flex flex-col gap-4">
|
||||
<div className="flex flex-wrap items-center gap-3">
|
||||
<h1 className="text-3xl font-semibold text-primary">{title}</h1>
|
||||
<h1 className="text-title text-primary">{title}</h1>
|
||||
{status ? <StatusPill>{status}</StatusPill> : null}
|
||||
</div>
|
||||
<p className="max-w-2xl text-sm leading-relaxed text-secondary">
|
||||
{intro}
|
||||
</p>
|
||||
<p className="max-w-2xl text-body-lg text-secondary">{intro}</p>
|
||||
</header>
|
||||
);
|
||||
}
|
||||
|
||||
export function StatusPill({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<span className="rounded-full bg-warning-tint px-2.5 py-0.5 text-xs font-medium text-warning">
|
||||
<span className="rounded-full bg-warning-tint px-2.5 py-1 text-meta text-warning">
|
||||
{children}
|
||||
</span>
|
||||
);
|
||||
@@ -46,13 +49,11 @@ export function Section({
|
||||
children: ReactNode;
|
||||
}) {
|
||||
return (
|
||||
<section className="mb-12 flex flex-col gap-4">
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<h2 className="text-lg font-semibold text-primary">{title}</h2>
|
||||
<section className="mb-14 flex flex-col gap-5">
|
||||
<div className="flex flex-col gap-2">
|
||||
<h2 className="text-heading text-primary">{title}</h2>
|
||||
{description ? (
|
||||
<p className="max-w-2xl text-sm leading-relaxed text-secondary">
|
||||
{description}
|
||||
</p>
|
||||
<p className="max-w-2xl text-body text-secondary">{description}</p>
|
||||
) : null}
|
||||
</div>
|
||||
{children}
|
||||
@@ -62,7 +63,7 @@ export function Section({
|
||||
|
||||
export function Note({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<p className="max-w-2xl rounded-lg border border-secondary bg-inset px-4 py-3 text-xs leading-relaxed text-secondary">
|
||||
<p className="max-w-2xl rounded-xl bg-inset px-5 py-4 text-caption text-secondary">
|
||||
{children}
|
||||
</p>
|
||||
);
|
||||
@@ -70,15 +71,13 @@ export function Note({ children }: { children: ReactNode }) {
|
||||
|
||||
export function Stub({ what, decide }: { what: string; decide: string[] }) {
|
||||
return (
|
||||
<div className="flex max-w-2xl flex-col gap-3 rounded-lg border border-primary bg-inset px-5 py-4">
|
||||
<p className="text-sm text-secondary">{what}</p>
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<p className="text-xs font-semibold uppercase tracking-wide text-tertiary">
|
||||
Still to decide
|
||||
</p>
|
||||
<ul className="flex list-disc flex-col gap-1 pl-4">
|
||||
<div className="flex max-w-2xl flex-col gap-4 rounded-xl bg-inset px-6 py-5">
|
||||
<p className="text-body text-secondary">{what}</p>
|
||||
<div className="flex flex-col gap-2">
|
||||
<p className="text-label text-tertiary">Still to decide</p>
|
||||
<ul className="flex list-disc flex-col gap-1.5 pl-4">
|
||||
{decide.map((item) => (
|
||||
<li key={item} className="text-xs text-secondary">
|
||||
<li key={item} className="text-caption text-secondary">
|
||||
{item}
|
||||
</li>
|
||||
))}
|
||||
@@ -88,6 +87,25 @@ export function Stub({ what, decide }: { what: string; decide: string[] }) {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A group of rows that reads as one region.
|
||||
*
|
||||
* The fill does the separating, so the container needs no outline. Rows inside
|
||||
* are divided by the lightest hairline in the system, because dense data wants
|
||||
* an edge-to-edge divider rather than a card each — see DESIGN.md § Density.
|
||||
*/
|
||||
export function Rows({ children }: { children: ReactNode }) {
|
||||
return <div className="rounded-xl bg-inset px-5">{children}</div>;
|
||||
}
|
||||
|
||||
export function Row({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<div className="border-tertiary border-b py-4 last:border-b-0">
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
/** Renders a live swatch of whatever a CSS custom property currently holds. */
|
||||
export function Swatch({
|
||||
variable,
|
||||
@@ -101,16 +119,16 @@ export function Swatch({
|
||||
translucent?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<div className="flex min-w-0 flex-col gap-1.5">
|
||||
<div className="flex min-w-0 flex-col gap-2">
|
||||
<div
|
||||
className={`h-16 rounded-lg border border-secondary ${
|
||||
className={`h-16 rounded-lg border-tertiary border ${
|
||||
translucent ? "blur-chrome" : ""
|
||||
}`}
|
||||
style={{ background: `var(${variable})` }}
|
||||
/>
|
||||
<code className="truncate text-xs font-medium text-primary">{label}</code>
|
||||
<code className="truncate text-code text-primary">{label}</code>
|
||||
{sublabel ? (
|
||||
<span className="text-xs leading-snug text-tertiary">{sublabel}</span>
|
||||
<span className="text-caption text-tertiary">{sublabel}</span>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
@import "tailwindcss";
|
||||
@import "@fontsource-variable/inter";
|
||||
@import "@fontsource/jetbrains-mono";
|
||||
@import "./tokens.css";
|
||||
@import "./typography.css";
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
font-family: "Inter Variable", Inter, system-ui, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg-app);
|
||||
|
||||
@@ -301,6 +301,17 @@
|
||||
--color-tertiary: var(--text-tertiary);
|
||||
--color-disabled: var(--text-disabled);
|
||||
|
||||
/* Borders register in their OWN namespace, not `--color-*`.
|
||||
Text and borders share the emphasis names — primary, secondary, tertiary —
|
||||
but hold different values: text is the dark end of the neutral ramp
|
||||
(12/10/9), borders the light end (7/6/5). `--color-*` is a single namespace,
|
||||
so registering borders there would make `border-primary` resolve to the text
|
||||
colour and draw every hairline at near-black. It did exactly that until
|
||||
these three lines existed. */
|
||||
--border-color-primary: var(--border-primary);
|
||||
--border-color-secondary: var(--border-secondary);
|
||||
--border-color-tertiary: var(--border-tertiary);
|
||||
|
||||
--color-accent: var(--bg-accent);
|
||||
--color-accent-tint: var(--bg-accent-tint);
|
||||
--color-accent-tint-hover: var(--bg-accent-tint-hover);
|
||||
|
||||
231
desktop-next/src/shared/styles/typography.css
Normal file
231
desktop-next/src/shared/styles/typography.css
Normal file
@@ -0,0 +1,231 @@
|
||||
/*
|
||||
* Buzz typography tokens.
|
||||
*
|
||||
* Same three layers as colour, and only the role layer is ever used when
|
||||
* building a screen:
|
||||
*
|
||||
* LAYER 1 private ramps --type-size-*, --type-leading-*, --type-tracking-*
|
||||
* LAYER 2 public roles --text-body, --text-title, ...
|
||||
* LAYER 3 components text-body, text-title (Tailwind utilities)
|
||||
*
|
||||
* Rules, matching the colour system:
|
||||
* - Literal sizes exist only in the ramp. A role points at a step; a component
|
||||
* points at a role. No component holds a size.
|
||||
* - A role carries its whole typographic setting — size, line height, letter
|
||||
* spacing, weight — because those four are one decision, not four. Tailwind
|
||||
* v4 supports this via the `--text-<name>--<property>` convention, so
|
||||
* `text-body` alone produces correctly set text.
|
||||
* - Every size is relative. Nothing here may be expressed in px: fixed pixel
|
||||
* text freezes against zoom and breaks the person's font-size preference.
|
||||
* This is the one rule the existing client already learned the hard way.
|
||||
*
|
||||
* Naming note: colour roles are also spelled `--text-*` (`--text-primary`) but
|
||||
* are registered in Tailwind's `--color-*` namespace, while sizes register in
|
||||
* `--text-*`. So `text-primary` is a colour and `text-body` is a setting — the
|
||||
* same split Tailwind itself makes. Size roles are named for editorial jobs
|
||||
* (body, title, caption) and colour roles for emphasis levels (primary,
|
||||
* secondary), so no one name ever means both.
|
||||
*
|
||||
* See DESIGN.md for the judgement these values cannot express.
|
||||
*/
|
||||
|
||||
/* ============================================================
|
||||
LAYER 1 — PRIVATE RAMPS
|
||||
============================================================ */
|
||||
|
||||
:root {
|
||||
/* --- The zoom and preference dials. -----------------------
|
||||
Two independent controls compose here, as in the existing client:
|
||||
|
||||
- Cmd +/- scales the real root font size, so every rem in the app — text,
|
||||
gaps, radii — grows together. True zoom.
|
||||
- The font-size preference sets --type-scale, nudging only the type ramp
|
||||
below, so text changes size without moving the layout.
|
||||
|
||||
Every size derives from this virtual rem, which is itself rem-relative and
|
||||
therefore rides on top of zoom automatically. At the default preference it
|
||||
equals 1rem, making --type-size-4 read as 14px. */
|
||||
--type-scale: 1;
|
||||
--type-rem: calc(1rem * var(--type-scale));
|
||||
|
||||
/* --- Size. Nine steps, each step an editorial job. --------
|
||||
A modern ramp for a dense product: tight and frequent through the working
|
||||
sizes where real interface text lives, opening up at the display end where
|
||||
a step needs to be a visible jump rather than a near-miss. */
|
||||
--type-size-1: calc(var(--type-rem) * 0.6875); /* 11px meta */
|
||||
--type-size-2: calc(var(--type-rem) * 0.75); /* 12px caption */
|
||||
--type-size-3: calc(var(--type-rem) * 0.8125); /* 13px label */
|
||||
--type-size-4: calc(var(--type-rem) * 0.875); /* 14px body */
|
||||
--type-size-5: calc(var(--type-rem) * 1); /* 16px body large */
|
||||
--type-size-6: calc(var(--type-rem) * 1.125); /* 18px subheading */
|
||||
--type-size-7: calc(var(--type-rem) * 1.375); /* 22px heading */
|
||||
--type-size-8: calc(var(--type-rem) * 1.75); /* 28px title */
|
||||
--type-size-9: calc(var(--type-rem) * 2.25); /* 36px display */
|
||||
|
||||
/* --- Line height. Unitless, so it scales with its own size.
|
||||
Tight for display text, generous for anything read in quantity, and exactly
|
||||
1 for single-line meta so a timestamp cannot enlarge its own row. */
|
||||
--type-leading-flat: 1;
|
||||
--type-leading-tight: 1.2;
|
||||
--type-leading-snug: 1.35;
|
||||
--type-leading-normal: 1.5;
|
||||
--type-leading-relaxed: 1.6;
|
||||
|
||||
/* --- Tracking. An optical correction, not a style. --------
|
||||
Inter is drawn for interface text and needs negative tracking as it grows:
|
||||
spacing that looks correct at 14px looks loose at 36px. The ramp mirrors
|
||||
the size ramp so the correction is applied per step rather than guessed,
|
||||
and turns slightly positive at meta sizes where letters need air to stay
|
||||
legible. */
|
||||
--type-tracking-display: -0.022em;
|
||||
--type-tracking-title: -0.019em;
|
||||
--type-tracking-heading: -0.017em;
|
||||
--type-tracking-subheading: -0.014em;
|
||||
--type-tracking-large: -0.011em;
|
||||
--type-tracking-body: -0.006em;
|
||||
--type-tracking-label: -0.003em;
|
||||
--type-tracking-caption: 0em;
|
||||
--type-tracking-meta: 0.005em;
|
||||
|
||||
/* --- Weight. Four, and the gaps are deliberate. -----------
|
||||
Inter Variable can render any weight, which is exactly why the system names
|
||||
only these: 500 and 600 sit far enough apart to read as intent rather than
|
||||
as a rendering artefact. */
|
||||
--type-weight-normal: 400;
|
||||
--type-weight-medium: 500;
|
||||
--type-weight-semibold: 600;
|
||||
--type-weight-bold: 700;
|
||||
}
|
||||
|
||||
/* Conversation type contract, carried over from the existing client:
|
||||
13 / 14 / 15px before keyboard zoom. */
|
||||
:root[data-font-size="smaller"] {
|
||||
--type-scale: calc(13 / 14);
|
||||
}
|
||||
|
||||
:root[data-font-size="larger"] {
|
||||
--type-scale: calc(15 / 14);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
LAYER 3 — PUBLIC ROLES, REGISTERED WITH TAILWIND
|
||||
|
||||
Layers 2 and 3 are one block for typography. A colour role can be a bare
|
||||
custom property because a component reads it through `bg-*` or `text-*`; a
|
||||
type role has to be a Tailwind theme key or the paired line height, tracking,
|
||||
and weight cannot travel with the size. So the role IS the registration.
|
||||
|
||||
Named for the job the text does, never for its size — `text-title`, not
|
||||
`text-28`. A size name is a value in disguise and goes stale the moment the
|
||||
ramp moves.
|
||||
============================================================ */
|
||||
|
||||
@theme {
|
||||
--font-sans:
|
||||
"Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
|
||||
--font-mono:
|
||||
"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
||||
|
||||
/* --- Display. One per page at most, and many pages need none.
|
||||
The only step that is allowed to be decorative. */
|
||||
--text-display: var(--type-size-9);
|
||||
--text-display--line-height: var(--type-leading-tight);
|
||||
--text-display--letter-spacing: var(--type-tracking-display);
|
||||
--text-display--font-weight: var(--type-weight-semibold);
|
||||
|
||||
/* --- Title. The name of the thing you are looking at. ----- */
|
||||
--text-title: var(--type-size-8);
|
||||
--text-title--line-height: var(--type-leading-tight);
|
||||
--text-title--letter-spacing: var(--type-tracking-title);
|
||||
--text-title--font-weight: var(--type-weight-semibold);
|
||||
|
||||
/* --- Heading. A section within a page. ------------------- */
|
||||
--text-heading: var(--type-size-7);
|
||||
--text-heading--line-height: var(--type-leading-snug);
|
||||
--text-heading--letter-spacing: var(--type-tracking-heading);
|
||||
--text-heading--font-weight: var(--type-weight-semibold);
|
||||
|
||||
/* --- Subheading. A group within a section. --------------- */
|
||||
--text-subheading: var(--type-size-6);
|
||||
--text-subheading--line-height: var(--type-leading-snug);
|
||||
--text-subheading--letter-spacing: var(--type-tracking-subheading);
|
||||
--text-subheading--font-weight: var(--type-weight-semibold);
|
||||
|
||||
/* --- Body large. Introductions and reading columns, where a
|
||||
paragraph is the point rather than a description of something else. */
|
||||
--text-body-lg: var(--type-size-5);
|
||||
--text-body-lg--line-height: var(--type-leading-relaxed);
|
||||
--text-body-lg--letter-spacing: var(--type-tracking-large);
|
||||
--text-body-lg--font-weight: var(--type-weight-normal);
|
||||
|
||||
/* --- Body. The default. If you are unsure, this is it. --- */
|
||||
--text-body: var(--type-size-4);
|
||||
--text-body--line-height: var(--type-leading-normal);
|
||||
--text-body--letter-spacing: var(--type-tracking-body);
|
||||
--text-body--font-weight: var(--type-weight-normal);
|
||||
|
||||
/* --- Label. Interface text that is acted on rather than
|
||||
read: buttons, tabs, menu items, form labels, table headers. Medium weight
|
||||
because a label competes with content around it and needs to hold its edge
|
||||
without going up a size. */
|
||||
--text-label: var(--type-size-3);
|
||||
--text-label--line-height: var(--type-leading-snug);
|
||||
--text-label--letter-spacing: var(--type-tracking-label);
|
||||
--text-label--font-weight: var(--type-weight-medium);
|
||||
|
||||
/* --- Caption. A sentence about something else: help text,
|
||||
descriptions, empty-state detail. */
|
||||
--text-caption: var(--type-size-2);
|
||||
--text-caption--line-height: var(--type-leading-normal);
|
||||
--text-caption--letter-spacing: var(--type-tracking-caption);
|
||||
--text-caption--font-weight: var(--type-weight-normal);
|
||||
|
||||
/* --- Meta. Timestamps, counts, tracking numbers. Flat line
|
||||
height so a single-line value cannot grow its own row. */
|
||||
--text-meta: var(--type-size-1);
|
||||
--text-meta--line-height: var(--type-leading-flat);
|
||||
--text-meta--letter-spacing: var(--type-tracking-meta);
|
||||
--text-meta--font-weight: var(--type-weight-medium);
|
||||
|
||||
/* --- Code. Mono, one step down: at equal size a monospace
|
||||
face reads larger than Inter and pulls the eye off the sentence. */
|
||||
--text-code: var(--type-size-3);
|
||||
--text-code--line-height: var(--type-leading-normal);
|
||||
--text-code--letter-spacing: var(--type-tracking-caption);
|
||||
--text-code--font-weight: var(--type-weight-normal);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
BASE
|
||||
============================================================ */
|
||||
|
||||
@layer base {
|
||||
html {
|
||||
font-family: var(--font-sans);
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
body {
|
||||
/* Every readable surface starts from the body role and steps away from it
|
||||
deliberately. */
|
||||
font-size: var(--text-body);
|
||||
line-height: var(--text-body--line-height);
|
||||
letter-spacing: var(--text-body--letter-spacing);
|
||||
|
||||
/* Never synthesise a weight Inter Variable can render properly, and never
|
||||
let a font fall back mid-string. */
|
||||
font-synthesis-weight: none;
|
||||
text-rendering: optimizeLegibility;
|
||||
}
|
||||
|
||||
code,
|
||||
kbd,
|
||||
pre,
|
||||
samp {
|
||||
font-family: var(--font-mono);
|
||||
/* Mono digits and letters share one advance width, so a changing value does
|
||||
not shift the text around it. */
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
}
|
||||
@@ -467,6 +467,187 @@ export const GROWTH_PROCEDURE = [
|
||||
"Never write a raw value. If nothing above applies, say so rather than reaching for a literal.",
|
||||
];
|
||||
|
||||
/* ============================================================
|
||||
TYPOGRAPHY
|
||||
============================================================ */
|
||||
|
||||
/** A public type role. Carries its whole setting, because size, line height,
|
||||
* tracking, and weight are one decision rather than four. */
|
||||
export interface TypeRole {
|
||||
/** The Tailwind class, e.g. `text-body`. */
|
||||
token: string;
|
||||
/** Step on the size ramp this points at, for display. */
|
||||
pointsAt: string;
|
||||
/** Rendered size at the default preference and zoom, for display only —
|
||||
* never a value a component may use. */
|
||||
size: string;
|
||||
lineHeight: string;
|
||||
tracking: string;
|
||||
weight: string;
|
||||
/** One sentence: when to use this. */
|
||||
use: string;
|
||||
status: TokenStatus;
|
||||
/** Set when the role renders in the mono face. */
|
||||
mono?: boolean;
|
||||
}
|
||||
|
||||
/** Ordered loudest to quietest, which is also the order they are chosen in. */
|
||||
export const TYPE_ROLES: TypeRole[] = [
|
||||
{
|
||||
token: "text-display",
|
||||
pointsAt: "size 9",
|
||||
size: "36px",
|
||||
lineHeight: "1.2",
|
||||
tracking: "-0.022em",
|
||||
weight: "600",
|
||||
use: "One per page at most, and many pages need none. The only step allowed to be decorative.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-title",
|
||||
pointsAt: "size 8",
|
||||
size: "28px",
|
||||
lineHeight: "1.2",
|
||||
tracking: "-0.019em",
|
||||
weight: "600",
|
||||
use: "The name of the thing you are looking at.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-heading",
|
||||
pointsAt: "size 7",
|
||||
size: "22px",
|
||||
lineHeight: "1.35",
|
||||
tracking: "-0.017em",
|
||||
weight: "600",
|
||||
use: "A section within a page.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-subheading",
|
||||
pointsAt: "size 6",
|
||||
size: "18px",
|
||||
lineHeight: "1.35",
|
||||
tracking: "-0.014em",
|
||||
weight: "600",
|
||||
use: "A group within a section.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-body-lg",
|
||||
pointsAt: "size 5",
|
||||
size: "16px",
|
||||
lineHeight: "1.6",
|
||||
tracking: "-0.011em",
|
||||
weight: "400",
|
||||
use: "Introductions and reading columns, where a paragraph is the point rather than a description of something else.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-body",
|
||||
pointsAt: "size 4",
|
||||
size: "14px",
|
||||
lineHeight: "1.5",
|
||||
tracking: "-0.006em",
|
||||
weight: "400",
|
||||
use: "The default. If you are unsure, this is it.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-label",
|
||||
pointsAt: "size 3",
|
||||
size: "13px",
|
||||
lineHeight: "1.35",
|
||||
tracking: "-0.003em",
|
||||
weight: "500",
|
||||
use: "Interface text that is acted on rather than read: buttons, tabs, menu items, form labels, table headers.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-caption",
|
||||
pointsAt: "size 2",
|
||||
size: "12px",
|
||||
lineHeight: "1.5",
|
||||
tracking: "0em",
|
||||
weight: "400",
|
||||
use: "A sentence about something else: help text, descriptions, empty-state detail.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-meta",
|
||||
pointsAt: "size 1",
|
||||
size: "11px",
|
||||
lineHeight: "1",
|
||||
tracking: "0.005em",
|
||||
weight: "500",
|
||||
use: "Timestamps, counts, tracking labels. Flat line height so a single-line value cannot grow its own row.",
|
||||
status: "core",
|
||||
},
|
||||
{
|
||||
token: "text-code",
|
||||
pointsAt: "size 3",
|
||||
size: "13px",
|
||||
lineHeight: "1.5",
|
||||
tracking: "0em",
|
||||
weight: "400",
|
||||
use: "Inline code and code blocks. One step below body, because at equal size a monospace face reads larger than Inter and pulls the eye off the sentence.",
|
||||
status: "core",
|
||||
mono: true,
|
||||
},
|
||||
];
|
||||
|
||||
/** The two faces. Both already shipped in every current Buzz client. */
|
||||
export const TYPE_FAMILIES = [
|
||||
{
|
||||
token: "font-sans",
|
||||
name: "Inter Variable",
|
||||
use: "Everything. Drawn for interface text at small sizes, and already the sans in desktop, web, and mobile.",
|
||||
},
|
||||
{
|
||||
token: "font-mono",
|
||||
name: "JetBrains Mono",
|
||||
use: "Code, keys, and identifiers. Already the mono in the existing client's terminal.",
|
||||
},
|
||||
];
|
||||
|
||||
/** The private ramps a type role points at. Components never reference these. */
|
||||
export const TYPE_RAMPS = [
|
||||
{
|
||||
id: "size",
|
||||
name: "Size",
|
||||
description:
|
||||
"Nine steps, each step an editorial job. Tight and frequent through the working sizes where real interface text lives, opening up at the display end where a step needs to be a visible jump rather than a near-miss. Every value derives from a virtual rem, so the whole ramp follows the person's font-size preference and keyboard zoom.",
|
||||
steps: [
|
||||
{ step: 1, job: "meta", value: "11px" },
|
||||
{ step: 2, job: "caption", value: "12px" },
|
||||
{ step: 3, job: "label, code", value: "13px" },
|
||||
{ step: 4, job: "body", value: "14px" },
|
||||
{ step: 5, job: "body large", value: "16px" },
|
||||
{ step: 6, job: "subheading", value: "18px" },
|
||||
{ step: 7, job: "heading", value: "22px" },
|
||||
{ step: 8, job: "title", value: "28px" },
|
||||
{ step: 9, job: "display", value: "36px" },
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "tracking",
|
||||
name: "Tracking",
|
||||
description:
|
||||
"An optical correction, not a style. Inter needs progressively tighter spacing as it grows — tracking that looks correct at 14px looks loose at 36px — so the ramp mirrors the size ramp and the correction is applied per step rather than guessed. It turns slightly positive at meta sizes, where letters need air to stay legible.",
|
||||
steps: [
|
||||
{ step: 9, job: "display", value: "-0.022em" },
|
||||
{ step: 8, job: "title", value: "-0.019em" },
|
||||
{ step: 7, job: "heading", value: "-0.017em" },
|
||||
{ step: 6, job: "subheading", value: "-0.014em" },
|
||||
{ step: 5, job: "body large", value: "-0.011em" },
|
||||
{ step: 4, job: "body", value: "-0.006em" },
|
||||
{ step: 3, job: "label", value: "-0.003em" },
|
||||
{ step: 2, job: "caption", value: "0em" },
|
||||
{ step: 1, job: "meta", value: "0.005em" },
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
export const ELEVATION = [
|
||||
{
|
||||
token: "shadow-xs",
|
||||
|
||||
3
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -310,6 +310,9 @@ importers:
|
||||
'@fontsource-variable/inter':
|
||||
specifier: ^5.2.8
|
||||
version: 5.2.8
|
||||
'@fontsource/jetbrains-mono':
|
||||
specifier: ^5.3.0
|
||||
version: 5.3.0
|
||||
'@tanstack/react-router':
|
||||
specifier: ^1.168.10
|
||||
version: 1.170.7(react-dom@19.2.8(react@19.2.8))(react@19.2.8)
|
||||
|
||||
Reference in New Issue
Block a user