@brignano/design 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +28 -1
- package/README.md +2 -1
- package/controls.css +2251 -0
- package/decisions/0001-cobalt.md +56 -0
- package/decisions/0002-chart-palette.md +48 -0
- package/decisions/0003-one-public-package.md +47 -0
- package/decisions/0004-one-hue-one-meaning.md +50 -0
- package/decisions/0005-diagrams-are-not-charts.md +30 -0
- package/decisions/0006-light-dark.md +55 -0
- package/decisions/0007-neutral-hue-286.md +27 -0
- package/decisions/0008-cobalt-hue-256.md +41 -0
- package/decisions/0009-reader-asked-motion.md +26 -0
- package/decisions/0010-product-pages-show-then-tell.md +39 -0
- package/decisions/0011-product-page-briefs.md +59 -0
- package/decisions/0012-components-in-a-cascade-layer.md +32 -0
- package/decisions/0013-overlay-motion.md +35 -0
- package/decisions/0014-identity.md +41 -0
- package/decisions/0015-white-label-on-cobalt.md +44 -0
- package/decisions/0016-danger-fills.md +31 -0
- package/decisions/0017-product-identity.md +45 -0
- package/decisions/0018-card-stage.md +36 -0
- package/decisions/README.md +28 -0
- package/package.json +6 -3
- package/tokens.css +1 -1
- package/DECISIONS.md +0 -799
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# ADR-0001 — The interactive hue is cobalt
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-08-23
|
|
4
|
+
**Supersedes:** `brignano.io/docs/tsd-site-modernization.md` §10.3
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
`brignano.io` shipped electric indigo/violet (`#6d28d9` / `#a78bfa`). `life`
|
|
9
|
+
shipped a warm functional ramp. Neither was chosen as an interactive colour —
|
|
10
|
+
§10.3 records violet as resolving a *negative* constraint:
|
|
11
|
+
|
|
12
|
+
> **Accent color:** ✅ **Shift the hue** away from emerald. Candidate: an
|
|
13
|
+
> **electric indigo/violet** … **amber as fallback**.
|
|
14
|
+
|
|
15
|
+
That decision answered "not green." A long argument followed about whether amber
|
|
16
|
+
or violet should replace it, which was the wrong argument — see ADR-0004. Once
|
|
17
|
+
identity, affordance and state were separated, the only question left was what
|
|
18
|
+
colour a *control* should be.
|
|
19
|
+
|
|
20
|
+
## Decision
|
|
21
|
+
|
|
22
|
+
Cobalt (`#2563eb` / `#60a5fa`), with a full hover / pressed / focus / disabled ramp.
|
|
23
|
+
|
|
24
|
+
## Rationale
|
|
25
|
+
|
|
26
|
+
Cobalt, indigo and violet were all measured against both grounds. **All three
|
|
27
|
+
cleared every gate**, so contrast did not decide it:
|
|
28
|
+
|
|
29
|
+
| Candidate | Text (light) | Fill (light) | Text (dark) | Pressed (dark) |
|
|
30
|
+
|---|---|---|---|---|
|
|
31
|
+
| cobalt | 6.70 | 5.17 | 7.64 | 10.77 |
|
|
32
|
+
| indigo | 7.90 | 6.29 | 6.51 | 9.74 |
|
|
33
|
+
| violet | 7.10 | 5.70 | 7.13 | 10.52 |
|
|
34
|
+
|
|
35
|
+
It was decided on the two things contrast can't measure:
|
|
36
|
+
|
|
37
|
+
1. **Semantically inert.** Amber means caution, green means success, red means
|
|
38
|
+
error — all of them arrive with meaning already attached. Blue arrives with
|
|
39
|
+
none, which is exactly why product UIs converged on it. That is a functional
|
|
40
|
+
property, not a fashion.
|
|
41
|
+
2. **Complementary to the mark hue.** Cobalt sits opposite larch on the wheel, so
|
|
42
|
+
identity and affordance never compete for the same attention.
|
|
43
|
+
|
|
44
|
+
Cobalt over indigo/violet specifically: it has the most dark-mode headroom of the
|
|
45
|
+
three, and blue is the most conventional link colour in existence — the lowest
|
|
46
|
+
cognitive cost and the highest affordance. **Distinctiveness belongs in the brand
|
|
47
|
+
layer; conventionality belongs in the control layer.** That is how you get both.
|
|
48
|
+
|
|
49
|
+
## Consequences
|
|
50
|
+
|
|
51
|
+
- `brignano.io` migration surface: 4 literal hexes in `app/globals.css` plus ~15
|
|
52
|
+
`violet-*` utilities. Map **by job**, not find-and-replace: `.text-primary-color`
|
|
53
|
+
→ `--i-ink`, filled buttons → `--i`, focus rings → `--i-ink`.
|
|
54
|
+
- The trail's summit zone (`tsd-signature-experience.md` §5.2, "summit
|
|
55
|
+
indigo/violet") is re-inked with `--mark`.
|
|
56
|
+
- `life` is unaffected — it has no interactive colour today.
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# ADR-0002 — Charts keep a full categorical palette, re-derived and validated
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-08-23
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
An earlier draft suggested the `/coding` chart palette was "undercutting the
|
|
8
|
+
identity" and should derive from the brand accent. **That was wrong**, and it is
|
|
9
|
+
worth recording why.
|
|
10
|
+
|
|
11
|
+
Series colour answers *"which of these eight things am I looking at?"*, which needs
|
|
12
|
+
eight hues a human can separate at a glance. Deriving eight series colours from one
|
|
13
|
+
hue produces eight of that hue nobody can tell apart. **Charts genuinely need the
|
|
14
|
+
range.** The constraint is *separability*, not restraint.
|
|
15
|
+
|
|
16
|
+
## The actual problem
|
|
17
|
+
|
|
18
|
+
`components/stats/chart-colors.ts` is not too colourful — it is insufficiently
|
|
19
|
+
separable. Validated (light, 10 slots):
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
[FAIL] Lightness band outside band: #ef9aa3, #34d399
|
|
23
|
+
[WARN] CVD separation worst adjacent #a78bfa <-> #06b6d4 dE 6.6 (deutan)
|
|
24
|
+
[FAIL] Normal-vision floor worst adjacent #ef9aa3 <-> #f97316 dE 13.7
|
|
25
|
+
[WARN] Contrast vs surface 8 of 10 below 3:1
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
ΔE 13.7 means those two are hard to separate **with full colour vision**, before
|
|
29
|
+
colourblindness is considered.
|
|
30
|
+
|
|
31
|
+
## Decision
|
|
32
|
+
|
|
33
|
+
Keep a full 8-hue categorical palette, capped at 8 + "Other". Replace the values
|
|
34
|
+
with a set that passes every hard gate in both modes (adjacent CVD ΔE 9.1 light /
|
|
35
|
+
8.4 dark; normal-vision ΔE 19.6 / 19.3). Values in `tokens.chart.css`.
|
|
36
|
+
|
|
37
|
+
## Consequences
|
|
38
|
+
|
|
39
|
+
- **Slot order is load-bearing** — the gates measure *adjacent* pairs, so
|
|
40
|
+
re-ordering silently breaks colourblind safety. Fixed order, never cycled.
|
|
41
|
+
- Three light-mode slots sit below 3:1; that is legal only with relief (visible
|
|
42
|
+
labels or a table view). The donut's centre readout and legend already satisfy it.
|
|
43
|
+
- `stats-pie.tsx` already takes the top 8 and aggregates the rest — now the
|
|
44
|
+
documented rule rather than an implementation detail.
|
|
45
|
+
- Colour must follow the **entity**, not its rank. The current code indexes by
|
|
46
|
+
sorted position, so a data shift repaints every series. Map name → slot once.
|
|
47
|
+
- `chart-colors.ts` should read the CSS custom properties rather than literal hex,
|
|
48
|
+
or the two will drift the way everything else did.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# ADR-0003 — The system lives in one public repo, consumed as a package
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-08-23
|
|
4
|
+
|
|
5
|
+
## Decision
|
|
6
|
+
|
|
7
|
+
A standalone repo — `brignano/design` — installed as `@brignano/design`.
|
|
8
|
+
|
|
9
|
+
## Rationale
|
|
10
|
+
|
|
11
|
+
**It cannot live in `life`.** `life` is private and holds confirmation codes and
|
|
12
|
+
booking details. `brignano.io` is public. A public site cannot install tokens from
|
|
13
|
+
a private repo without handing out credentials to the repo storing your boarding
|
|
14
|
+
passes. Hard blocker, not preference.
|
|
15
|
+
|
|
16
|
+
**It should not live in `brignano.io`.** That makes the site the owner and every
|
|
17
|
+
tool a downstream guest, pinning tools to the site's release cycle.
|
|
18
|
+
|
|
19
|
+
**Copy-paste is what already failed** — two repos, two stylesheets, two accents,
|
|
20
|
+
two chart palettes, and a documented decision only one of them followed.
|
|
21
|
+
|
|
22
|
+
## Distribution
|
|
23
|
+
|
|
24
|
+
Three channels, because there are three kinds of consumer:
|
|
25
|
+
|
|
26
|
+
| Consumer | Channel |
|
|
27
|
+
|---|---|
|
|
28
|
+
| npm projects with a build (`brignano.io`, `life`) | git dependency pinned to a tag |
|
|
29
|
+
| no-build surfaces (`homelab`, a static page) | jsDelivr against the public repo |
|
|
30
|
+
| **projects that don't exist yet** | a Claude skill generated from this repo |
|
|
31
|
+
|
|
32
|
+
The third is the one that matters for "as I create new things" — a skill follows
|
|
33
|
+
the account, so a new project gets the system without anyone wiring it up.
|
|
34
|
+
|
|
35
|
+
npm publishing is deferred until `brignano.io` actually consumes it, so the first
|
|
36
|
+
published version isn't one that's immediately superseded. The scope `@brignano` is
|
|
37
|
+
already owned (it is the npm username), so no org setup is needed.
|
|
38
|
+
|
|
39
|
+
## Consequences
|
|
40
|
+
|
|
41
|
+
- The repo must be **public**: private npm needs a paid plan, jsDelivr only serves
|
|
42
|
+
public repos, and a public `brignano.io` that can't `npm install` is broken.
|
|
43
|
+
- Nothing here is secret — hex values and spacing rules aren't a moat — and the
|
|
44
|
+
documented reasoning is itself a portfolio asset.
|
|
45
|
+
- Consumers pin the **same tag** and bump together. If one tracks `main` and another
|
|
46
|
+
a tag, the drift this repo exists to prevent comes straight back.
|
|
47
|
+
- A token rename is a breaking change.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# ADR-0004 — One hue, one meaning
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-08-23
|
|
4
|
+
**Supersedes:** the "single accent" model in the first draft of this system
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
The first draft had one accent carrying identity, affordance *and* warning. That is
|
|
9
|
+
what produced a long amber-versus-violet argument, and the argument was unwinnable
|
|
10
|
+
because the question was wrong: no hue can be all three without one meaning bleeding
|
|
11
|
+
into the others.
|
|
12
|
+
|
|
13
|
+
Worse, the founding rule of this system — *colour carries meaning, never
|
|
14
|
+
decoration* — was being violated by the system itself. A hue with two meanings is
|
|
15
|
+
exactly the thing the rule forbids, just relocated.
|
|
16
|
+
|
|
17
|
+
## Decision
|
|
18
|
+
|
|
19
|
+
Every hue answers exactly one question, on every surface, in both tiers. Two
|
|
20
|
+
specific consequences:
|
|
21
|
+
|
|
22
|
+
**1. Attention is one meaning.** A warning toast, the `NEXT UP` strip, and a
|
|
23
|
+
deposit closing in six days are the same message at different volumes, so they are
|
|
24
|
+
the same colour. There is no separate "warning" hue and no separate "now/next" hue.
|
|
25
|
+
This is what lets a marketing site and an operational tool share one palette
|
|
26
|
+
honestly rather than by coincidence.
|
|
27
|
+
|
|
28
|
+
**2. Identity is not a fill.** `--mark` inks a graphic — the trail, the monogram, a
|
|
29
|
+
hero rule — and nothing else.
|
|
30
|
+
|
|
31
|
+
The intermediate proposal was to keep a `--brand-*` family and manage the overlap
|
|
32
|
+
with amber's warning meaning by convention: brand only at large decorative scale,
|
|
33
|
+
warning always with an icon. That works, and warm-brand companies do it. It was
|
|
34
|
+
rejected because it is enforced by remembering, every time, forever — and rules
|
|
35
|
+
enforced by remembering get forgotten by a version of you in a hurry. Naming is
|
|
36
|
+
cheaper and more reliable enforcement: `--brand` invites someone to tint a button
|
|
37
|
+
with it; `--mark` does not.
|
|
38
|
+
|
|
39
|
+
## Consequences
|
|
40
|
+
|
|
41
|
+
- `brignano.io` gives up a brand fill for tinting eyebrows and section rules. Those
|
|
42
|
+
go to ink and neutrals — arguably better, since tinted eyebrow rules are the
|
|
43
|
+
portfolio-template tell the modernization TSD set out to escape.
|
|
44
|
+
- Identity now rests on the trail, the monogram, the type, and restraint. If that
|
|
45
|
+
feels thin in place, the fix is a stronger *mark*, not a tinted interface.
|
|
46
|
+
- Feedback state (success/attention/danger) and domain status (booked/active/
|
|
47
|
+
overdue) share hue families deliberately. Context plus the mandatory icon-and-word
|
|
48
|
+
separates them; a form error is not "rust means overdue", but they are the same
|
|
49
|
+
register of message.
|
|
50
|
+
- Nothing amber is clickable anywhere in the system.
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ADR-0005 — Diagrams are not charts: neutral nodes, colour for state only
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-10-13
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
`driftwood` draws architecture diagrams and was the first consumer to need them.
|
|
8
|
+
Its first pass on these tokens took the chart exception (§8, ADR-0002) and tinted
|
|
9
|
+
each node by family (edge, compute, data, messaging…) with `--chart-1…6`. On a
|
|
10
|
+
real 46-resource platform that put six hues on screen before anything was wrong,
|
|
11
|
+
and the database that was down was one more tinted box among them.
|
|
12
|
+
|
|
13
|
+
## Decision
|
|
14
|
+
|
|
15
|
+
A diagram follows the restraint rule. The chart exception exists because a chart
|
|
16
|
+
has nothing *but* colour to tell series apart; a diagram node has an icon, a name
|
|
17
|
+
and a kind label, so family is already carried three times. Nodes are neutral.
|
|
18
|
+
Colour is reserved for state: health (`--danger`, `--attention`) and what a change
|
|
19
|
+
did, via three new aliases — `--diff-added`, `--diff-changed`, `--diff-removed` —
|
|
20
|
+
over the existing state hues. No new hue enters the system.
|
|
21
|
+
|
|
22
|
+
## Consequences
|
|
23
|
+
|
|
24
|
+
- On a healthy, unchanged system the diagram is grey, and that is correct:
|
|
25
|
+
nothing is asking for you.
|
|
26
|
+
- `--diff-changed` shares cobalt with links. Context separates them (a node edge
|
|
27
|
+
with a `~ changed` tag is not underlined text), the same way feedback and domain
|
|
28
|
+
status share hues in ADR-0004.
|
|
29
|
+
- Standalone exports (SVG files, Mermaid in a pull request) take the light theme's
|
|
30
|
+
values, resolved from `tokens.css` by the consumer at build time.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# ADR-0006 — One declaration per colour, via `light-dark()`
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-10-25
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
Dark mode lived in three lists: a `prefers-color-scheme` block (the OS default),
|
|
8
|
+
a `[data-theme='dark']` block (the toggle, which has to win), and a copy in
|
|
9
|
+
`previews/_preview.css` so a preview could show both themes at once. CSS can't
|
|
10
|
+
share one declaration block between a media query and a selector, so the
|
|
11
|
+
duplication was structural, and the file's own rule — "edit one, edit the other"
|
|
12
|
+
— was enforced by remembering. The preview copy had already fallen behind
|
|
13
|
+
(`--i-selection`, `--scrim` and `--on-dark` were missing).
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
Every colour is declared once, on `:root`, as `light-dark(<light>, <dark>)`. The
|
|
18
|
+
theme is `color-scheme`: `light dark` by default, pinned by `[data-theme]`.
|
|
19
|
+
|
|
20
|
+
Arguments are always concrete colours, never a `var()` to another
|
|
21
|
+
theme-dependent token. Nested `light-dark()` — directly, or inside
|
|
22
|
+
`color-mix()` — is valid CSS, but support across engines couldn't be verified
|
|
23
|
+
when this was written, and getting it wrong would blank colours in one browser.
|
|
24
|
+
Where that forces a repeat (a wash repeats its hue, `--bg` repeats a ramp step),
|
|
25
|
+
`npm run check` holds the copy to its source.
|
|
26
|
+
|
|
27
|
+
Shadows differ in blur as well as colour, and `light-dark()` only switches
|
|
28
|
+
colour, so the two themes' shadows are separate layers, each transparent in the
|
|
29
|
+
other theme.
|
|
30
|
+
|
|
31
|
+
## Rationale
|
|
32
|
+
|
|
33
|
+
- **Drift becomes impossible rather than checked.** There's no second list.
|
|
34
|
+
- **Theming becomes scoped for free.** The value is picked where a colour is
|
|
35
|
+
used, so `data-theme="dark"` on a `<section>` themes that section. The preview's
|
|
36
|
+
forced-dark panel is now `color-scheme: dark` and nothing else.
|
|
37
|
+
- **No change in output.** Verified in Chromium against the previous file: all
|
|
38
|
+
119 tokens are identical in five setups (OS light, OS dark, a toggle forcing
|
|
39
|
+
each way, and both agreeing). The shadows and every preview page are
|
|
40
|
+
identical pixel for pixel.
|
|
41
|
+
|
|
42
|
+
## Consequences
|
|
43
|
+
|
|
44
|
+
- Browser floor: Chrome/Edge 123, Firefox 120, Safari 17.5.
|
|
45
|
+
- `getPropertyValue('--x')` returns the `light-dark(…)` text. JavaScript that
|
|
46
|
+
needs a colour resolves it through `getComputedStyle` on an element
|
|
47
|
+
(DESIGN.md §11). ADR-0002's advice that `chart-colors.ts` read the custom
|
|
48
|
+
properties still stands, but by that route.
|
|
49
|
+
- Consumers shouldn't wrap tokens in `color-mix()`; washes are tokens. The
|
|
50
|
+
first consumer that needed one (`life`'s sticky bars) got `--surface-sticky`
|
|
51
|
+
in 0.3.1 rather than a local mix.
|
|
52
|
+
- A build that lowers `light-dark()` for older browsers (Lightning CSS, inside
|
|
53
|
+
Next.js and Vite) fixes the theme at `:root`, losing scoped theming. Found in
|
|
54
|
+
`brignano.io`; consumers set `browserslist` to the floor (DESIGN.md §11).
|
|
55
|
+
- Not a token rename and not a visual change, so a patch release.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ADR-0007 — The neutral ramp is one temperature: OKLCH hue 286°
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-10-25
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
`tokens.css` called the ramp "cool-leaning", and most of it was: light 300–800
|
|
8
|
+
and dark 0–800 sit at OKLCH hue 286°. But light 50, 100 and 200 — the hairline,
|
|
9
|
+
`--line-soft`, the hover and pressed surfaces — sat at 106°, a faint yellow, and
|
|
10
|
+
dark 900, the primary ink, did too. A border and the label beside it disagreed
|
|
11
|
+
on temperature. It was too slight to notice as a colour, but enough to make a
|
|
12
|
+
surface read slightly dirty next to a cool one.
|
|
13
|
+
|
|
14
|
+
## Decision
|
|
15
|
+
|
|
16
|
+
Every tinted step sits at hue 286°. The off-hue steps (light 25, 50, 100, 200,
|
|
17
|
+
900; dark 800, 900) are regenerated at **their existing OKLCH lightness**, so
|
|
18
|
+
contrast stays within 0.04 of its old value. Their chroma fits the curve
|
|
19
|
+
already set by their neighbours: near zero at the ends, peaking in the
|
|
20
|
+
mid-tones. Steps already at 286° are untouched. Pure white stays pure white.
|
|
21
|
+
`npm run check` fails any step that leaves 286° ±3°.
|
|
22
|
+
|
|
23
|
+
## Consequences
|
|
24
|
+
|
|
25
|
+
- A visible change, if a quiet one, so the release that carries it is a minor.
|
|
26
|
+
- The cool ground does the job the original comment gave it: the warm mark
|
|
27
|
+
and the amber attention state are the only warm things on a page.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# ADR-0008 — Cobalt is our own: OKLCH hue 256°, not Tailwind's blue
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-10-25
|
|
4
|
+
**Amends:** ADR-0001 (the hue stays cobalt; the values change)
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
ADR-0001 chose cobalt for two reasons: it's semantically inert, and it's
|
|
9
|
+
complementary to larch, so identity and affordance don't compete. The values
|
|
10
|
+
it shipped, `#2563eb` / `#1d4ed8` / `#1e40af` / `#1e3a8a` and `#60a5fa` /
|
|
11
|
+
`#93c5fd` / `#bfdbfe`, are exactly Tailwind's `blue-600…900` and `blue-300…400`,
|
|
12
|
+
and the sequential chart ramp was Tailwind's blues too. That undercut both the
|
|
13
|
+
second reason and DESIGN.md §1's "nothing here should read as a template":
|
|
14
|
+
|
|
15
|
+
- Tailwind's blue is at OKLCH 263–266°, leaning violet. Larch is ≈68°, so its
|
|
16
|
+
opposite is ≈248°. The stock values were 15° further from that than they
|
|
17
|
+
needed to be.
|
|
18
|
+
- It isn't even one hue. Across the ramp the stock steps wander from 251.8°
|
|
19
|
+
to 265.6°, so hover and pressed shift colour as well as depth.
|
|
20
|
+
- It is the single most recognisable colour in the Tailwind default theme.
|
|
21
|
+
|
|
22
|
+
## Decision
|
|
23
|
+
|
|
24
|
+
Every cobalt step, interactive and sequential, sits at **OKLCH hue 256°**, and
|
|
25
|
+
`npm run check` holds it there ±3°. 256° is as near to larch's opposite as sRGB
|
|
26
|
+
allows while keeping cobalt's chroma (≈0.18 at the fill). At 248–252° the gamut
|
|
27
|
+
caps chroma near 0.14–0.16, which reads as steel or ocean blue, and links lose
|
|
28
|
+
some of the "you can act on this" that ADR-0001 chose blue for.
|
|
29
|
+
|
|
30
|
+
Each step's lightness was **solved for the contrast its predecessor met**, so
|
|
31
|
+
every ratio is within 0.07 of before: fill 5.18:1 under a white label, link
|
|
32
|
+
6.78:1 on white, dark fill 7.07:1 on card. The sequential ramp keeps each
|
|
33
|
+
step's OKLCH lightness and stays monotonic.
|
|
34
|
+
|
|
35
|
+
## Consequences
|
|
36
|
+
|
|
37
|
+
- The blue is deeper and calmer than Tailwind's electric violet-blue, and it is
|
|
38
|
+
one colour from fill to pressed. It still reads unmistakably as a link.
|
|
39
|
+
- A visible change, so the release that carries it is a minor.
|
|
40
|
+
- `--chart-1` is a separately validated categorical slot (ADR-0002) and is
|
|
41
|
+
unchanged.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ADR-0009 — Motion the reader asks for is allowed in the tool tier
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-10-31
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
The tool tier has no motion (§2). driftwood's request flow view answers the
|
|
8
|
+
first question on an incident call, "where does traffic come in and what does
|
|
9
|
+
it pass through", and its *Trace a request* control walks a request through the
|
|
10
|
+
diagram one hop at a time. Shown all at once, the order is only in the numbers;
|
|
11
|
+
walked, it is obvious.
|
|
12
|
+
|
|
13
|
+
## Decision
|
|
14
|
+
|
|
15
|
+
Motion is allowed in the tool tier when the reader starts it and it shows an
|
|
16
|
+
order: it runs only on a click, can be stopped, every step it shows is also
|
|
17
|
+
listed as text, and `prefers-reduced-motion` gets the final state at once (the
|
|
18
|
+
whole path lit). It uses the selection treatment from §9, so it adds no hue.
|
|
19
|
+
Decorative motion stays out.
|
|
20
|
+
|
|
21
|
+
## Consequences
|
|
22
|
+
|
|
23
|
+
- The §7 contract still holds: nothing is hidden until an animation runs, and
|
|
24
|
+
the page reads the same with the script off.
|
|
25
|
+
- Any later animation in a tool has to meet the same four conditions or it is
|
|
26
|
+
decorative.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# ADR-0010 — Product pages show, then tell
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-01
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
The first product page built on §13 (driftwood.brignano.io) was shown on a
|
|
8
|
+
phone to a technical reader outside its field. They scrolled once and handed
|
|
9
|
+
the phone back. Rendered at iPhone size, the first screen was a 10-word thesis
|
|
10
|
+
over four lines and a 47-word subhead, with no picture; the proof started a
|
|
11
|
+
screen and a half down and was cropped; the page ran to almost nine screens,
|
|
12
|
+
most of it four prose chapters (problem, how it works, who it's for, why now).
|
|
13
|
+
The template asked for exactly that: copy before proof on a phone, and a story
|
|
14
|
+
of chapters, which reads as a case study.
|
|
15
|
+
|
|
16
|
+
## Decision
|
|
17
|
+
|
|
18
|
+
A product page shows, then tells. The hero splits into head (status, a thesis
|
|
19
|
+
of 8 words or fewer naming the outcome), proof, and body (one sentence, the
|
|
20
|
+
actions), and stacks in that order on a phone, so the proof is on the first
|
|
21
|
+
screen. The story chapters give way to two short bands: three "what you get"
|
|
22
|
+
cards that each lead with a picture, and three one-line steps. At most one
|
|
23
|
+
chapter stays; the longer argument moves to the docs. `scripts/fold.mjs`
|
|
24
|
+
checks the first phone screen and the page length in CI.
|
|
25
|
+
|
|
26
|
+
## Consequences
|
|
27
|
+
|
|
28
|
+
- The older hero markup still lays out, so existing sites keep working until
|
|
29
|
+
they move to the split; `fold.mjs` fails them until they do.
|
|
30
|
+
- The pictures carry the colour (state hues with their words, §3); the page
|
|
31
|
+
around them stays restrained.
|
|
32
|
+
- driftwood, guidebook and sites each rewrite their copy to the new limits in
|
|
33
|
+
their own repos.
|
|
34
|
+
- A cold read of the first example still left a stranger asking who it was
|
|
35
|
+
for, whether they could try it, and what "Request access" leads to. So the
|
|
36
|
+
hero also carries an audience line (checked), the secondary action is a
|
|
37
|
+
live demo when one exists, the note says what happens next, and unbacked
|
|
38
|
+
claims are cut. Forced scroll animation was considered and rejected: it
|
|
39
|
+
slows phones and loses skimmers; a hero clip carries the motion instead.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# ADR-0011 — Product pages start from a brief, and each looks like itself
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-02
|
|
4
|
+
**Superseded in part by:** ADR-0017 (the three identity choices, and cobalt actions on a product page)
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
ADR-0010 fixed the layout, and every product page still needed several rounds
|
|
9
|
+
of "explain it to a stranger" review. Driftwood, Guidebook and Sites were
|
|
10
|
+
each rebuilt on §13, then reworked again in their own repos: pain-first
|
|
11
|
+
subheads, captions inside the clip, plain words in the mock, the person
|
|
12
|
+
behind it, a plain price. Three causes:
|
|
13
|
+
|
|
14
|
+
- Nothing fixed the **message** before the page. The words came from the
|
|
15
|
+
repo, README and spec, so they described how the product works; each
|
|
16
|
+
review was a positioning debate held through page edits.
|
|
17
|
+
- Each review **added a required element** (an audience line, a "what happens
|
|
18
|
+
next" note, the status in two places), so the first screen grew to ~100
|
|
19
|
+
words while passing every check. `fold.mjs` counted the thesis and subhead
|
|
20
|
+
but not the page.
|
|
21
|
+
- The only clarity test, "hand it to someone outside the field", was a
|
|
22
|
+
manual checkbox, so it didn't run.
|
|
23
|
+
|
|
24
|
+
Put side by side, the three pages were also the same page: one grey ground,
|
|
25
|
+
one cobalt audience line, one black thesis, one status pill twice, one proof
|
|
26
|
+
on the right, one band order. Only the picture changed, so nobody looking
|
|
27
|
+
across the projects could tell them apart.
|
|
28
|
+
|
|
29
|
+
## Decision
|
|
30
|
+
|
|
31
|
+
- **Brief first.** Five lines (Who, Pain, Promise, Moment, Ask) in
|
|
32
|
+
`BRIEF.md`, approved before any page; the page is built from it.
|
|
33
|
+
- **Budgets, checked.** 40 words of copy on the first phone screen, 180 on the
|
|
34
|
+
page, the status once. `fold.mjs` fails a page over them.
|
|
35
|
+
- **The stranger test is a step, not a checkbox.** The first-screen shot goes
|
|
36
|
+
to a person or a context-free agent with a fixed prompt; the answers go in
|
|
37
|
+
the PR and must match the brief.
|
|
38
|
+
- **Each product looks like itself.** A product mark (`--mark-teal`,
|
|
39
|
+
`--mark-violet`, `--mark-magenta`) chosen with `data-mark`, a hero layout
|
|
40
|
+
(`split`, `mirror`, `stage`) and a proof frame (bare, phone, browser). No two
|
|
41
|
+
products share all three. Each page also picks its own signature band
|
|
42
|
+
(cards, a comparison, or something of its own) instead of always having
|
|
43
|
+
three cards.
|
|
44
|
+
- Learned in the product repos and now in the template: the subhead is the Pain
|
|
45
|
+
then the fix; clips carry captions; the mock speaks plain words; the
|
|
46
|
+
audience line is ink, not cobalt.
|
|
47
|
+
|
|
48
|
+
## Consequences
|
|
49
|
+
|
|
50
|
+
- A product mark is the one place a hue appears as a wash: the stage behind
|
|
51
|
+
the hero proof, at 8%. That is a scoped exception to "identity is not a
|
|
52
|
+
fill" (§3). It is safe because the product hues mean nothing else in the
|
|
53
|
+
system, and the stage never sits behind a control or a state.
|
|
54
|
+
- Actions stay cobalt on every product, so "you can click this" still means
|
|
55
|
+
one thing everywhere.
|
|
56
|
+
- §13 is shorter: the rules that drive clarity stay, and the ones that only
|
|
57
|
+
added words are gone.
|
|
58
|
+
- Driftwood, Guidebook and Sites each add a `BRIEF.md`, pick their identity
|
|
59
|
+
and cut to the budgets in their own repos.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ADR-0012 — Shared components ship as plain CSS in a cascade layer
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-07 · proposal `proposals/component-layer.md` (#45, #85)
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
The package shipped tokens and the product-page template. Buttons, fields,
|
|
8
|
+
messages and pills existed only on the preview pages, so every consumer rebuilt
|
|
9
|
+
them, and they drifted (brignano.io: about five button styles, an `opacity-40`
|
|
10
|
+
disabled state that §4 forbids).
|
|
11
|
+
|
|
12
|
+
## Decision
|
|
13
|
+
|
|
14
|
+
- Components ship as **plain CSS classes**: `components.css` for controls and
|
|
15
|
+
patterns, `templates/<name>.css` per page template. No React wrappers, no JS.
|
|
16
|
+
- Short unprefixed names (`.btn`, `.field`) inside `@layer brignano.components`,
|
|
17
|
+
so a consumer's own CSS and utilities win without `!important`. States come
|
|
18
|
+
from real attributes (`disabled`, `aria-invalid`, `[open]`), never classes.
|
|
19
|
+
- **Native first:** `<dialog>`, `popover`, `<details>`, anchor positioning.
|
|
20
|
+
Where behaviour needs JS, design documents the ARIA contract and the consumer
|
|
21
|
+
owns the script.
|
|
22
|
+
- `.pp-button` / `.pp-field` become aliases of the shared classes until 1.0.
|
|
23
|
+
- The full catalog is decided now in three waves; wave 3 is built only when a
|
|
24
|
+
product needs it.
|
|
25
|
+
|
|
26
|
+
## Consequences
|
|
27
|
+
|
|
28
|
+
- One import gives any surface, React or not, the same controls.
|
|
29
|
+
- Every class must appear on a docs page, and contrast is checked in both
|
|
30
|
+
themes (`npm run check`).
|
|
31
|
+
- Behaviour bugs live in consumers' JS, not here; the docs pages carry the
|
|
32
|
+
contract so they are written the same way.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# ADR-0013 — Overlays may move as they open and close
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-09 · #116, from #55
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
The tool tier has no motion (§2), and §7 rules out entrance animation.
|
|
8
|
+
ADR-0009 allowed one exception: motion the reader starts that shows an order.
|
|
9
|
+
The component catalog (#55 dialog, #56 popover and menu, #58 toast) asked for
|
|
10
|
+
open and close motion on overlays, which meets none of ADR-0009's conditions.
|
|
11
|
+
Dialogs and sheets first shipped still (#115). A sheet that appears from
|
|
12
|
+
nowhere doesn't say which edge it belongs to, and a dialog that blinks in
|
|
13
|
+
reads as a page jump. Anthony chose to allow the motion with its own entry.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
An overlay (dialog, sheet, popover or menu, toast) may animate as it opens
|
|
18
|
+
and closes, in both tiers, when:
|
|
19
|
+
|
|
20
|
+
- the person opened it, or it answers something they just did;
|
|
21
|
+
- only `opacity` and `transform` move, for `--dur-fast` on `--ease`: a fade
|
|
22
|
+
plus a slide of a few pixels, or a sheet sliding from its own edge;
|
|
23
|
+
- the open state is fully shown without the animation (it comes from
|
|
24
|
+
`@starting-style`), so a browser that lacks it shows the overlay at once;
|
|
25
|
+
- `prefers-reduced-motion` makes it instant, `::backdrop` included.
|
|
26
|
+
|
|
27
|
+
## Consequences
|
|
28
|
+
|
|
29
|
+
- §2's motion row and §7 name this as the one exception beside ADR-0009.
|
|
30
|
+
Content on the page itself still never animates in.
|
|
31
|
+
- `.dialog` and `.sheet` get the motion now. Popover, menu and toast use the
|
|
32
|
+
same timing when they are built. The site header's phone menu (#54) can
|
|
33
|
+
adopt it in a later change.
|
|
34
|
+
- Anything else that wants to move still has to meet ADR-0009 or it is
|
|
35
|
+
decorative.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# ADR-0014 — Identity is a mono voice, a product's mark inside its app, and heavy Geist
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-12 · #137, [`proposals/identity.md`](../proposals/identity.md)
|
|
4
|
+
**Supersedes:** the identity elements named in ADR-0004 (the trail, Silkscreen)
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
ADR-0004 moved identity off amber fills and onto "the things that were always
|
|
9
|
+
carrying it": the trail, the `A|B` monogram and the Silkscreen display face.
|
|
10
|
+
The trail was later removed from brignano.io because it didn't help the
|
|
11
|
+
experience, and neither of the other two ever shipped in the package. An app
|
|
12
|
+
built from the system had no identity at all, and the product marks
|
|
13
|
+
(ADR-0011) stopped at the product page. Anthony chose a direction from a
|
|
14
|
+
wireframe (`previews/wireframes/identity.html`) and accepted the proposal.
|
|
15
|
+
|
|
16
|
+
## Decision
|
|
17
|
+
|
|
18
|
+
- **A mono voice.** Every screen opens with one small uppercase mono label,
|
|
19
|
+
and numbers, dates and codes are set in mono. A written rule, not a check.
|
|
20
|
+
- **A product's mark follows it into its app.** `data-mark` on `<html>` sets
|
|
21
|
+
the mark for everything below it: the brand glyph in the header and on
|
|
22
|
+
error pages, and the rule above a hero heading. With no attribute the mark
|
|
23
|
+
is the family amber (`--mark`), so personal tools share it. A product gets
|
|
24
|
+
its own hue when it gets a product page.
|
|
25
|
+
- **Heavy, tight Geist is the display treatment**, in both tiers, for an
|
|
26
|
+
error code or the `A|B` stamp. Silkscreen is removed in the next minor
|
|
27
|
+
release, after brignano.io has swapped it out.
|
|
28
|
+
- A mark is still never a button, link, text or state (ADR-0004, ADR-0011).
|
|
29
|
+
Cobalt stays the only colour that means "you can act on this".
|
|
30
|
+
|
|
31
|
+
## Consequences
|
|
32
|
+
|
|
33
|
+
- The trail is no longer part of the identity; DESIGN.md §1, §3 and §5 and
|
|
34
|
+
the comments in `tokens.css` drop it when the build lands.
|
|
35
|
+
- `components.css` gains `.eyebrow`, `.num`, `.display`, `.stamp` and
|
|
36
|
+
`.rule`; `tokens.css` gains the `data-mark` rules. `product-page.css`
|
|
37
|
+
reads the same variable, so `.pp[data-mark]` keeps working.
|
|
38
|
+
- `--display` stays as a token name, so nothing breaks by name when the
|
|
39
|
+
Silkscreen override and font file go.
|
|
40
|
+
- brignano.io, driftwood, guidebook and sites each get an issue: the first to
|
|
41
|
+
swap Silkscreen, the others to set `data-mark`.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# ADR-0015 — A white label on cobalt in both themes; controls answer a press and a switch
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-12 · #136
|
|
4
|
+
**Amends:** ADR-0001 (the dark steps of cobalt), ADR-0013 (what may move)
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
A review of the whole system found three things that made the components
|
|
9
|
+
read as a default kit. In dark the primary button was a pale blue with a dark
|
|
10
|
+
label, and its hover and pressed steps were paler still, so the most
|
|
11
|
+
important control on a screen looked washed out. Buttons, inputs, cards and
|
|
12
|
+
dialogs shared corners that didn't say which was nested in which (a 12px
|
|
13
|
+
button in a 12px card, beside a 6px input). And a control gave no feedback
|
|
14
|
+
beyond a colour step, while switching a tab was an instant swap.
|
|
15
|
+
|
|
16
|
+
## Decision
|
|
17
|
+
|
|
18
|
+
- **The cobalt fill takes a white label in both themes.** Dark `--i` is a
|
|
19
|
+
saturated mid-cobalt (hue 256°, as light as a white label allows at 4.5:1),
|
|
20
|
+
and `--i-hover` and `--i-pressed` step darker, as they do in light. `--i-ink`
|
|
21
|
+
is unchanged, so in dark the fill and the ink are now different steps.
|
|
22
|
+
`--on-i` is white everywhere; a `--danger` fill gets its own `--on-danger`,
|
|
23
|
+
because rust still lifts to a pale fill with a dark label in dark.
|
|
24
|
+
- **Controls have their own radius.** `--radius-control` (8px) for buttons,
|
|
25
|
+
inputs, selects, the segmented control and menu items, between
|
|
26
|
+
`--radius-sm` (chips, pills) and `--radius` (cards).
|
|
27
|
+
- **A control may answer the person who used it.** A button settles by 2%
|
|
28
|
+
while pressed, and a switch of view (a tab, a segment) may cross-fade
|
|
29
|
+
through `document.startViewTransition()`, at the browser's default 250ms.
|
|
30
|
+
The package styles nothing on the transition, so it can't change a site's
|
|
31
|
+
own. Both are only ever started by the person, and neither happens under
|
|
32
|
+
`prefers-reduced-motion`.
|
|
33
|
+
|
|
34
|
+
## Consequences
|
|
35
|
+
|
|
36
|
+
- Everything drawn in `--i` in dark gets more saturated and darker: the
|
|
37
|
+
checked checkbox and switch, the selected segment, the current page number,
|
|
38
|
+
progress bars, the info dot, and the washes (`--i-surface`, `--i-line`,
|
|
39
|
+
`--i-selection`), which mix the fill. All still clear their floors.
|
|
40
|
+
- The danger button in dark keeps its pale fill and dark label. Bringing it
|
|
41
|
+
in line means moving a state hue, which is a separate decision.
|
|
42
|
+
- §7's list of what may move gains a third entry. Entrance, hover and scroll
|
|
43
|
+
animation are still out.
|
|
44
|
+
- Sheets and dialogs already move under ADR-0013 and get nothing new.
|