@brignano/design 0.15.0 → 0.17.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 +17 -12
- package/README.md +1 -1
- package/components.css +19 -2
- package/controls.css +19 -2
- package/decisions/0022-cursor-blink.md +29 -0
- package/decisions/README.md +1 -0
- package/logo/favicon.svg +14 -0
- package/logo/paths.mjs +4 -1
- package/package.json +1 -1
package/DESIGN.md
CHANGED
|
@@ -219,8 +219,8 @@ No serif. Abstract over literal — no mascots, clip-art, or stock scenery.
|
|
|
219
219
|
stat's value already do.
|
|
220
220
|
- **One heavy moment.** `.display` sets an error code or a single headline
|
|
221
221
|
figure in Geist at `--weight-heavy` (800), tight and large; `.stamp` sets the
|
|
222
|
-
`
|
|
223
|
-
|
|
222
|
+
logo as text, `ab` at the same weight and tight, with the block cursor after
|
|
223
|
+
it in the mark in force, for a footer or an about page. This is the
|
|
224
224
|
display treatment, in both tiers. It is the one use of a weight above 600,
|
|
225
225
|
and at most once a screen. `.rule` is the short bar in the mark in force (`--mark-current`, §3)
|
|
226
226
|
above a hero heading. (`--display` still names Silkscreen on the marketing tier until
|
|
@@ -230,15 +230,15 @@ No serif. Abstract over literal — no mascots, clip-art, or stock scenery.
|
|
|
230
230
|
|
|
231
231
|
The logo is `ab`, the initials in lowercase, drawn once in [`logo/`](./logo):
|
|
232
232
|
Geist at 800, set tight and outlined, with a block cursor after the letters in
|
|
233
|
-
the mark colour, as if they had just been typed.
|
|
234
|
-
the
|
|
235
|
-
word. Redraw it with `scripts/logo.py`, never by hand.
|
|
233
|
+
the mark colour, as if they had just been typed. It replaced `A|B`, whose bar between
|
|
234
|
+
the letters read as a divider. Redraw it with `scripts/logo.py`, never by hand.
|
|
236
235
|
|
|
237
236
|
| File | For |
|
|
238
237
|
|---|---|
|
|
239
238
|
| `logo/paths.mjs` | the path data (`MARK`, `TILE`) to inline it: a site header, a share card |
|
|
240
239
|
| `logo/mark.svg` | the mark as an `<img>`, inked for the OS theme |
|
|
241
|
-
| `logo/
|
|
240
|
+
| `logo/favicon.svg` | the browser-tab icon: the bare mark on a transparent ground, inked for the browser's scheme |
|
|
241
|
+
| `logo/tile.svg` | the app icon: the mark in an ink tile, the same in both themes |
|
|
242
242
|
| `logo/tile-180.png`, `logo/tile-512.png` | `apple-touch-icon` and the web manifest |
|
|
243
243
|
|
|
244
244
|
- **Inline it where the page has tokens.** The letters take `--ink` and the cursor
|
|
@@ -246,11 +246,16 @@ word. Redraw it with `scripts/logo.py`, never by hand.
|
|
|
246
246
|
`<img>` can only follow the OS.
|
|
247
247
|
- **The letters are ink and only the cursor is amber.** Never the whole mark in
|
|
248
248
|
`--mark`, never the letters in a state colour, never a gradient or a shadow.
|
|
249
|
-
- **Size by height.** 24 to 32px in a header
|
|
250
|
-
- **
|
|
251
|
-
|
|
252
|
-
- **The
|
|
253
|
-
|
|
249
|
+
- **Size by height.** 24 to 32px in a header.
|
|
250
|
+
- **No box in a tab.** The tab icon is `favicon.svg`: the bare mark, no ground,
|
|
251
|
+
so it sits on the tab bar the way the header logo sits on the page.
|
|
252
|
+
- **The tile is for icons only:** home screen, an app's sign-in, and the
|
|
253
|
+
`favicon.ico` fallback for a browser without SVG icons. On a page, use the
|
|
254
|
+
bare mark.
|
|
255
|
+
- **The cursor blinks three times when the page loads, then rests solid**
|
|
256
|
+
(ADR-0022): `.cursor-blink` on the inlined `bar` path, or on a `.stamp`. It
|
|
257
|
+
never blinks on hover, scroll or forever, never under
|
|
258
|
+
`prefers-reduced-motion`, and the tab icon doesn't blink at all.
|
|
254
259
|
|
|
255
260
|
Sizes change with the tier (`--text-xs` … `--text-4xl`); weight, leading and
|
|
256
261
|
tracking don't:
|
|
@@ -264,7 +269,7 @@ tracking don't:
|
|
|
264
269
|
| `--leading-ui` | 1.4 | interface text |
|
|
265
270
|
| `--leading-body` | 1.6 | paragraphs |
|
|
266
271
|
| `--tracking-title` / `--tracking-display` | -0.01em / -0.025em | headings / large display headings |
|
|
267
|
-
| `--tracking-caps` | 0.08em | uppercase mono eyebrows
|
|
272
|
+
| `--tracking-caps` | 0.08em | uppercase mono eyebrows |
|
|
268
273
|
|
|
269
274
|
They are named by role because Tailwind already owns `--leading-tight`,
|
|
270
275
|
`--tracking-tight` and the rest; the bridge adds `leading-display`,
|
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@ The shared design system for every brignano surface — `brignano.io`, `life`,
|
|
|
15
15
|
| [`product-page.css`](./product-page.css) | The structure of a product's marketing page, built from a five-line brief: thesis and proof on the first phone screen, one signature band, how it works, closing ask. The shared parts every page needs, and a starting point for the look each product writes over it: its mark fills the primary button, and five choices keep any two products from looking alike (ADR-0017). DESIGN.md §13; skeleton in `previews/product-page.html`, one worked example per product in `previews/product-page-example.html` (Driftwood), `product-page-guidebook.html` and `product-page-sites.html`, first-screen check in `scripts/fold.mjs`. |
|
|
16
16
|
| [`templates/`](./templates) | Page templates built on `components.css`: `article.css` (posts and docs), `changelog.css`, `legal.css`, `error.css` (404, 500, offline), `settings.css`, and a transactional email (`email.html` + `email.txt`, filled from the tokens by `scripts/email-tokens.mjs`). Import as `@brignano/design/templates/<name>.css`. |
|
|
17
17
|
| [`icons/`](./icons) | One curated outline icon set (Lucide, ISC; `icons/LICENSE`) on a 24px grid in `currentColor`. Size with `.icon-sm`, `.icon`, `.icon-lg` from `components.css`; browse and copy in `previews/icons.html`. Paste the markup inline (`@brignano/design/icons/<name>.svg`); through `<img>` an icon can't take the text colour. |
|
|
18
|
-
| [`logo/`](./logo) | The `ab` logo: `paths.mjs` to inline it (letters in `--ink`, cursor in `--mark-current`), `mark.svg` for an `<img>`, `tile.svg` and the tile PNGs for
|
|
18
|
+
| [`logo/`](./logo) | The `ab` logo: `paths.mjs` to inline it (letters in `--ink`, cursor in `--mark-current`), `mark.svg` for an `<img>`, `favicon.svg` for a browser tab (no box), `tile.svg` and the tile PNGs for an app icon. Rules in DESIGN.md §5, "The logo". |
|
|
19
19
|
| [`previews/`](./previews) | Live swatches. Open one in a browser to see the tokens render. |
|
|
20
20
|
|
|
21
21
|
## The shape of it
|
package/components.css
CHANGED
|
@@ -2233,7 +2233,7 @@
|
|
|
2233
2233
|
<h1>Services</h1>
|
|
2234
2234
|
Deployed <span class="num">2026-11-07 09:30</span> ← any number, date or code
|
|
2235
2235
|
<p class="display">404</p> ← one heavy moment, at most
|
|
2236
|
-
<span class="stamp" role="img" aria-label="Anthony Brignano">
|
|
2236
|
+
<span class="stamp" role="img" aria-label="Anthony Brignano">ab</span>
|
|
2237
2237
|
<span class="rule"></span> ← the bar above a hero heading
|
|
2238
2238
|
|
|
2239
2239
|
The eyebrow is written in sentence case and uppercased here. .rule is the
|
|
@@ -2263,10 +2263,27 @@
|
|
|
2263
2263
|
.stamp {
|
|
2264
2264
|
font-family: var(--sans);
|
|
2265
2265
|
font-weight: var(--weight-heavy);
|
|
2266
|
-
letter-spacing:
|
|
2266
|
+
letter-spacing: -0.065em; /* tight, as in the logo (ADR-0021) */
|
|
2267
2267
|
white-space: nowrap;
|
|
2268
2268
|
color: var(--ink);
|
|
2269
2269
|
}
|
|
2270
|
+
/* The logo's block cursor: as tall as the a, in the mark in force. */
|
|
2271
|
+
.stamp::after {
|
|
2272
|
+
content: "";
|
|
2273
|
+
display: inline-block;
|
|
2274
|
+
width: 0.34em;
|
|
2275
|
+
height: 0.55em;
|
|
2276
|
+
margin-left: 0.155em; /* 0.09em of gap plus the tracking taken back */
|
|
2277
|
+
background: var(--mark-current);
|
|
2278
|
+
}
|
|
2279
|
+
/* The cursor blinks three times on load at a text cursor's pace, then rests
|
|
2280
|
+
solid (ADR-0022). Put .cursor-blink on the inlined logo's cursor path, or
|
|
2281
|
+
on a .stamp. Opacity only, and none under reduced motion. */
|
|
2282
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
2283
|
+
.cursor-blink:not(.stamp),
|
|
2284
|
+
.stamp.cursor-blink::after { animation: cursor-blink 1.06s steps(1, end) 3; }
|
|
2285
|
+
}
|
|
2286
|
+
@keyframes cursor-blink { 50% { opacity: 0; } }
|
|
2270
2287
|
.rule { display: block; width: 56px; height: 3px; border: 0; border-radius: 2px; background: var(--mark-current); }
|
|
2271
2288
|
}
|
|
2272
2289
|
|
package/controls.css
CHANGED
|
@@ -2176,7 +2176,7 @@
|
|
|
2176
2176
|
<h1>Services</h1>
|
|
2177
2177
|
Deployed <span class="num">2026-11-07 09:30</span> ← any number, date or code
|
|
2178
2178
|
<p class="display">404</p> ← one heavy moment, at most
|
|
2179
|
-
<span class="stamp" role="img" aria-label="Anthony Brignano">
|
|
2179
|
+
<span class="stamp" role="img" aria-label="Anthony Brignano">ab</span>
|
|
2180
2180
|
<span class="rule"></span> ← the bar above a hero heading
|
|
2181
2181
|
|
|
2182
2182
|
The eyebrow is written in sentence case and uppercased here. .rule is the
|
|
@@ -2206,10 +2206,27 @@
|
|
|
2206
2206
|
.stamp {
|
|
2207
2207
|
font-family: var(--sans);
|
|
2208
2208
|
font-weight: var(--weight-heavy);
|
|
2209
|
-
letter-spacing:
|
|
2209
|
+
letter-spacing: -0.065em; /* tight, as in the logo (ADR-0021) */
|
|
2210
2210
|
white-space: nowrap;
|
|
2211
2211
|
color: var(--ink);
|
|
2212
2212
|
}
|
|
2213
|
+
/* The logo's block cursor: as tall as the a, in the mark in force. */
|
|
2214
|
+
.stamp::after {
|
|
2215
|
+
content: "";
|
|
2216
|
+
display: inline-block;
|
|
2217
|
+
width: 0.34em;
|
|
2218
|
+
height: 0.55em;
|
|
2219
|
+
margin-left: 0.155em; /* 0.09em of gap plus the tracking taken back */
|
|
2220
|
+
background: var(--mark-current);
|
|
2221
|
+
}
|
|
2222
|
+
/* The cursor blinks three times on load at a text cursor's pace, then rests
|
|
2223
|
+
solid (ADR-0022). Put .cursor-blink on the inlined logo's cursor path, or
|
|
2224
|
+
on a .stamp. Opacity only, and none under reduced motion. */
|
|
2225
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
2226
|
+
.cursor-blink:not(.stamp),
|
|
2227
|
+
.stamp.cursor-blink::after { animation: cursor-blink 1.06s steps(1, end) 3; }
|
|
2228
|
+
}
|
|
2229
|
+
@keyframes cursor-blink { 50% { opacity: 0; } }
|
|
2213
2230
|
.rule { display: block; width: 56px; height: 3px; border: 0; border-radius: 2px; background: var(--mark-current); }
|
|
2214
2231
|
}
|
|
2215
2232
|
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# ADR-0022 — The logo's cursor blinks three times on load
|
|
2
|
+
|
|
3
|
+
**Status:** accepted · 2026-11-23 · #202
|
|
4
|
+
**Supersedes in part:** "at most one blink on a page's first load" in DESIGN.md §5
|
|
5
|
+
|
|
6
|
+
## Context
|
|
7
|
+
|
|
8
|
+
The `ab` logo (ADR-0021) ends in a block cursor. Anthony expected it to blink
|
|
9
|
+
in a site's header, the way a text cursor does. §5 allowed at most one blink,
|
|
10
|
+
which reads as a flicker more than a cursor. A cursor that blinks forever
|
|
11
|
+
would pull the eye on every page.
|
|
12
|
+
|
|
13
|
+
## Decision
|
|
14
|
+
|
|
15
|
+
The cursor blinks three times when the page loads, at a text cursor's pace
|
|
16
|
+
(530ms on, 530ms off), then rests solid. `.cursor-blink` in `components.css`
|
|
17
|
+
does it: on the inlined logo's `bar` path, or on a `.stamp` for the stamp's
|
|
18
|
+
cursor. Only opacity moves, the resting state is the visible one (so a browser
|
|
19
|
+
that skips the animation shows a solid cursor), and nothing runs under
|
|
20
|
+
`prefers-reduced-motion`. The tab icon doesn't blink: browsers don't reliably
|
|
21
|
+
animate one, and a moving tab icon reads as a notification.
|
|
22
|
+
|
|
23
|
+
## Consequences
|
|
24
|
+
|
|
25
|
+
- This is the one piece of motion on load the system allows. It is the logo,
|
|
26
|
+
not content: nothing appears or disappears because of it.
|
|
27
|
+
- A site that keeps its header across client-side navigation blinks once per
|
|
28
|
+
full page load, not on every route change.
|
|
29
|
+
- The caret after a page's H1 (#189) can take the same class and count.
|
package/decisions/README.md
CHANGED
|
@@ -29,3 +29,4 @@ record is only edited to mark it superseded; a change of mind is a new record.
|
|
|
29
29
|
| [0019](0019-house-theme-shell.md) | One house look, with a theme and a shell per product | 2026-11-22 |
|
|
30
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 |
|
|
31
31
|
| [0021](0021-ab-logo.md) | The logo is `ab` with a cursor after it | 2026-11-23 |
|
|
32
|
+
| [0022](0022-cursor-blink.md) | The logo's cursor blinks three times on load | 2026-11-23 |
|
package/logo/favicon.svg
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
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 bare logo as a browser-tab icon: no tile, a transparent ground, so
|
|
3
|
+
it sits on the tab bar like the header logo sits on the page. Inked for
|
|
4
|
+
the browser's colour scheme (dark letters on a light tab bar, light on a
|
|
5
|
+
dark one), repeating the ink and mark tokens; keep them in step. -->
|
|
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
|
+
<g transform="translate(0.5 6.65) scale(0.4457)">
|
|
11
|
+
<path class="ab" d="M6.38 24Q3.57 24 1.79 22.71Q0 21.42 0 19.11Q0 16.74 1.53 15.46Q3.06 14.17 5.98 13.56L11.53 12.43Q11.53 10.86 10.85 10.06Q10.16 9.25 8.89 9.25Q7.62 9.25 6.91 9.86Q6.21 10.46 6 11.61L0.3 11.41Q0.82 8.3 3.04 6.81Q5.26 5.32 8.89 5.32Q13.08 5.32 15.16 7.22Q17.25 9.11 17.25 12.87V18.53Q17.25 19.34 17.52 19.6Q17.79 19.86 18.29 19.86H18.72V23.6Q18.46 23.69 17.86 23.76Q17.27 23.83 16.7 23.83Q15.69 23.83 14.72 23.48Q13.74 23.14 13.12 22.22Q12.49 21.3 12.49 19.57L12.93 20.01Q12.59 21.22 11.75 22.12Q10.9 23.02 9.56 23.51Q8.22 24 6.38 24ZM7.86 20.26Q8.94 20.26 9.76 19.83Q10.58 19.41 11.06 18.57Q11.53 17.74 11.53 16.51V15.78L8.05 16.58Q7.03 16.81 6.45 17.3Q5.88 17.8 5.88 18.58Q5.88 19.38 6.37 19.82Q6.87 20.26 7.86 20.26ZM29.94 24Q28.06 24 26.71 23.21Q25.36 22.42 24.59 21L24.49 23.6H18.96V0H24.68V8.28Q25.42 6.97 26.77 6.15Q28.11 5.32 29.94 5.32Q32.18 5.32 33.84 6.48Q35.49 7.63 36.4 9.73Q37.3 11.83 37.3 14.66Q37.3 17.48 36.4 19.59Q35.49 21.69 33.84 22.84Q32.18 24 29.94 24ZM28.15 19.77Q29.6 19.77 30.52 18.44Q31.43 17.1 31.43 14.66Q31.43 12.21 30.54 10.88Q29.66 9.55 28.16 9.55Q27.06 9.55 26.27 10.14Q25.48 10.74 25.08 11.88Q24.68 13.02 24.68 14.66Q24.68 16.25 25.08 17.4Q25.48 18.55 26.27 19.16Q27.06 19.77 28.15 19.77Z"/>
|
|
12
|
+
<path class="bar" d="M40.29 5.32h11.3v18.28h-11.3z"/>
|
|
13
|
+
</g>
|
|
14
|
+
</svg>
|
package/logo/paths.mjs
CHANGED
|
@@ -5,9 +5,12 @@
|
|
|
5
5
|
//
|
|
6
6
|
// <svg viewBox={MARK.viewBox} role="img" aria-label="Anthony Brignano">
|
|
7
7
|
// <path d={MARK.letters} style="fill: var(--ink)" />
|
|
8
|
-
// <path d={MARK.bar} style="fill: var(--mark-current)" />
|
|
8
|
+
// <path d={MARK.bar} className="cursor-blink" style="fill: var(--mark-current)" />
|
|
9
9
|
// </svg>
|
|
10
10
|
//
|
|
11
|
+
// `cursor-blink` (components.css) blinks the cursor three times on load, then
|
|
12
|
+
// leaves it solid; it stays still under reduced motion (ADR-0022).
|
|
13
|
+
//
|
|
11
14
|
// The logo is "ab" in lowercase Geist at weight 800 (OFL,
|
|
12
15
|
// fonts/LICENSE-geist.txt), set tight, with a block cursor after it. The
|
|
13
16
|
// letters are outlined so the logo doesn't wait on the font. `bar` is the
|