@brignano/design 0.7.0 → 0.9.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/DECISIONS.md +199 -0
- package/DESIGN.md +337 -13
- package/README.md +5 -1
- package/components.css +2248 -0
- package/icons/LICENSE +43 -0
- package/icons/arrow-down.svg +15 -0
- package/icons/arrow-left.svg +15 -0
- package/icons/arrow-right.svg +15 -0
- package/icons/arrow-up-down.svg +17 -0
- package/icons/arrow-up.svg +15 -0
- package/icons/bell.svg +15 -0
- package/icons/calendar.svg +17 -0
- package/icons/check.svg +14 -0
- package/icons/chevron-down.svg +14 -0
- package/icons/chevron-left.svg +14 -0
- package/icons/chevron-right.svg +14 -0
- package/icons/chevron-up.svg +14 -0
- package/icons/circle-check.svg +15 -0
- package/icons/circle-help.svg +16 -0
- package/icons/circle-x.svg +16 -0
- package/icons/clock.svg +15 -0
- package/icons/copy.svg +15 -0
- package/icons/download.svg +16 -0
- package/icons/ellipsis-vertical.svg +16 -0
- package/icons/ellipsis.svg +16 -0
- package/icons/external-link.svg +16 -0
- package/icons/eye-off.svg +17 -0
- package/icons/eye.svg +15 -0
- package/icons/funnel.svg +14 -0
- package/icons/house.svg +15 -0
- package/icons/info.svg +16 -0
- package/icons/link.svg +15 -0
- package/icons/lock.svg +15 -0
- package/icons/log-out.svg +16 -0
- package/icons/map-pin.svg +15 -0
- package/icons/menu.svg +16 -0
- package/icons/minus.svg +14 -0
- package/icons/monitor.svg +16 -0
- package/icons/moon.svg +14 -0
- package/icons/pencil.svg +15 -0
- package/icons/plus.svg +15 -0
- package/icons/refresh-cw.svg +17 -0
- package/icons/search.svg +15 -0
- package/icons/settings.svg +15 -0
- package/icons/sun.svg +22 -0
- package/icons/trash-2.svg +18 -0
- package/icons/triangle-alert.svg +16 -0
- package/icons/undo-2.svg +15 -0
- package/icons/upload.svg +16 -0
- package/icons/user.svg +15 -0
- package/icons/x.svg +15 -0
- package/package.json +11 -2
- package/product-page.css +31 -28
- package/scripts/colour.mjs +41 -0
- package/scripts/email-tokens.mjs +58 -0
- package/tailwind.css +28 -0
- package/templates/app-shell.css +346 -0
- package/templates/article.css +167 -0
- package/templates/changelog.css +53 -0
- package/templates/email.html +61 -0
- package/templates/email.txt +10 -0
- package/templates/error.css +81 -0
- package/templates/legal.css +65 -0
- package/templates/settings.css +95 -0
- package/tokens.css +140 -14
package/README.md
CHANGED
|
@@ -9,14 +9,17 @@ The shared design system for every brignano surface — `brignano.io`, `life`,
|
|
|
9
9
|
| [`DECISIONS.md`](./DECISIONS.md) | Why the values are what they are. ADRs. |
|
|
10
10
|
| [`tokens.css`](./tokens.css) | Single source of truth for colour, type, space, shape, motion. |
|
|
11
11
|
| [`tokens.chart.css`](./tokens.chart.css) | Validated categorical palette for data viz. |
|
|
12
|
+
| [`components.css`](./components.css) | Shared controls and patterns as plain CSS in `@layer brignano.components`: one import, any framework. DESIGN.md §14; catalog in `proposals/component-layer.md`; preview in `previews/components.html`. |
|
|
12
13
|
| [`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; a product mark, hero layout and proof frame so each product looks like itself. DESIGN.md §13; skeleton in `previews/product-page.html`, worked example in `previews/product-page-example.html`, first-screen check in `scripts/fold.mjs`. |
|
|
14
|
+
| [`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`. |
|
|
15
|
+
| [`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. |
|
|
13
16
|
| [`previews/`](./previews) | Live swatches. Open one in a browser to see the tokens render. |
|
|
14
17
|
|
|
15
18
|
## The shape of it
|
|
16
19
|
|
|
17
20
|
Three layers, so no colour does two jobs:
|
|
18
21
|
|
|
19
|
-
- **`--mark`** — identity. Larch amber. Inks the
|
|
22
|
+
- **`--mark`** — identity. Larch amber. Inks a product's glyph, the monogram and a hero rule. Never a control.
|
|
20
23
|
- **`--i-*`** — affordance. Cobalt. Links, buttons, focus, selection. Semantically inert.
|
|
21
24
|
- **`--success / --attention / --danger`** — state. Conventional hues, always with an icon and a word.
|
|
22
25
|
|
|
@@ -30,6 +33,7 @@ npm install @brignano/design
|
|
|
30
33
|
|
|
31
34
|
```css
|
|
32
35
|
@import '@brignano/design/tokens.css';
|
|
36
|
+
@import '@brignano/design/components.css'; /* buttons, fields, messages… */
|
|
33
37
|
@import '@brignano/design/tokens.chart.css'; /* only if the surface has charts */
|
|
34
38
|
```
|
|
35
39
|
|