@brignano/design 0.16.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 CHANGED
@@ -252,8 +252,10 @@ the letters read as a divider. Redraw it with `scripts/logo.py`, never by hand.
252
252
  - **The tile is for icons only:** home screen, an app's sign-in, and the
253
253
  `favicon.ico` fallback for a browser without SVG icons. On a page, use the
254
254
  bare mark.
255
- - **The cursor doesn't move,** except at most one blink on a page's first load,
256
- and none under `prefers-reduced-motion`.
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.
257
259
 
258
260
  Sizes change with the tier (`--text-xs` … `--text-4xl`); weight, leading and
259
261
  tracking don't:
package/components.css CHANGED
@@ -2276,6 +2276,14 @@
2276
2276
  margin-left: 0.155em; /* 0.09em of gap plus the tracking taken back */
2277
2277
  background: var(--mark-current);
2278
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; } }
2279
2287
  .rule { display: block; width: 56px; height: 3px; border: 0; border-radius: 2px; background: var(--mark-current); }
2280
2288
  }
2281
2289
 
package/controls.css CHANGED
@@ -2219,6 +2219,14 @@
2219
2219
  margin-left: 0.155em; /* 0.09em of gap plus the tracking taken back */
2220
2220
  background: var(--mark-current);
2221
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; } }
2222
2230
  .rule { display: block; width: 56px; height: 3px; border: 0; border-radius: 2px; background: var(--mark-current); }
2223
2231
  }
2224
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.
@@ -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/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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brignano/design",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Shared design system for brignano surfaces — colour, type, space, shape, motion.",
5
5
  "license": "MIT",
6
6
  "repository": {