@brignano/design 0.13.0 → 0.14.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 +152 -23
- package/README.md +50 -3
- package/components.css +249 -249
- package/controls.css +238 -238
- package/decisions/0001-cobalt.md +1 -1
- package/decisions/0008-cobalt-hue-256.md +1 -1
- package/decisions/0014-identity.md +1 -1
- package/decisions/0015-white-label-on-cobalt.md +1 -1
- package/decisions/0017-product-identity.md +1 -1
- package/decisions/0019-house-theme-shell.md +51 -0
- package/decisions/0020-kits-opt-in.md +56 -0
- package/decisions/README.md +2 -0
- package/kits/larch.css +125 -0
- package/kits/ledger.css +121 -0
- package/kits/split.css +123 -0
- package/package.json +9 -1
- package/product-page.css +82 -82
- package/scripts/colour.mjs +42 -0
- package/scripts/theme.mjs +190 -0
- package/tailwind.css +13 -20
- package/templates/app-shell.css +15 -15
- package/templates/article.css +26 -26
- package/templates/changelog.css +9 -9
- package/templates/email.html +3 -3
- package/templates/error.css +7 -7
- package/templates/legal.css +11 -11
- package/templates/settings.css +9 -9
- package/themes/driftwood.css +109 -0
- package/themes/driftwood.theme +5 -0
- package/themes/guidebook.css +104 -0
- package/themes/guidebook.theme +5 -0
- package/themes/homelab.css +101 -0
- package/themes/homelab.theme +2 -0
- package/themes/receipts.css +101 -0
- package/themes/receipts.theme +2 -0
- package/themes/sites.css +106 -0
- package/themes/sites.theme +7 -0
- package/tokens/base.css +37 -0
- package/tokens/chart.json +145 -0
- package/tokens/color.json +840 -0
- package/tokens/component.json +75 -0
- package/tokens/head.css +84 -0
- package/tokens/kits/larch.json +255 -0
- package/tokens/kits/ledger.json +247 -0
- package/tokens/kits/split.json +247 -0
- package/tokens/motion.json +38 -0
- package/tokens/names.d.ts +246 -0
- package/tokens/shape.json +56 -0
- package/tokens/space.json +99 -0
- package/tokens/tailwind.json +343 -0
- package/tokens/type.json +206 -0
- package/tokens.chart.css +23 -23
- package/tokens.css +278 -136
package/decisions/0001-cobalt.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ADR-0014 — Identity is a mono voice, a product's mark inside its app, and heavy Geist
|
|
2
2
|
|
|
3
|
-
**Status:**
|
|
3
|
+
**Status:** superseded in part by ADR-0019 from v1.0 · accepted 2026-11-12 · #137, [`proposals/identity.md`](../proposals/identity.md)
|
|
4
4
|
**Supersedes:** the identity elements named in ADR-0004 (the trail, Silkscreen)
|
|
5
5
|
|
|
6
6
|
## Context
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ADR-0015 — A white label on cobalt in both themes; controls answer a press and a switch
|
|
2
2
|
|
|
3
|
-
**Status:**
|
|
3
|
+
**Status:** superseded in part by ADR-0020, inside a kit · accepted 2026-11-12 · #136
|
|
4
4
|
**Amends:** ADR-0001 (the dark steps of cobalt), ADR-0013 (what may move)
|
|
5
5
|
|
|
6
6
|
## Context
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ADR-0017 — A product page is built from what the product does
|
|
2
2
|
|
|
3
|
-
**Status:**
|
|
3
|
+
**Status:** superseded in part by ADR-0019 from v1.0 · accepted 2026-11-13 · #153
|
|
4
4
|
**Supersedes in part:** ADR-0011 ("each looks like itself": the mark, layout and frame choices, and "actions stay cobalt on every product")
|
|
5
5
|
|
|
6
6
|
## Context
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# ADR-0019 — One house look, with a theme and a shell per product
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-22 · #171, [`proposals/design-v1.md`](../proposals/design-v1.md)
|
|
4
|
+
**Supersedes, from v1.0:** ADR-0001 and ADR-0008 (cobalt as the interactive hue); in part ADR-0014 ("cobalt stays the only colour that means you can act on this", heavy Geist as the display treatment) and ADR-0017 ("inside the apps, buttons and links stay cobalt", "no typeface per product", the mark "never appears as a fill in an app")
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
The system was sound underneath but read as the default stack: Geist, a blue
|
|
9
|
+
primary, stock icons, white cards. Every app looked like every other app, and
|
|
10
|
+
like most other people's. Anthony chose to re-found the look rather than
|
|
11
|
+
evolve it (2026-11-21). Three candidate looks were drawn; picking one for
|
|
12
|
+
every app would have made them alike again. A first drawing of "one look,
|
|
13
|
+
themed per product" put all five products on the same sidebar, stats and
|
|
14
|
+
table, and he called it "still really cookie cutter".
|
|
15
|
+
|
|
16
|
+
Options on the table: one look everywhere; a house look with a colour and
|
|
17
|
+
type theme per product; the same, plus a different main-screen shape per
|
|
18
|
+
product; cobalt kept as the action colour with only type and shape varying.
|
|
19
|
+
|
|
20
|
+
## Decision
|
|
21
|
+
|
|
22
|
+
- **A house look, Split**, shared by everything: the layout rules, how every
|
|
23
|
+
control behaves, mono for data, the `product | section` bar above a heading,
|
|
24
|
+
the `A|B` stamp, state colours, and the accessibility floor.
|
|
25
|
+
- **A theme per product**, written as a small file: a kit (Split, Ledger or
|
|
26
|
+
Larch), ground, scheme, action hue, typeface, heading weight, corners. The
|
|
27
|
+
system generates the palette from it and refuses one that fails contrast.
|
|
28
|
+
- **A shell per product**: console, canvas, player, conversation or document.
|
|
29
|
+
A product's main screen is built around the one thing it does.
|
|
30
|
+
- **The action colour belongs to the theme.** Cobalt is no longer the house's
|
|
31
|
+
interactive colour. Within one product a single hue still means "you can
|
|
32
|
+
act on this"; green, amber and red for state never change.
|
|
33
|
+
- **Tokens are generated from a JSON source** in this repo; consumers still
|
|
34
|
+
import plain CSS.
|
|
35
|
+
- First assignments: homelab Split/console; Driftwood Split/canvas, dark,
|
|
36
|
+
mono, teal; Guidebook Larch/player, violet; Sites Larch/conversation,
|
|
37
|
+
magenta wash; Receipts Ledger/document. Others are assigned when built.
|
|
38
|
+
|
|
39
|
+
## Consequences
|
|
40
|
+
|
|
41
|
+
- Apps differ from one another inside, and match their own marketing pages.
|
|
42
|
+
- "Blue means clickable" no longer holds across the family; it holds within
|
|
43
|
+
each product. The audit and the contrast gate carry that weight instead.
|
|
44
|
+
- More to build and keep: three kits, five shells, a theme generator, and
|
|
45
|
+
each shared component shown in every kit.
|
|
46
|
+
- Nothing changes for an app until v1.0; the ADRs above describe what ships
|
|
47
|
+
until then.
|
|
48
|
+
- ADR-0004 (one hue, one meaning) stands. ADR-0015 (a white label on cobalt)
|
|
49
|
+
and ADR-0016 (danger fills) describe today's buttons; they are revisited
|
|
50
|
+
when the kits are built (#179) and get their own ADR then.
|
|
51
|
+
- The plain Larch kit must not use one green for both "settled" and "act".
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# ADR-0020 — Kits are opt-in until 1.0, and a fill's label is whatever reads on it
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-22 · #179
|
|
4
|
+
**Amends:** ADR-0019 (when Split becomes the default). **Supersedes in part, inside a kit:** ADR-0015 ("a white label on cobalt in both themes")
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
ADR-0019 made Split the house look. #179 was written so that Split applied as
|
|
9
|
+
soon as the kits landed. But releases are cut from `main`, and `main` is what
|
|
10
|
+
design.brignano.io shows. A default of Split on `main` would have reached every
|
|
11
|
+
app at the next publish, before any component was restyled for it, and left the
|
|
12
|
+
public site half-built until #183.
|
|
13
|
+
|
|
14
|
+
Building the kits also forced two things ADR-0019 left open: what labels a
|
|
15
|
+
fill once cobalt is not the only fill, and what Larch's action colour is,
|
|
16
|
+
since the wireframe drew it in the same forest green as "settled".
|
|
17
|
+
|
|
18
|
+
Options for the default: Split now; a long-lived `next` branch; or kits that
|
|
19
|
+
are opt-in until 1.0.
|
|
20
|
+
|
|
21
|
+
## Decision
|
|
22
|
+
|
|
23
|
+
- **Opt-in until 1.0** (Anthony, 2026-11-22). Today's look stays the default.
|
|
24
|
+
A page takes a kit with `data-kit="split"`, `"ledger"` or `"larch"` and that
|
|
25
|
+
kit's file, `kits/<kit>.css`. The default flips to Split in the 1.0 release.
|
|
26
|
+
- **A kit may set only names `:root` defines**, and is one rule scoped to
|
|
27
|
+
`[data-kit]`, so it works on `<html>` or on any element.
|
|
28
|
+
- **A fill's label is `--on-action`, whatever colour reads on it**: ink on
|
|
29
|
+
Split's lime, the page on Ledger's ink, cream on Larch's spruce. ADR-0015's
|
|
30
|
+
white label stands for the default look only.
|
|
31
|
+
- **The primary button is found by its fill or by its edge.** `--action-edge`
|
|
32
|
+
is the fill everywhere except Split in light, where lime is 1.24:1 on white
|
|
33
|
+
and the edge is ink. There, lime is a fill only: marks, lines and links take
|
|
34
|
+
`--action-ink`. The check accepts `--action` as a mark where its edge
|
|
35
|
+
reaches 3:1 instead.
|
|
36
|
+
- **Larch's action colour is spruce**, a blue-green about 40° from the forest
|
|
37
|
+
green of `--success`, so "act" and "settled" stay two colours (ADR-0004).
|
|
38
|
+
- **Larch's surfaces are lighter than its page**, not darker as the wireframe
|
|
39
|
+
drew them. On a tinted card the amber "attention" mark fell to 2.89:1 on its
|
|
40
|
+
own wash; it needs a surface near white. Charts sit on Larch's lightest
|
|
41
|
+
paper for the same reason (the orange series was 2.72:1 on the card).
|
|
42
|
+
- **ADR-0016 stands in every kit**: the danger fills and every state hue are
|
|
43
|
+
the same tokens, measured again on each kit's surfaces.
|
|
44
|
+
- `npm run check` holds each kit, in both schemes, to every token floor the
|
|
45
|
+
default look is held to, to its washes, and to the act-versus-settled hue
|
|
46
|
+
gap. A kit may not set a state colour.
|
|
47
|
+
|
|
48
|
+
## Consequences
|
|
49
|
+
|
|
50
|
+
- `main` stays releasable and the public site doesn't change early.
|
|
51
|
+
- 1.0 has one more step: flip the default, and move today's look out or drop it.
|
|
52
|
+
- Until #183, components inside a kit are unstyled for it; the component
|
|
53
|
+
pairs the check reads from `components.css` are measured against the
|
|
54
|
+
default look only, and join the kit floors then.
|
|
55
|
+
- In Split, `--info` and the other aliases of `--action` become lime; #183
|
|
56
|
+
must not draw them as marks on a light page.
|
package/decisions/README.md
CHANGED
|
@@ -26,3 +26,5 @@ record is only edited to mark it superseded; a change of mind is a new record.
|
|
|
26
26
|
| [0016](0016-danger-fills.md) | The danger button has its own fills; the state hue doesn't move | 2026-11-12 |
|
|
27
27
|
| [0017](0017-product-identity.md) | A product page is built from what the product does | 2026-11-13 |
|
|
28
28
|
| [0018](0018-card-stage.md) | A product's card may carry its stage | 2026-11-15 |
|
|
29
|
+
| [0019](0019-house-theme-shell.md) | One house look, with a theme and a shell per product | 2026-11-22 |
|
|
30
|
+
| [0020](0020-kits-opt-in.md) | Kits are opt-in until 1.0, and a fill's label is whatever reads on it | 2026-11-22 |
|
package/kits/larch.css
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from tokens/kits/larch.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* Larch: soft and friendly. A cream page with lighter surfaces on it, separated by tint instead of borders, pill buttons, amber for the one highlight. Night is deep green, not black. */
|
|
4
|
+
[data-kit='larch'] {
|
|
5
|
+
/* ── Ground and surfaces ── */
|
|
6
|
+
--bg: light-dark(#f1eadc, #0d1611);
|
|
7
|
+
--card: light-dark(#faf6ee, #16211b);
|
|
8
|
+
--surface-hover: light-dark(#f4eee1, #1e2b24);
|
|
9
|
+
--surface-active: light-dark(#ece6d8, #27342c);
|
|
10
|
+
|
|
11
|
+
/* 92% of the card in light, of the page in dark, as on :root. */
|
|
12
|
+
--surface-sticky: light-dark(color-mix(in srgb, #faf6ee 92%, transparent), color-mix(in srgb, #0d1611 92%, transparent));
|
|
13
|
+
--on-dark: light-dark(#f1eadc, #0d1611);
|
|
14
|
+
|
|
15
|
+
/* ── Text and lines ── */
|
|
16
|
+
--ink: light-dark(#12241a, #f3eee3);
|
|
17
|
+
--ink-soft: light-dark(#35473d, #c7c5b6);
|
|
18
|
+
--slate: light-dark(#4c5d53, #a3a799);
|
|
19
|
+
--line: light-dark(#ddd7c9, #2a362f);
|
|
20
|
+
--line-soft: light-dark(#e7e1d3, #1e2a23);
|
|
21
|
+
|
|
22
|
+
/* This kit's hairline already shows on its page, so a card keeps it. */
|
|
23
|
+
--card-line: var(--line);
|
|
24
|
+
--card-shadow: var(--shadow-1);
|
|
25
|
+
--line-strong: light-dark(#c4bdb0, #445149);
|
|
26
|
+
|
|
27
|
+
/* A control's edge: 3:1 on the page and the card. */
|
|
28
|
+
--line-control: light-dark(#6c8074, #71867a);
|
|
29
|
+
|
|
30
|
+
/* ── Action: spruce ──
|
|
31
|
+
A blue-green, deliberately NOT the forest green of --success: within a
|
|
32
|
+
product one hue means "you can act on this" and another means "settled"
|
|
33
|
+
(ADR-0004). Guidebook and Sites replace it with their own hue. */
|
|
34
|
+
--action: light-dark(#05585f, #78d6db);
|
|
35
|
+
--action-hover: light-dark(#00474d, #64c3c8);
|
|
36
|
+
--action-pressed: light-dark(#00363c, #56afb3);
|
|
37
|
+
--on-action: light-dark(#fdfaf3, #0d1611);
|
|
38
|
+
|
|
39
|
+
/* The primary button's border: the fill carries itself. */
|
|
40
|
+
--action-edge: light-dark(#05585f, #78d6db);
|
|
41
|
+
|
|
42
|
+
/* Links, icons and the focus ring: what you read, not what you fill. */
|
|
43
|
+
--action-ink: light-dark(#05585f, #78d6db);
|
|
44
|
+
--action-ink-hover: light-dark(#004148, #a6edf0);
|
|
45
|
+
--action-surface: light-dark(color-mix(in srgb, #05585f 12%, transparent), color-mix(in srgb, #78d6db 20%, transparent));
|
|
46
|
+
--action-line: light-dark(color-mix(in srgb, #05585f 32%, transparent), color-mix(in srgb, #78d6db 44%, transparent));
|
|
47
|
+
--action-selection: light-dark(color-mix(in srgb, #05585f 26%, transparent), color-mix(in srgb, #78d6db 30%, transparent));
|
|
48
|
+
|
|
49
|
+
/* Disabled is neutral, never hued. */
|
|
50
|
+
--disabled: light-dark(#ece6d8, #27342c);
|
|
51
|
+
--disabled-ink: light-dark(#7c8a82, #5f6d65);
|
|
52
|
+
|
|
53
|
+
/* The one highlight a screen may carry, and its label. */
|
|
54
|
+
--accent: light-dark(#f1c45e, #e3ad4b);
|
|
55
|
+
--on-accent: light-dark(#12241a, #12241a);
|
|
56
|
+
|
|
57
|
+
/* ── Type ── */
|
|
58
|
+
--sans: 'Onest', system-ui, sans-serif;
|
|
59
|
+
--display: 'Bricolage Grotesque', system-ui, sans-serif;
|
|
60
|
+
--mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
61
|
+
--weight-heavy: 700;
|
|
62
|
+
--leading-display: 1.05;
|
|
63
|
+
--tracking-display: -0.035em;
|
|
64
|
+
--display-case: none;
|
|
65
|
+
--display-stretch: normal;
|
|
66
|
+
|
|
67
|
+
/* ── Shape and elevation ── */
|
|
68
|
+
--radius-sm: 8px;
|
|
69
|
+
--radius-control: 12px;
|
|
70
|
+
--radius-card: 20px;
|
|
71
|
+
--radius-lg: 28px;
|
|
72
|
+
--button-radius: 999px;
|
|
73
|
+
--pill-radius: 999px;
|
|
74
|
+
--shadow-1: none;
|
|
75
|
+
|
|
76
|
+
/* ── Charts ──
|
|
77
|
+
A chart sits on near-white paper in light: the orange series needs it to
|
|
78
|
+
reach 3:1, which the tinted page and card cannot give it. */
|
|
79
|
+
--chart-surface: light-dark(#fefcf7, #16211b);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* Aliases from :root that lead to a token this kit sets, declared again so
|
|
83
|
+
they resolve against the kit's values on whatever element carries it. */
|
|
84
|
+
[data-kit='larch'] {
|
|
85
|
+
--i: var(--action);
|
|
86
|
+
--i-ink: var(--action-ink);
|
|
87
|
+
--i-hover: var(--action-hover);
|
|
88
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
89
|
+
--i-pressed: var(--action-pressed);
|
|
90
|
+
--i-surface: var(--action-surface);
|
|
91
|
+
--i-line: var(--action-line);
|
|
92
|
+
--i-selection: var(--action-selection);
|
|
93
|
+
--on-i: var(--on-action);
|
|
94
|
+
--i-disabled-bg: var(--disabled);
|
|
95
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
96
|
+
--info: var(--action);
|
|
97
|
+
--info-ink: var(--action-ink);
|
|
98
|
+
--info-surface: var(--action-surface);
|
|
99
|
+
--info-line: var(--action-line);
|
|
100
|
+
--diff-changed: var(--action);
|
|
101
|
+
--diff-changed-ink: var(--action-ink);
|
|
102
|
+
--diff-changed-surface: var(--action-surface);
|
|
103
|
+
--code-surface: var(--bg);
|
|
104
|
+
--code-ink: var(--ink);
|
|
105
|
+
--code-keyword: var(--action-ink);
|
|
106
|
+
--code-string: var(--ink-soft);
|
|
107
|
+
--code-comment: var(--slate);
|
|
108
|
+
--code-highlight: var(--action-surface);
|
|
109
|
+
--gold: var(--slate);
|
|
110
|
+
--leading-3xl: var(--leading-display);
|
|
111
|
+
--tracking-3xl: var(--tracking-display);
|
|
112
|
+
--leading-4xl: var(--leading-display);
|
|
113
|
+
--tracking-4xl: var(--tracking-display);
|
|
114
|
+
--radius: var(--radius-card);
|
|
115
|
+
--shadow: var(--shadow-1);
|
|
116
|
+
--field-radius: var(--radius-control);
|
|
117
|
+
--field-line: var(--line-control);
|
|
118
|
+
--card-radius: var(--radius-card);
|
|
119
|
+
--dialog-radius: var(--radius-lg);
|
|
120
|
+
--focus-ring: var(--action-ink);
|
|
121
|
+
--chart-other: var(--slate);
|
|
122
|
+
--chart-grid: var(--line);
|
|
123
|
+
--chart-axis: var(--slate);
|
|
124
|
+
--seq-0: var(--line);
|
|
125
|
+
}
|
package/kits/ledger.css
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from tokens/kits/ledger.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* Ledger: a well-kept notebook. Warm paper, a serif for headings, hairline rules instead of cards, ink does the acting and amber is a highlighter. */
|
|
4
|
+
[data-kit='ledger'] {
|
|
5
|
+
/* ── Ground and surfaces ── */
|
|
6
|
+
--bg: light-dark(#f8f5ef, #15120f);
|
|
7
|
+
--card: light-dark(#fefcf9, #1f1b17);
|
|
8
|
+
--surface-hover: light-dark(#f0ece4, #282521);
|
|
9
|
+
--surface-active: light-dark(#e7e2d9, #312d28);
|
|
10
|
+
|
|
11
|
+
/* 92% of the card in light, of the page in dark, as on :root. */
|
|
12
|
+
--surface-sticky: light-dark(color-mix(in srgb, #fefcf9 92%, transparent), color-mix(in srgb, #15120f 92%, transparent));
|
|
13
|
+
--on-dark: light-dark(#f8f5ef, #15120f);
|
|
14
|
+
|
|
15
|
+
/* ── Text and lines ── */
|
|
16
|
+
--ink: light-dark(#1d1713, #efebe2);
|
|
17
|
+
--ink-soft: light-dark(#4e4640, #c1bdb5);
|
|
18
|
+
--slate: light-dark(#69625b, #a29e96);
|
|
19
|
+
--line: light-dark(#d8d4ca, #36322d);
|
|
20
|
+
--line-soft: light-dark(#e8e4dc, #292622);
|
|
21
|
+
|
|
22
|
+
/* This kit's hairline already shows on its page, so a card keeps it. */
|
|
23
|
+
--card-line: var(--line);
|
|
24
|
+
--card-shadow: var(--shadow-1);
|
|
25
|
+
--line-strong: light-dark(#bbb7ae, #514c47);
|
|
26
|
+
|
|
27
|
+
/* A control's edge: 3:1 on the page and the card. */
|
|
28
|
+
--line-control: light-dark(#877e78, #78746d);
|
|
29
|
+
|
|
30
|
+
/* ── Action: ink ──
|
|
31
|
+
The primary button is ink, with the page as its label. */
|
|
32
|
+
--action: light-dark(#1d1713, #efebe2);
|
|
33
|
+
--action-hover: light-dark(#38322d, #d4d0c8);
|
|
34
|
+
--action-pressed: light-dark(#4e4640, #c1bdb5);
|
|
35
|
+
--on-action: light-dark(#f8f5ef, #15120f);
|
|
36
|
+
|
|
37
|
+
/* The primary button's border: the fill carries itself. */
|
|
38
|
+
--action-edge: light-dark(#1d1713, #efebe2);
|
|
39
|
+
|
|
40
|
+
/* Links, icons and the focus ring: what you read, not what you fill. */
|
|
41
|
+
--action-ink: light-dark(#1d1713, #efebe2);
|
|
42
|
+
--action-ink-hover: light-dark(#4e4640, #c1bdb5);
|
|
43
|
+
--action-surface: light-dark(color-mix(in srgb, #1d1713 12%, transparent), color-mix(in srgb, #efebe2 20%, transparent));
|
|
44
|
+
--action-line: light-dark(color-mix(in srgb, #1d1713 32%, transparent), color-mix(in srgb, #efebe2 44%, transparent));
|
|
45
|
+
--action-selection: light-dark(color-mix(in srgb, #1d1713 26%, transparent), color-mix(in srgb, #efebe2 30%, transparent));
|
|
46
|
+
|
|
47
|
+
/* Disabled is neutral, never hued. */
|
|
48
|
+
--disabled: light-dark(#e7e2d9, #312d28);
|
|
49
|
+
--disabled-ink: light-dark(#8c857f, #66635d);
|
|
50
|
+
|
|
51
|
+
/* The one highlight a screen may carry, and its label. */
|
|
52
|
+
--accent: light-dark(#f1c45e, #d19936);
|
|
53
|
+
--on-accent: light-dark(#1d1713, #1d1713);
|
|
54
|
+
|
|
55
|
+
/* ── Type ── */
|
|
56
|
+
--sans: 'Instrument Sans', system-ui, sans-serif;
|
|
57
|
+
--display: 'Newsreader', Georgia, serif;
|
|
58
|
+
--mono: 'IBM Plex Mono', ui-monospace, monospace;
|
|
59
|
+
--weight-heavy: 500;
|
|
60
|
+
--leading-display: 1.05;
|
|
61
|
+
--tracking-display: -0.025em;
|
|
62
|
+
--display-case: none;
|
|
63
|
+
--display-stretch: normal;
|
|
64
|
+
|
|
65
|
+
/* ── Shape and elevation ── */
|
|
66
|
+
--radius-sm: 2px;
|
|
67
|
+
--radius-control: 3px;
|
|
68
|
+
--radius-card: 4px;
|
|
69
|
+
--radius-lg: 6px;
|
|
70
|
+
--shadow-1: none;
|
|
71
|
+
--shadow-2: none;
|
|
72
|
+
--shadow-3: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Aliases from :root that lead to a token this kit sets, declared again so
|
|
76
|
+
they resolve against the kit's values on whatever element carries it. */
|
|
77
|
+
[data-kit='ledger'] {
|
|
78
|
+
--i: var(--action);
|
|
79
|
+
--i-ink: var(--action-ink);
|
|
80
|
+
--i-hover: var(--action-hover);
|
|
81
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
82
|
+
--i-pressed: var(--action-pressed);
|
|
83
|
+
--i-surface: var(--action-surface);
|
|
84
|
+
--i-line: var(--action-line);
|
|
85
|
+
--i-selection: var(--action-selection);
|
|
86
|
+
--on-i: var(--on-action);
|
|
87
|
+
--i-disabled-bg: var(--disabled);
|
|
88
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
89
|
+
--info: var(--action);
|
|
90
|
+
--info-ink: var(--action-ink);
|
|
91
|
+
--info-surface: var(--action-surface);
|
|
92
|
+
--info-line: var(--action-line);
|
|
93
|
+
--diff-changed: var(--action);
|
|
94
|
+
--diff-changed-ink: var(--action-ink);
|
|
95
|
+
--diff-changed-surface: var(--action-surface);
|
|
96
|
+
--code-surface: var(--bg);
|
|
97
|
+
--code-ink: var(--ink);
|
|
98
|
+
--code-keyword: var(--action-ink);
|
|
99
|
+
--code-string: var(--ink-soft);
|
|
100
|
+
--code-comment: var(--slate);
|
|
101
|
+
--code-highlight: var(--action-surface);
|
|
102
|
+
--gold: var(--slate);
|
|
103
|
+
--leading-3xl: var(--leading-display);
|
|
104
|
+
--tracking-3xl: var(--tracking-display);
|
|
105
|
+
--leading-4xl: var(--leading-display);
|
|
106
|
+
--tracking-4xl: var(--tracking-display);
|
|
107
|
+
--radius: var(--radius-card);
|
|
108
|
+
--shadow: var(--shadow-1);
|
|
109
|
+
--button-radius: var(--radius-control);
|
|
110
|
+
--field-radius: var(--radius-control);
|
|
111
|
+
--field-line: var(--line-control);
|
|
112
|
+
--card-radius: var(--radius-card);
|
|
113
|
+
--pill-radius: var(--radius-sm);
|
|
114
|
+
--dialog-radius: var(--radius-lg);
|
|
115
|
+
--focus-ring: var(--action-ink);
|
|
116
|
+
--chart-surface: var(--card);
|
|
117
|
+
--chart-other: var(--slate);
|
|
118
|
+
--chart-grid: var(--line);
|
|
119
|
+
--chart-axis: var(--slate);
|
|
120
|
+
--seq-0: var(--line);
|
|
121
|
+
}
|
package/kits/split.css
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/* GENERATED by scripts/build.mjs from tokens/kits/split.json. Edit that, then `npm run build`. */
|
|
2
|
+
|
|
3
|
+
/* Split: the house look. Black and white, one lime signal, square corners, 1px ink borders, no shadows. The bar in A|B is the system (ADR-0019). */
|
|
4
|
+
[data-kit='split'] {
|
|
5
|
+
/* ── Ground and surfaces ── */
|
|
6
|
+
--bg: light-dark(#fafafa, #0b0c0e);
|
|
7
|
+
--card: light-dark(#ffffff, #141517);
|
|
8
|
+
--surface-hover: light-dark(#f0f0f0, #1d1e20);
|
|
9
|
+
--surface-active: light-dark(#e4e4e4, #26282a);
|
|
10
|
+
|
|
11
|
+
/* 92% of the card in light, of the page in dark, as on :root. */
|
|
12
|
+
--surface-sticky: light-dark(color-mix(in srgb, #ffffff 92%, transparent), color-mix(in srgb, #0b0c0e 92%, transparent));
|
|
13
|
+
--on-dark: light-dark(#fafafa, #0b0c0e);
|
|
14
|
+
|
|
15
|
+
/* ── Text and lines ── */
|
|
16
|
+
--ink: light-dark(#0f0f11, #f2f2f2);
|
|
17
|
+
--ink-soft: light-dark(#414245, #c4c4c4);
|
|
18
|
+
--slate: light-dark(#626366, #9e9e9e);
|
|
19
|
+
--line: light-dark(#d7d7d7, #2d2e30);
|
|
20
|
+
--line-soft: light-dark(#e8e8e8, #1e1f22);
|
|
21
|
+
|
|
22
|
+
/* This kit's hairline already shows on its page, so a card keeps it. */
|
|
23
|
+
--card-line: var(--line);
|
|
24
|
+
--card-shadow: var(--shadow-1);
|
|
25
|
+
--line-strong: light-dark(#0f0f11, #f2f2f2);
|
|
26
|
+
|
|
27
|
+
/* A control's edge: 3:1 on the page and the card. */
|
|
28
|
+
--line-control: light-dark(#0f0f11, #f2f2f2);
|
|
29
|
+
|
|
30
|
+
/* ── Action: the lime signal ──
|
|
31
|
+
A FILL only: the one primary action. It is 1.24:1 on a white page, so it
|
|
32
|
+
is never a mark, a line or text there; those take --action-ink. */
|
|
33
|
+
--action: light-dark(#bff538, #bff538);
|
|
34
|
+
--action-hover: light-dark(#ade02a, #ade02a);
|
|
35
|
+
--action-pressed: light-dark(#9ccb1b, #9ccb1b);
|
|
36
|
+
--on-action: light-dark(#0f0f11, #0f0f11);
|
|
37
|
+
|
|
38
|
+
/* The primary button's border. In light it is ink, because the fill alone
|
|
39
|
+
can't be found on white; in dark the fill carries itself. */
|
|
40
|
+
--action-edge: light-dark(#0f0f11, #bff538);
|
|
41
|
+
|
|
42
|
+
/* Links, icons and the focus ring: what you read, not what you fill. */
|
|
43
|
+
--action-ink: light-dark(#0f0f11, #f2f2f2);
|
|
44
|
+
--action-ink-hover: light-dark(#414245, #c4c4c4);
|
|
45
|
+
--action-surface: light-dark(color-mix(in srgb, #bff538 12%, transparent), color-mix(in srgb, #bff538 20%, transparent));
|
|
46
|
+
--action-line: light-dark(color-mix(in srgb, #bff538 32%, transparent), color-mix(in srgb, #bff538 44%, transparent));
|
|
47
|
+
--action-selection: light-dark(color-mix(in srgb, #bff538 26%, transparent), color-mix(in srgb, #bff538 30%, transparent));
|
|
48
|
+
|
|
49
|
+
/* Disabled is neutral, never hued. */
|
|
50
|
+
--disabled: light-dark(#e4e4e4, #26282a);
|
|
51
|
+
--disabled-ink: light-dark(#868686, #636363);
|
|
52
|
+
|
|
53
|
+
/* The one highlight a screen may carry, and its label. */
|
|
54
|
+
--accent: light-dark(#bff538, #bff538);
|
|
55
|
+
--on-accent: light-dark(#0f0f11, #0f0f11);
|
|
56
|
+
|
|
57
|
+
/* ── Type ── */
|
|
58
|
+
--sans: 'Archivo', system-ui, sans-serif;
|
|
59
|
+
--display: 'Archivo', system-ui, sans-serif;
|
|
60
|
+
--mono: 'Martian Mono', ui-monospace, monospace;
|
|
61
|
+
--weight-heavy: 800;
|
|
62
|
+
--leading-display: 0.95;
|
|
63
|
+
--tracking-display: -0.035em;
|
|
64
|
+
--display-case: uppercase;
|
|
65
|
+
--display-stretch: 120%;
|
|
66
|
+
|
|
67
|
+
/* ── Shape and elevation ── */
|
|
68
|
+
--radius-sm: 0px;
|
|
69
|
+
--radius-control: 0px;
|
|
70
|
+
--radius-card: 0px;
|
|
71
|
+
--radius-lg: 0px;
|
|
72
|
+
--shadow-1: none;
|
|
73
|
+
--shadow-2: none;
|
|
74
|
+
--shadow-3: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* Aliases from :root that lead to a token this kit sets, declared again so
|
|
78
|
+
they resolve against the kit's values on whatever element carries it. */
|
|
79
|
+
[data-kit='split'] {
|
|
80
|
+
--i: var(--action);
|
|
81
|
+
--i-ink: var(--action-ink);
|
|
82
|
+
--i-hover: var(--action-hover);
|
|
83
|
+
--i-ink-hover: var(--action-ink-hover);
|
|
84
|
+
--i-pressed: var(--action-pressed);
|
|
85
|
+
--i-surface: var(--action-surface);
|
|
86
|
+
--i-line: var(--action-line);
|
|
87
|
+
--i-selection: var(--action-selection);
|
|
88
|
+
--on-i: var(--on-action);
|
|
89
|
+
--i-disabled-bg: var(--disabled);
|
|
90
|
+
--i-disabled-ink: var(--disabled-ink);
|
|
91
|
+
--info: var(--action);
|
|
92
|
+
--info-ink: var(--action-ink);
|
|
93
|
+
--info-surface: var(--action-surface);
|
|
94
|
+
--info-line: var(--action-line);
|
|
95
|
+
--diff-changed: var(--action);
|
|
96
|
+
--diff-changed-ink: var(--action-ink);
|
|
97
|
+
--diff-changed-surface: var(--action-surface);
|
|
98
|
+
--code-surface: var(--bg);
|
|
99
|
+
--code-ink: var(--ink);
|
|
100
|
+
--code-keyword: var(--action-ink);
|
|
101
|
+
--code-string: var(--ink-soft);
|
|
102
|
+
--code-comment: var(--slate);
|
|
103
|
+
--code-highlight: var(--action-surface);
|
|
104
|
+
--gold: var(--slate);
|
|
105
|
+
--leading-3xl: var(--leading-display);
|
|
106
|
+
--tracking-3xl: var(--tracking-display);
|
|
107
|
+
--leading-4xl: var(--leading-display);
|
|
108
|
+
--tracking-4xl: var(--tracking-display);
|
|
109
|
+
--radius: var(--radius-card);
|
|
110
|
+
--shadow: var(--shadow-1);
|
|
111
|
+
--button-radius: var(--radius-control);
|
|
112
|
+
--field-radius: var(--radius-control);
|
|
113
|
+
--field-line: var(--line-control);
|
|
114
|
+
--card-radius: var(--radius-card);
|
|
115
|
+
--pill-radius: var(--radius-sm);
|
|
116
|
+
--dialog-radius: var(--radius-lg);
|
|
117
|
+
--focus-ring: var(--action-ink);
|
|
118
|
+
--chart-surface: var(--card);
|
|
119
|
+
--chart-other: var(--slate);
|
|
120
|
+
--chart-grid: var(--line);
|
|
121
|
+
--chart-axis: var(--slate);
|
|
122
|
+
--seq-0: var(--line);
|
|
123
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brignano/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"description": "Shared design system for brignano surfaces — colour, type, space, shape, motion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"url": "git+https://github.com/brignano/design.git"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
+
"build": "node scripts/build.mjs",
|
|
11
12
|
"check": "node scripts/check.mjs",
|
|
12
13
|
"controls": "node scripts/controls.mjs"
|
|
13
14
|
},
|
|
@@ -18,6 +19,9 @@
|
|
|
18
19
|
"files": [
|
|
19
20
|
"tokens.css",
|
|
20
21
|
"tokens.chart.css",
|
|
22
|
+
"tokens/",
|
|
23
|
+
"kits/",
|
|
24
|
+
"themes/",
|
|
21
25
|
"components.css",
|
|
22
26
|
"controls.css",
|
|
23
27
|
"product-page.css",
|
|
@@ -26,6 +30,7 @@
|
|
|
26
30
|
"logo/",
|
|
27
31
|
"scripts/fold.mjs",
|
|
28
32
|
"scripts/email-tokens.mjs",
|
|
33
|
+
"scripts/theme.mjs",
|
|
29
34
|
"scripts/colour.mjs",
|
|
30
35
|
"tailwind.css",
|
|
31
36
|
"DESIGN.md",
|
|
@@ -34,6 +39,9 @@
|
|
|
34
39
|
"exports": {
|
|
35
40
|
"./tokens.css": "./tokens.css",
|
|
36
41
|
"./tokens.chart.css": "./tokens.chart.css",
|
|
42
|
+
"./tokens/*": "./tokens/*",
|
|
43
|
+
"./kits/*": "./kits/*",
|
|
44
|
+
"./themes/*": "./themes/*",
|
|
37
45
|
"./tailwind.css": "./tailwind.css",
|
|
38
46
|
"./components.css": "./components.css",
|
|
39
47
|
"./controls.css": "./controls.css",
|