@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,31 @@
|
|
|
1
|
+
# ADR-0016 — The danger button has its own fills; the state hue doesn't move
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-12 · #147
|
|
4
|
+
**Follows:** ADR-0015, which left the dark danger button as it was
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
After ADR-0015 the primary button in dark is a deep cobalt with a white
|
|
9
|
+
label. The danger button still filled with the state hue `--danger`, which in
|
|
10
|
+
dark is a pale rust chosen to be read as text and marks on dark surfaces, so
|
|
11
|
+
the button carried a dark label and went lighter on hover. Beside the primary
|
|
12
|
+
the destructive action looked the softer of the two. Deepening `--danger`
|
|
13
|
+
itself would have darkened every message, pill and field error with it.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
A destructive button fills with tokens of its own: `--danger-fill`,
|
|
18
|
+
`--danger-fill-hover` and `--danger-fill-pressed`, under a white
|
|
19
|
+
`--on-danger` label in both themes. In light they are `--danger` and
|
|
20
|
+
`--danger-ink`, so nothing changes there, and `npm run check` holds them to
|
|
21
|
+
those. In dark they sit at rust's hue and chroma, as light as a white label
|
|
22
|
+
allows at 4.5:1, stepping darker on hover and press: the method ADR-0015 used
|
|
23
|
+
for cobalt.
|
|
24
|
+
|
|
25
|
+
## Consequences
|
|
26
|
+
|
|
27
|
+
- `--danger`, `--danger-ink` and the danger washes are untouched, so
|
|
28
|
+
messages, pills, toasts, field errors and diagram states look as before.
|
|
29
|
+
- "Fill" and "state" are now separate roles for danger, as `--i` and `--i-ink`
|
|
30
|
+
are for cobalt. Success and attention have no filled control, so they get
|
|
31
|
+
no fill tokens until something needs one.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# ADR-0017 — A product page is built from what the product does
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-13 · #153
|
|
4
|
+
**Supersedes in part:** ADR-0011 ("each looks like itself": the mark, layout and frame choices, and "actions stay cobalt on every product")
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
ADR-0011 gave each product a mark, a hero layout and a proof frame. On the
|
|
9
|
+
live sites that came to an 8% tint and whether the picture sat left or right.
|
|
10
|
+
Driftwood, Guidebook and Sites still shared a header, a ground, a headline
|
|
11
|
+
type, a status pill, a cobalt button in the same two places, a rounded stage
|
|
12
|
+
and a band order, so switching between them read as one site with the words
|
|
13
|
+
swapped. Anthony chose a direction from the wireframe
|
|
14
|
+
(`previews/wireframes/product-identity.html`) and accepted the proposal
|
|
15
|
+
(`proposals/product-identity.md`) the same day.
|
|
16
|
+
|
|
17
|
+
## Decision
|
|
18
|
+
|
|
19
|
+
- **Five choices replace three.** Each product picks a ground, a voice for
|
|
20
|
+
its thesis, a shape, a composition, and one piece of its own interface used
|
|
21
|
+
on the page itself. No two products pick the same value for any of them.
|
|
22
|
+
DESIGN.md §13 keeps the register.
|
|
23
|
+
- **The primary button leaves cobalt on a product page.** It fills with the
|
|
24
|
+
product's mark, or with ink. Inside the apps, buttons and links stay cobalt
|
|
25
|
+
(ADR-0004, ADR-0014 unchanged).
|
|
26
|
+
- **A product's look lives in its own repo**, written in tokens, with its
|
|
27
|
+
choices in `BRIEF.md`. This package ships the tokens, the shared parts of
|
|
28
|
+
`product-page.css` and the register, not a preset per product.
|
|
29
|
+
- **Driftwood is rebuilt first**, then Guidebook, then Sites.
|
|
30
|
+
- **A product page follows the visitor's theme** unless its look is a theme:
|
|
31
|
+
Driftwood pins dark; Guidebook and Sites define their ground in both.
|
|
32
|
+
- **No typeface per product for now.** Weight, size and mono carry the voice.
|
|
33
|
+
Revisit if the three still read alike once built.
|
|
34
|
+
|
|
35
|
+
## Consequences
|
|
36
|
+
|
|
37
|
+
- "One hue, one meaning" now has a second scoped exception on product pages:
|
|
38
|
+
the mark may fill the one primary action and wash the page ground. It still
|
|
39
|
+
never colours a link, text or a state, and never appears as a fill in an app.
|
|
40
|
+
- The mark needs fill, label and surface tokens per product hue, each held to
|
|
41
|
+
contrast in both themes by `npm run check`.
|
|
42
|
+
- `product-page.css` stops being the look. The brief, show then tell, one
|
|
43
|
+
primary action, the word budgets, `fold.mjs` and the stranger test stay.
|
|
44
|
+
- Three pages differ, so a change to the shared rules is checked on three
|
|
45
|
+
layouts. The `A|B` stamp in the footer is the one family resemblance.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# ADR-0018 — A product's card may carry its stage
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-15 · #164
|
|
4
|
+
**Extends:** ADR-0011 (the stage behind a hero proof), ADR-0017
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
brignano.io/projects lists products as cards, each with a drawing of what
|
|
9
|
+
the product does. The approved wireframe puts each drawing on a faint field
|
|
10
|
+
of its product's mark, so Driftwood's card reads as Driftwood before its
|
|
11
|
+
name does. DESIGN.md §3 kept the mark grounds to product pages, and
|
|
12
|
+
`.card-media` crops a photo to 16:9, which cuts a drawing's edges. Without a
|
|
13
|
+
rule each site would invent its own tint.
|
|
14
|
+
|
|
15
|
+
## Decision
|
|
16
|
+
|
|
17
|
+
- **`.card-media.card-stage`** draws the stage on a card: a
|
|
18
|
+
`color-mix(in srgb, var(--mark-current) 8%, transparent)` field, with the
|
|
19
|
+
picture padded and contained in its 16:9 box rather than cropped.
|
|
20
|
+
- **Same strength as the product page.** `--pp-stage` and `.card-stage` mix
|
|
21
|
+
the mark at 8%, so a product looks the same on its card and its page. No new
|
|
22
|
+
token: `product-page.css` stays self-contained, so the value is repeated,
|
|
23
|
+
and `npm run check` (gate 13) keeps the copies equal.
|
|
24
|
+
- **Only on a card that stands for a product**, and only as its picture's
|
|
25
|
+
ground. Buttons, links, text, chips and state on the card stay as they are.
|
|
26
|
+
- **Unmarked products stay amber.** A product gets its own hue with its
|
|
27
|
+
product page (§3); until then its card's stage is the family amber.
|
|
28
|
+
|
|
29
|
+
## Consequences
|
|
30
|
+
|
|
31
|
+
- "Identity is not a fill" has a third scoped exception, the smallest: a
|
|
32
|
+
translucent field behind one picture.
|
|
33
|
+
- A site listing products gets the tint from the package instead of a local
|
|
34
|
+
copy (brignano.io#340 drops its own).
|
|
35
|
+
- Changing the stage strength means changing both files; the check fails
|
|
36
|
+
until they agree.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Decisions
|
|
2
|
+
|
|
3
|
+
Why the values in `tokens.css` are what they are. Each entry supersedes whatever
|
|
4
|
+
came before it; nothing here is re-litigated without a new entry.
|
|
5
|
+
|
|
6
|
+
One file per decision, `NNNN-slug.md`, numbered in date order. A merged
|
|
7
|
+
record is only edited to mark it superseded; a change of mind is a new record.
|
|
8
|
+
|
|
9
|
+
| ADR | Decision | Date |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| [0001](0001-cobalt.md) | The interactive hue is cobalt | 2026-08-23 |
|
|
12
|
+
| [0002](0002-chart-palette.md) | Charts keep a full categorical palette, re-derived and validated | 2026-08-23 |
|
|
13
|
+
| [0003](0003-one-public-package.md) | The system lives in one public repo, consumed as a package | 2026-08-23 |
|
|
14
|
+
| [0004](0004-one-hue-one-meaning.md) | One hue, one meaning | 2026-08-23 |
|
|
15
|
+
| [0005](0005-diagrams-are-not-charts.md) | Diagrams are not charts: neutral nodes, colour for state only | 2026-10-13 |
|
|
16
|
+
| [0006](0006-light-dark.md) | One declaration per colour, via `light-dark()` | 2026-10-25 |
|
|
17
|
+
| [0007](0007-neutral-hue-286.md) | The neutral ramp is one temperature: OKLCH hue 286° | 2026-10-25 |
|
|
18
|
+
| [0008](0008-cobalt-hue-256.md) | Cobalt is our own: OKLCH hue 256°, not Tailwind's blue | 2026-10-25 |
|
|
19
|
+
| [0009](0009-reader-asked-motion.md) | Motion the reader asks for is allowed in the tool tier | 2026-10-31 |
|
|
20
|
+
| [0010](0010-product-pages-show-then-tell.md) | Product pages show, then tell | 2026-11-01 |
|
|
21
|
+
| [0011](0011-product-page-briefs.md) | Product pages start from a brief, and each looks like itself | 2026-11-02 |
|
|
22
|
+
| [0012](0012-components-in-a-cascade-layer.md) | Shared components ship as plain CSS in a cascade layer | 2026-11-07 |
|
|
23
|
+
| [0013](0013-overlay-motion.md) | Overlays may move as they open and close | 2026-11-09 |
|
|
24
|
+
| [0014](0014-identity.md) | Identity is a mono voice, a product's mark inside its app, and heavy Geist | 2026-11-12 |
|
|
25
|
+
| [0015](0015-white-label-on-cobalt.md) | A white label on cobalt in both themes; controls answer a press and a switch | 2026-11-12 |
|
|
26
|
+
| [0016](0016-danger-fills.md) | The danger button has its own fills; the state hue doesn't move | 2026-11-12 |
|
|
27
|
+
| [0017](0017-product-identity.md) | A product page is built from what the product does | 2026-11-13 |
|
|
28
|
+
| [0018](0018-card-stage.md) | A product's card may carry its stage | 2026-11-15 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brignano/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Shared design system for brignano surfaces — colour, type, space, shape, motion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
"url": "git+https://github.com/brignano/design.git"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"check": "node scripts/check.mjs"
|
|
11
|
+
"check": "node scripts/check.mjs",
|
|
12
|
+
"controls": "node scripts/controls.mjs"
|
|
12
13
|
},
|
|
13
14
|
"publishConfig": {
|
|
14
15
|
"access": "public",
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
"tokens.css",
|
|
19
20
|
"tokens.chart.css",
|
|
20
21
|
"components.css",
|
|
22
|
+
"controls.css",
|
|
21
23
|
"product-page.css",
|
|
22
24
|
"templates/",
|
|
23
25
|
"icons/",
|
|
@@ -27,13 +29,14 @@
|
|
|
27
29
|
"scripts/colour.mjs",
|
|
28
30
|
"tailwind.css",
|
|
29
31
|
"DESIGN.md",
|
|
30
|
-
"
|
|
32
|
+
"decisions/"
|
|
31
33
|
],
|
|
32
34
|
"exports": {
|
|
33
35
|
"./tokens.css": "./tokens.css",
|
|
34
36
|
"./tokens.chart.css": "./tokens.chart.css",
|
|
35
37
|
"./tailwind.css": "./tailwind.css",
|
|
36
38
|
"./components.css": "./components.css",
|
|
39
|
+
"./controls.css": "./controls.css",
|
|
37
40
|
"./product-page.css": "./product-page.css",
|
|
38
41
|
"./templates/*": "./templates/*",
|
|
39
42
|
"./icons/*": "./icons/*",
|
package/tokens.css
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
copies to their source.
|
|
46
46
|
3. Ratios in the comments are MEASURED. Change a value, re-measure it.
|
|
47
47
|
|
|
48
|
-
See DESIGN.md for the rules that govern use,
|
|
48
|
+
See DESIGN.md for the rules that govern use, decisions/ for why.
|
|
49
49
|
───────────────────────────────────────────────────────────────────────── */
|
|
50
50
|
|
|
51
51
|
/* ── Themes ─────────────────────────────────────────────────────────────
|