@brignano/design 0.11.0 → 0.12.1
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 +38 -8
- package/README.md +2 -1
- package/components.css +51 -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/logo/mark.svg +12 -0
- package/logo/paths.d.mts +10 -0
- package/logo/paths.mjs +31 -0
- package/logo/tile-180.png +0 -0
- package/logo/tile-512.png +0 -0
- package/logo/tile.svg +9 -0
- package/package.json +4 -2
- package/tokens.css +1 -1
- package/DECISIONS.md +0 -799
|
@@ -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.
|
|
@@ -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/logo/mark.svg
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 41.33 24" width="41.33" height="24" role="img" aria-label="Anthony Brignano">
|
|
2
|
+
<!-- The A|B logo: Geist at 800, outlined, with the bar as a cursor in the
|
|
3
|
+
mark colour. A file used as an <img> can't read tokens.css, so the
|
|
4
|
+
colours repeat the ink and mark tokens in each theme; keep them in step.
|
|
5
|
+
Inline it from logo/paths.mjs instead when the page has tokens. -->
|
|
6
|
+
<style>
|
|
7
|
+
.ab { fill: rgb(17 17 20); } .bar { fill: rgb(180 116 31); }
|
|
8
|
+
@media (prefers-color-scheme: dark) { .ab { fill: rgb(242 242 244); } .bar { fill: rgb(224 164 79); } }
|
|
9
|
+
</style>
|
|
10
|
+
<path class="ab" d="M0 20.44 6.08 3.56H10.87L16.96 20.44H12.71L11.61 17.25H5.33L4.23 20.44ZM6.45 13.96H10.5L8.49 8.03ZM27.17 20.44V3.56H34Q37.18 3.56 38.9 4.67Q40.61 5.77 40.61 8.16Q40.61 9.2 40.21 9.95Q39.8 10.71 38.99 11.15Q38.19 11.6 37.04 11.71L37.03 11.72Q39.16 11.89 40.24 12.95Q41.33 14.01 41.33 15.78Q41.33 18.14 39.62 19.29Q37.92 20.44 34.76 20.44ZM31.31 17.18H34.51Q35.68 17.18 36.43 16.71Q37.17 16.23 37.17 15.25Q37.17 14.26 36.43 13.77Q35.7 13.27 34.51 13.27H31.31ZM31.31 10.44H33.85Q35.02 10.44 35.74 9.99Q36.46 9.53 36.46 8.64Q36.46 7.68 35.76 7.25Q35.05 6.82 33.85 6.82H31.31Z"/>
|
|
11
|
+
<path class="bar" d="M20.52 0h3.09v24h-3.09z"/>
|
|
12
|
+
</svg>
|
package/logo/paths.d.mts
ADDED
package/logo/paths.mjs
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// The A|B logo as path data, for a page that inlines it (React, satori, a
|
|
2
|
+
// template) instead of loading logo/mark.svg or logo/tile.svg as an image.
|
|
3
|
+
//
|
|
4
|
+
// Inline, the letters take the ink and the bar takes the mark in force:
|
|
5
|
+
//
|
|
6
|
+
// <svg viewBox={MARK.viewBox} role="img" aria-label="Anthony Brignano">
|
|
7
|
+
// <path d={MARK.letters} style="fill: var(--ink)" />
|
|
8
|
+
// <path d={MARK.bar} style="fill: var(--mark-current)" />
|
|
9
|
+
// </svg>
|
|
10
|
+
//
|
|
11
|
+
// The letters are Geist at weight 800 (OFL, fonts/LICENSE-geist.txt),
|
|
12
|
+
// outlined so the logo doesn't wait on the font. DESIGN.md §5, "The logo".
|
|
13
|
+
|
|
14
|
+
/** The mark on its own, 41.33 × 24 with no padding: header, share card, footer. */
|
|
15
|
+
export const MARK = {
|
|
16
|
+
width: 41.33,
|
|
17
|
+
height: 24,
|
|
18
|
+
viewBox: '0 0 41.33 24',
|
|
19
|
+
letters: 'M0 20.44 6.08 3.56H10.87L16.96 20.44H12.71L11.61 17.25H5.33L4.23 20.44ZM6.45 13.96H10.5L8.49 8.03ZM27.17 20.44V3.56H34Q37.18 3.56 38.9 4.67Q40.61 5.77 40.61 8.16Q40.61 9.2 40.21 9.95Q39.8 10.71 38.99 11.15Q38.19 11.6 37.04 11.71L37.03 11.72Q39.16 11.89 40.24 12.95Q41.33 14.01 41.33 15.78Q41.33 18.14 39.62 19.29Q37.92 20.44 34.76 20.44ZM31.31 17.18H34.51Q35.68 17.18 36.43 16.71Q37.17 16.23 37.17 15.25Q37.17 14.26 36.43 13.77Q35.7 13.27 34.51 13.27H31.31ZM31.31 10.44H33.85Q35.02 10.44 35.74 9.99Q36.46 9.53 36.46 8.64Q36.46 7.68 35.76 7.25Q35.05 6.82 33.85 6.82H31.31Z',
|
|
20
|
+
bar: 'M20.52 0h3.09v24h-3.09z',
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** The mark in a 24 × 24 tile with 5.5 corners: favicon and app icon. */
|
|
24
|
+
export const TILE = {
|
|
25
|
+
width: 24,
|
|
26
|
+
height: 24,
|
|
27
|
+
viewBox: '0 0 24 24',
|
|
28
|
+
radius: 5.5,
|
|
29
|
+
letters: 'M3 15.67 5.65 8.33H7.74L10.39 15.67H8.53L8.06 14.29H5.32L4.84 15.67ZM5.81 12.85H7.57L6.7 10.27ZM14.84 15.67V8.33H17.81Q19.2 8.33 19.94 8.81Q20.69 9.29 20.69 10.33Q20.69 10.78 20.51 11.11Q20.33 11.44 19.98 11.63Q19.63 11.82 19.13 11.87L19.13 11.88Q20.05 11.95 20.53 12.41Q21 12.87 21 13.65Q21 14.68 20.26 15.18Q19.51 15.67 18.14 15.67ZM16.64 14.26H18.03Q18.54 14.26 18.86 14.05Q19.19 13.84 19.19 13.41Q19.19 12.98 18.87 12.77Q18.55 12.55 18.03 12.55H16.64ZM16.64 11.32H17.74Q18.25 11.32 18.57 11.12Q18.88 10.93 18.88 10.53Q18.88 10.12 18.57 9.93Q18.27 9.74 17.74 9.74H16.64Z',
|
|
30
|
+
bar: 'M11.94 6.77h1.35v10.45h-1.35z',
|
|
31
|
+
};
|
|
Binary file
|
|
Binary file
|
package/logo/tile.svg
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" role="img" aria-label="Anthony Brignano">
|
|
2
|
+
<!-- The A|B logo in an ink tile: the favicon and app icon. One look in both
|
|
3
|
+
themes, like an app icon: an ink ground (n-900 light), light letters
|
|
4
|
+
(n-900 dark) and the dark-theme mark token, the one tuned for a dark
|
|
5
|
+
ground. Keep in step with tokens.css. -->
|
|
6
|
+
<rect width="24" height="24" rx="5.5" fill="rgb(17 17 20)"/>
|
|
7
|
+
<path d="M3 15.67 5.65 8.33H7.74L10.39 15.67H8.53L8.06 14.29H5.32L4.84 15.67ZM5.81 12.85H7.57L6.7 10.27ZM14.84 15.67V8.33H17.81Q19.2 8.33 19.94 8.81Q20.69 9.29 20.69 10.33Q20.69 10.78 20.51 11.11Q20.33 11.44 19.98 11.63Q19.63 11.82 19.13 11.87L19.13 11.88Q20.05 11.95 20.53 12.41Q21 12.87 21 13.65Q21 14.68 20.26 15.18Q19.51 15.67 18.14 15.67ZM16.64 14.26H18.03Q18.54 14.26 18.86 14.05Q19.19 13.84 19.19 13.41Q19.19 12.98 18.87 12.77Q18.55 12.55 18.03 12.55H16.64ZM16.64 11.32H17.74Q18.25 11.32 18.57 11.12Q18.88 10.93 18.88 10.53Q18.88 10.12 18.57 9.93Q18.27 9.74 17.74 9.74H16.64Z" fill="rgb(242 242 244)"/>
|
|
8
|
+
<path d="M11.94 6.77h1.35v10.45h-1.35z" fill="rgb(224 164 79)"/>
|
|
9
|
+
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brignano/design",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.1",
|
|
4
4
|
"description": "Shared design system for brignano surfaces — colour, type, space, shape, motion.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,12 +21,13 @@
|
|
|
21
21
|
"product-page.css",
|
|
22
22
|
"templates/",
|
|
23
23
|
"icons/",
|
|
24
|
+
"logo/",
|
|
24
25
|
"scripts/fold.mjs",
|
|
25
26
|
"scripts/email-tokens.mjs",
|
|
26
27
|
"scripts/colour.mjs",
|
|
27
28
|
"tailwind.css",
|
|
28
29
|
"DESIGN.md",
|
|
29
|
-
"
|
|
30
|
+
"decisions/"
|
|
30
31
|
],
|
|
31
32
|
"exports": {
|
|
32
33
|
"./tokens.css": "./tokens.css",
|
|
@@ -36,6 +37,7 @@
|
|
|
36
37
|
"./product-page.css": "./product-page.css",
|
|
37
38
|
"./templates/*": "./templates/*",
|
|
38
39
|
"./icons/*": "./icons/*",
|
|
40
|
+
"./logo/*": "./logo/*",
|
|
39
41
|
"./scripts/email-tokens.mjs": "./scripts/email-tokens.mjs"
|
|
40
42
|
},
|
|
41
43
|
"sideEffects": [
|
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 ─────────────────────────────────────────────────────────────
|