@brignano/design 0.15.0 → 0.16.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 +13 -10
- package/README.md +1 -1
- package/components.css +11 -2
- package/controls.css +11 -2
- package/logo/favicon.svg +14 -0
- 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,9 +246,12 @@ 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
|
-
|
|
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.
|
|
252
255
|
- **The cursor doesn't move,** except at most one blink on a page's first load,
|
|
253
256
|
and none under `prefers-reduced-motion`.
|
|
254
257
|
|
|
@@ -264,7 +267,7 @@ tracking don't:
|
|
|
264
267
|
| `--leading-ui` | 1.4 | interface text |
|
|
265
268
|
| `--leading-body` | 1.6 | paragraphs |
|
|
266
269
|
| `--tracking-title` / `--tracking-display` | -0.01em / -0.025em | headings / large display headings |
|
|
267
|
-
| `--tracking-caps` | 0.08em | uppercase mono eyebrows
|
|
270
|
+
| `--tracking-caps` | 0.08em | uppercase mono eyebrows |
|
|
268
271
|
|
|
269
272
|
They are named by role because Tailwind already owns `--leading-tight`,
|
|
270
273
|
`--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,19 @@
|
|
|
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
|
+
}
|
|
2270
2279
|
.rule { display: block; width: 56px; height: 3px; border: 0; border-radius: 2px; background: var(--mark-current); }
|
|
2271
2280
|
}
|
|
2272
2281
|
|
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,19 @@
|
|
|
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
|
+
}
|
|
2213
2222
|
.rule { display: block; width: 56px; height: 3px; border: 0; border-radius: 2px; background: var(--mark-current); }
|
|
2214
2223
|
}
|
|
2215
2224
|
|
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>
|