@brunosouzas/design-system 0.7.0 → 0.8.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/README.md CHANGED
@@ -25,7 +25,7 @@ The visual identity of [brunosouzas.com](https://brunosouzas.com): design tokens
25
25
 
26
26
  ## Status
27
27
 
28
- Early. The first change of the [roadmap](docs/roadmap.md) is implemented: the token source and its CSS, TypeScript and JSON exports, the motion components, and the circuit-breaker state machine as the first catalogue scene (16:9 and 4:5, Portuguese and English), with commands to render its stills and videos. The first variety scene, `publish-subscribe`, is implemented with independent message copies, Publish acceptance, two ACKs and a local invoice NACK. Its owner stills/video approval is pending; implementation is not visual approval. The illustration pieces (roadmap item 3), the metro and diagram pieces (item 6) stackledger's map markers, zones and icons (AB#167, 0.3.0) and the body diagram pieces (AB#141, 0.3.2) are implemented: the static drawing library that covers, banners, diagrams and scenes share, with a command that builds a blog cover from a JSON spec. The published covers are not ported to it yet (item 5). Mira, the four pillar characters, the bank objects and the emotes are pieces too ([ADR 0007](docs/adr/0007-mira-and-the-pillar-cast.md)); new videos are language-neutral by default ([ADR 0005](docs/adr/0005-neutral-videos-and-the-cast.md)). Since 0.7.0 every piece follows one grammar ([ADR 0009](docs/adr/0009-one-piece-grammar.md)) and every written SVG carries its Source faces ([ADR 0008](docs/adr/0008-type-inside-the-image.md)); see [Upgrading to 0.7.0](#upgrading-to-070).
28
+ Early. The first change of the [roadmap](docs/roadmap.md) is implemented: the token source and its CSS, TypeScript and JSON exports, the motion components, and the circuit-breaker state machine as the first catalogue scene (16:9 and 4:5, Portuguese and English), with commands to render its stills and videos. The first variety scene, `publish-subscribe`, is implemented with independent message copies, Publish acceptance, two ACKs and a local invoice NACK. Its owner stills/video approval is pending; implementation is not visual approval. The illustration pieces (roadmap item 3), the metro and diagram pieces (item 6) stackledger's map markers, zones and icons (AB#167, 0.3.0) and the body diagram pieces (AB#141, 0.3.2) are implemented: the static drawing library that covers, banners, diagrams and scenes share, with a command that builds a blog cover from a JSON spec. The published covers are not ported to it yet (item 5). Mira, the four pillar characters, the bank objects and the emotes are pieces too ([ADR 0007](docs/adr/0007-mira-and-the-pillar-cast.md)); new videos are language-neutral by default ([ADR 0005](docs/adr/0005-neutral-videos-and-the-cast.md)). Since 0.7.0 every piece follows one grammar ([ADR 0009](docs/adr/0009-one-piece-grammar.md)) and every written SVG carries its Source faces ([ADR 0008](docs/adr/0008-type-inside-the-image.md)); see [Upgrading to 0.7.0](#upgrading-to-070). 0.8.0 maps the site palette onto the brand roles and adds the category badges; see [Upgrading to 0.8.0](#upgrading-to-080). 0.8.1 adds stackledger's accent, retunes the city backdrop to the v2 neutrals and redraws `ledgerMark` as a white page; see [Upgrading to 0.8.1](#upgrading-to-081).
29
29
 
30
30
  ## What it is
31
31
 
@@ -148,7 +148,7 @@ The components take every colour and size from the tokens, and what is visible a
148
148
 
149
149
  ### Maps and diagrams
150
150
 
151
- Thirteen pieces draw a metro map and its page diagrams, for [stackledger](https://github.com/brunosouzas/stackledger) and any other map in this style: `lineBadge`, `stationMarker` (stop, interchange as a capsule, deprecated), `pipe`, `countBadge`, `nodeBlock`, `pillNode`, `hexNode` (normal, focus, placeholder), `messageArrow` (curved, straight or through two `controls` points, with a head and an optional label; `kind` `reply`, `failure` or `failFast` dashes it and paints it as ADR 0003 says; `heads: "start"` or `"both"` puts heads at `from`, `dashed` overrides the kind's dash), `ledgerMark` (stackledger's mark; on `surface: "dark"` a muted band lines its ink square), `renewalRing` (orange bands round a station), `suggestedHalo` (a dashed muted circle), `licenceMark` (a 10-unit disc, green when held, white to buy) and `zone` (the outline the caller gives, widened by a round 32-unit stroke at the surface's zone opacity, with an optional title). They paint what the caller lays out: positions, hulls, text measurement and truncation stay with the map engine.
151
+ Thirteen pieces draw a metro map and its page diagrams, for [stackledger](https://github.com/brunosouzas/stackledger) and any other map in this style: `lineBadge`, `stationMarker` (stop, interchange as a capsule, deprecated), `pipe`, `countBadge`, `nodeBlock`, `pillNode`, `hexNode` (normal, focus, placeholder), `messageArrow` (curved, straight or through two `controls` points, with a head and an optional label; `kind` `reply`, `failure` or `failFast` dashes it and paints it as ADR 0003 says; `heads: "start"` or `"both"` puts heads at `from`, `dashed` overrides the kind's dash), `ledgerMark` (stackledger's mark: a white page with one outline, ink on light and `surface.dark.muted` on `surface: "dark"`, with the bent line and two stations), `renewalRing` (orange bands round a station), `suggestedHalo` (a dashed muted circle), `licenceMark` (a 10-unit disc, green when held, white to buy) and `zone` (the outline the caller gives, widened by a round 32-unit stroke at the surface's zone opacity, with an optional title). They paint what the caller lays out: positions, hulls, text measurement and truncation stay with the map engine.
152
152
 
153
153
  - A `placeholder` node may have a `subtitle` (drawn like a normal node's, all muted), and `lineBadge` may have no `text` (the pill alone, 30 wide by default).
154
154
  - The licence's disc is small, so it has its own room rule: `size` at least three outlines (9 at ink scale 1).
@@ -158,7 +158,7 @@ Thirteen pieces draw a metro map and its page diagrams, for [stackledger](https:
158
158
  - `countBadge` takes `textSize` (6 to 48, default 11): without `height`, the height, width and baseline grow with it.
159
159
  - A line's colour comes from the map's data, so `pipe.fill`, `lineBadge.fill` and `zone.fill` also accept `#RRGGBB`. Every other colour is a token path, and a cover spec rejects any hex.
160
160
  - `map.bendRadius` (32) is the radius of a bundle's centre line at a 45° or 90° bend; no piece reads it, the map engine draws the arcs (`pipe.d` takes `A`).
161
- - The `map.*` tokens hold the measures (outline 3, shadow 0, line 12, casing 6, badge 20, node 46, ring 3, halo 1.5, licence 10, zone padding 32, bend radius 32…), `surface.*.zoneOpacity` the zone's opacity (0.12, dark 0.22), `surface.*.backdropWater`, `backdropWaterEdge`, `backdropPark` and `backdropCredit` the colours of a city backdrop behind a map and its OpenStreetMap credit (no piece draws it; stackledger does), and `site.*` the page palette, fonts and type scale of brunosouzas.com in light and dark.
161
+ - The `map.*` tokens hold the measures (outline 3, shadow 0, line 12, casing 6, badge 20, node 46, ring 3, halo 1.5, licence 10, zone padding 32, bend radius 32…), `surface.*.zoneOpacity` the zone's opacity (0.12, dark 0.22), `surface.*.backdropWater`, `backdropWaterEdge`, `backdropPark` and `backdropCredit` the colours of a city backdrop behind a map and its OpenStreetMap credit (no piece draws it; stackledger does): since 0.8.1 the v2 neutrals, water `#C7DAEA` / `#1C2733`, its edge `#A9C4DA` / `#2A3846`, parks `#D6E4CF` / `#1A241D`, and the credit the muted text role, `brand.<theme>.textMuted` (`#5C5852` / `#ADA79D`), checked equal by a test. `site.*` holds the page palette, fonts and type scale of brunosouzas.com in light and dark. Since 0.8.0 each `site` colour is the brand role it stands for (ADR 0006, amended): `primary`, `dark`, `text` and `textDark` are `brand.<theme>.text`, `body` is `bg`, `light` is `cardBg`, `border` is `border`, `textLight` is `textMuted` and `link` is `accentText`; `site.font` names Source Sans 3 (`primary`), Source Serif 4 (`secondary`) and Source Code Pro (`mono`). Against body text a link is 3.25:1 in light and 2.23:1 in dark, so a page keeps its link underline: colour alone does not mark a link (WCAG 1.4.1). `brand.<theme>.stackledgerAccent` (`#3B5BDB` / `#7D8CFF`, `--ds-brand-<theme>-stackledger-accent`) is stackledger's product accent, at least 4.5:1 on `site.<theme>.body` and `site.<theme>.light` (ADR 0006, amended 2026-11-07); no piece draws it by default, a spec names it where the product's line is meant (`pipe` `fill: "brand.light.stackledgerAccent"`).
162
162
 
163
163
  ```ts
164
164
  import { lineBadge, pipe, stationMarker, toSvg } from "@brunosouzas/design-system";
@@ -272,7 +272,7 @@ npx --yes --package @brunosouzas/design-system@<version> brunosouzas-cover desig
272
272
  ```
273
273
 
274
274
  - `"format": "diagram"` takes a `height` in layout units (1 to 10000) and no `background`: the spec is laid out 560 wide and written 800 wide, on the `color.panel` panel with rounded corners (`bodyDiagram.radius`, 14 at 800) and rings in `color.ring` that show at step 28 and width 2, out to the farthest corner. Pieces get the map outline (3) and label size (13), which show at 4.3 and 18.6. `test/fixtures/covers/circuit-breaker-states.json` is the circuit breaker article's state diagram.
275
- - `"format": "icon"` holds one `eipIcon`, `uiIcon` or `linkIcon` at 0,0 and writes it in a box of its own size (64x40 for an EIP icon). An EIP icon takes its title and description, with the CC BY 4.0 credit, from the icon's data, so its spec has neither; a UI or link icon spec needs both. No `background`, `rings`, `custom` or `signature`.
275
+ - `"format": "icon"` holds one `eipIcon`, `uiIcon`, `linkIcon` or `categoryIcon` at 0,0 and writes it in a box of its own size (64x40 for an EIP icon, 42 × `scale` for a category badge). An EIP icon takes its title and description, with the CC BY 4.0 credit, from the icon's data, so its spec has neither; a UI, link or category icon spec needs both. No `background`, `rings`, `custom` or `signature`.
276
276
  - **Text tables.** `"text": { "pt": { "open": ["taxa de falha", "> limite"] }, "en": { ... } }` holds one table per language with the same keys; any string `"@open"` elsewhere in the spec (pieces, `title`, `description`, even `id`) is replaced by that key's value for the language passed with `--lang <code>`. Every language must define every key, and the ids in the output gain the language (`<id>-pt`). Without `text`, strings are drawn as written, so `"@home"` stays a label.
277
277
  - Like a cover, a diagram or icon is a standalone image: `uiIcon` `colour: "currentColor"` is refused in every format.
278
278
 
@@ -284,7 +284,8 @@ Add it to `src/pieces/library.ts` (or `src/pieces/metro.ts` for a map or diagram
284
284
 
285
285
  - `uiIcon({ name, x, y, size, colour })` draws one of seven glyphs of the sites' chrome in a 24-unit box and one token colour: `sun`, `moon`, `zoomIn`, `zoomOut`, `reset`, `calendar`, `download` (data in `UI_ICONS`). `colour: "currentColor"` makes the icon follow its element's text colour (a button that inverts on hover, say); it only works when the SVG is inline in the page, since an `<img>` does not inherit the page's colour, and a cover spec refuses it.
286
286
  - `linkIcon({ icon, x, y, size, surface })` draws a link sticker in a 46-unit box, a white face with its outline and no frame (on dark the outline takes `surface.dark.muted`): `github`, `linkedin`, `email`, `website` (data in `LINK_ICONS`). The GitHub mark is from [Font Awesome](https://fontawesome.com/), licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
287
- - Neither holds a link, a style, a script or a URL, so a consumer can write one with `toSvg` inside its own `<svg xmlns=…>` and ship it as a static file.
287
+ - `categoryIcon({ category, x, y, scale })` draws the site's category badge in a 42-unit box: a disc in the default tone of the category's track (`coverBackground.<track>.fill`, ringed in its `.ring`) with a glyph on it, the same on light and dark pages. `integration` (`trackIntegration`, the notation's `pointToPointChannel`), `delivery` (`trackDelivery`, `gateToProduction`), `aiEngineering` (`trackAi`, `contextWindow`), `personalTools` (`trackPersonal`, its own wrench and screwdriver); names in `CATEGORY_ICON_NAMES`. At `scale` 4 it is the 168-pixel badge the site shows.
288
+ - None holds a link, a style, a script or a URL, so a consumer can write one with `toSvg` inside its own `<svg xmlns=…>` and ship it as a static file.
288
289
 
289
290
  ```ts
290
291
  import { el, linkIcon, toSvg } from "@brunosouzas/design-system";
@@ -295,6 +296,30 @@ const github = toSvg(el("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "
295
296
 
296
297
  `src/pieces/eip-icons.ts` holds the 26 Enterprise Integration Patterns icons as data. They are redrawn from the icons by Gregor Hohpe and Bobby Woolf ([enterpriseintegrationpatterns.com](https://www.enterpriseintegrationpatterns.com/)), licensed [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/); each icon keeps that credit in its description.
297
298
 
299
+ ## Upgrading to 0.8.1
300
+
301
+ 0.8.1 (card 303) adds stackledger's product layer. Nothing is removed or renamed; images and pages that use the backdrop tokens or `ledgerMark` change appearance on rebuild.
302
+
303
+ | Changed | Before | Now |
304
+ |---|---|---|
305
+ | `brand.light.stackledgerAccent`, `brand.dark.stackledgerAccent` (`--ds-brand-<theme>-stackledger-accent`) | absent | `#3B5BDB`, `#7D8CFF`; a check of the exact list of brand roles must add it |
306
+ | `surface.light.backdropWater`, `backdropWaterEdge`, `backdropPark`, `backdropCredit` | `#C9D8FF`, `#B5C7F5`, `#D4F2DF`, `#5A6385` | `#C7DAEA`, `#A9C4DA`, `#D6E4CF`, `#5C5852` |
307
+ | `surface.dark.backdropWater`, `backdropWaterEdge`, `backdropPark`, `backdropCredit` | `#1E3175`, `#2A3F8A`, `#183F52`, `#9AA6D6` | `#1C2733`, `#2A3846`, `#1A241D`, `#ADA79D` |
308
+ | `ledgerMark` | an ink square (on dark, lined by a band in `surface.dark.muted`) | a white page with one outline, ink on light and `surface.dark.muted` on dark |
309
+
310
+ ## Upgrading to 0.8.0
311
+
312
+ 0.8.0 (card 302) changes what the site palette holds and the category icon's call.
313
+
314
+ | Changed | Before | Now |
315
+ |---|---|---|
316
+ | `site.light.*`, `site.dark.*` colours (`--ds-site-*`) | the Astroplate palette (`body` `#FFFFFF` / `#1C1C1C`, `text` `#444444` / `#B4AFB6`…) | the brand roles above (`body` `#F6F3EC` / `#121110`, `text` `#121212` / `#F1EEE8`…); same names |
317
+ | `site.light.link`, `site.dark.link`, `site.font.mono` | absent | `#B83A0C`, `#FF7A45`, `'Source Code Pro', monospace` |
318
+ | `categoryIcon` | `personalTools` only, a glyph with `surface` | four category badges on a track-tone disc; `surface` is refused |
319
+ | `icon` format | `eipIcon`, `uiIcon`, `linkIcon` | also `categoryIcon` |
320
+
321
+ A page that reads `--ds-site-*` changes colour when it moves to 0.8.0. With `primary` equal to `text`, a hover that turns text-coloured links `primary` no longer shows: move it to `link`.
322
+
298
323
  ## Upgrading to 0.7.0
299
324
 
300
325
  0.7.0 is a breaking release (cards 300 and 301). Rebuild every image once on it; the output changes appearance (ADR 0009) and carries its fonts (ADR 0008).
@@ -1,12 +1,12 @@
1
- import { type SurfaceName } from "./ink.ts";
2
- export declare const CATEGORY_ICON_NAMES: readonly ["personalTools"];
1
+ export declare const CATEGORY_ICON_NAMES: readonly ["integration", "delivery", "aiEngineering", "personalTools"];
3
2
  export type CategoryIconName = (typeof CATEGORY_ICON_NAMES)[number];
3
+ /** The badge's box before `scale` (spec cover-cli, "Icon output"). */
4
+ export declare const CATEGORY_ICON_SIZE = 42;
4
5
  export type CategoryIconParams = {
5
6
  category: CategoryIconName;
6
7
  x: number;
7
8
  y: number;
8
- surface?: SurfaceName;
9
9
  scale?: number;
10
10
  };
11
- /** The site's fourth category icon ("Ferramentas pessoais" / "Personal tools"), neutral (no track colour), a 48×48 glyph before `scale`. */
11
+ /** One of the site's four category badges: the glyph on a disc in its track's default tone, a 42×42 box before `scale`. */
12
12
  export declare const categoryIcon: import("./piece.ts").Piece<CategoryIconParams>;
@@ -1,26 +1,37 @@
1
- // The "Ferramentas pessoais" / "Personal tools" category icon (design.md
2
- // decision 4): the only site category with no notation or diagram icon,
3
- // requested of the design system in phase 4 (A6), glyph choice the agent's
4
- // call (triage TRI-1). Ported from `~/.hermes/cache/scratch/ab267/phase4.py`'s
5
- // `cat_icon()`, the "else" branch (a wrench crossing a screwdriver, a ring
6
- // for the bolt) — the other three site categories already read from the
7
- // brand notation / diagram grammar and are not this piece's job.
1
+ // The site's category badge (change site-palette-and-category-badges, design.md
2
+ // Decision 2; owner's choice Q7 of card 302): a disc in the default tone of the
3
+ // category's track family, ringed in that tone's cover ring, with a glyph on
4
+ // it. Integration, delivery and AI take a brand notation glyph; personal tools
5
+ // keeps its own (a wrench crossing a screwdriver, a ring for the bolt), ported
6
+ // from `~/.hermes/cache/scratch/ab267/phase4.py`'s `cat_icon()`. The geometry is
7
+ // the approved preview (`~/.hermes/cache/scratch/ab302/cat/cat.mjs`, 168 x 168)
8
+ // at a quarter: a 42 x 42 box before `scale`.
9
+ import { brandNotationIcon } from "./brand-notation-icons.js";
8
10
  import { drawn, el, g } from "./node.js";
9
- import { surfaceParam } from "./ink.js";
10
- import { pos, num } from "./params.js";
11
+ import { colour, num, pos } from "./params.js";
11
12
  import { definePiece } from "./piece.js";
12
- import { colour } from "./params.js";
13
- export const CATEGORY_ICON_NAMES = ["personalTools"];
14
- const c = (path) => colour(path);
13
+ export const CATEGORY_ICON_NAMES = ["integration", "delivery", "aiEngineering", "personalTools"];
14
+ /** The badge's box before `scale` (spec cover-cli, "Icon output"). */
15
+ export const CATEGORY_ICON_SIZE = 42;
16
+ const TRACK = {
17
+ integration: "trackIntegration",
18
+ delivery: "trackDelivery",
19
+ aiEngineering: "trackAi",
20
+ personalTools: "trackPersonal",
21
+ };
22
+ const GLYPH = {
23
+ integration: "pointToPointChannel",
24
+ delivery: "gateToProduction",
25
+ aiEngineering: "contextWindow",
26
+ };
27
+ const KEBAB = { integration: "integration", delivery: "delivery", aiEngineering: "ai-engineering", personalTools: "personal-tools" };
28
+ /** Personal tools' own glyph, in its 48 x 48 box, at 9, 9 and scale 0.5 like a notation glyph. */
29
+ const personalToolsGlyph = () => g({ transform: "translate(9 9) scale(0.5)", stroke: "none" }, el("path", { d: "M12 36 L28 20 M24 12 L36 24", stroke: colour("brand.light.text"), "stroke-width": 5, "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none" }), el("circle", { cx: 16, cy: 32, r: 6, fill: "none", stroke: colour("brand.light.accent"), "stroke-width": 3.5 }));
15
30
  const drawCategoryIcon = (p) => {
16
- const light = (p.surface ?? "light") === "light";
17
- const text = light ? c("brand.light.text") : c("brand.dark.text");
18
- const accent = light ? c("brand.light.accent") : c("brand.dark.accent");
19
- const glyph = [
20
- el("path", { d: "M12 36 L28 20 M24 12 L36 24", stroke: text, "stroke-width": 5, "stroke-linecap": "round", "stroke-linejoin": "round", fill: "none" }),
21
- el("circle", { cx: 16, cy: 32, r: 6, fill: "none", stroke: accent, "stroke-width": 3.5 }),
22
- ];
23
- return drawn([g({ "data-piece": "category-icon-personal-tools", transform: `translate(${p.x} ${p.y}) scale(${p.scale ?? 1})`, stroke: "none" }, ...glyph)]);
31
+ const track = TRACK[p.category];
32
+ const disc = el("circle", { cx: 21, cy: 21, r: 19.5, fill: colour(`coverBackground.${track}.fill`), stroke: colour(`coverBackground.${track}.ring`), "stroke-width": 1 });
33
+ const glyph = p.category === "personalTools" ? personalToolsGlyph() : brandNotationIcon({ name: GLYPH[p.category], x: 9, y: 9, scale: 0.5, surface: "light" }).body[0];
34
+ return drawn([g({ "data-piece": `category-icon-${KEBAB[p.category]}`, transform: `translate(${p.x} ${p.y}) scale(${p.scale ?? 1})` }, disc, glyph)]);
24
35
  };
25
- /** The site's fourth category icon ("Ferramentas pessoais" / "Personal tools"), neutral (no track colour), a 48×48 glyph before `scale`. */
26
- export const categoryIcon = definePiece("categoryIcon", { category: { kind: "enum", required: true, values: CATEGORY_ICON_NAMES }, x: pos(), y: pos(), surface: surfaceParam, scale: num({ min: 0.25, max: 8 }) }, drawCategoryIcon);
36
+ /** One of the site's four category badges: the glyph on a disc in its track's default tone, a 42×42 box before `scale`. */
37
+ export const categoryIcon = definePiece("categoryIcon", { category: { kind: "enum", required: true, values: CATEGORY_ICON_NAMES }, x: pos(), y: pos(), scale: num({ min: 0.25, max: 8 }) }, drawCategoryIcon);
@@ -11,6 +11,7 @@
11
11
  import { tokens } from "../../tokens/generated/tokens.js";
12
12
  import { PIECE_NAMES, PIECES, rings } from "./library.js";
13
13
  import { EIP_ICON_HEIGHT, EIP_ICON_WIDTH, EIP_ICONS } from "./eip-icons.js";
14
+ import { CATEGORY_ICON_SIZE } from "./category-icon.js";
14
15
  import { LINK_ICON_SIZE } from "./link-icons.js";
15
16
  import { mira } from "./brand-cast.js";
16
17
  import { symbol } from "./symbol.js";
@@ -230,12 +231,16 @@ const forLanguage = (spec, lang) => {
230
231
  };
231
232
  // ---------- validation ----------
232
233
  /** Icon pieces and the box each draws in (spec cover-cli, "Icon output"). */
233
- const ICON_PIECES = ["eipIcon", "uiIcon", "linkIcon"];
234
+ const ICON_PIECES = ["eipIcon", "uiIcon", "linkIcon", "categoryIcon"];
234
235
  const iconBox = (entry) => {
235
236
  if (entry.piece === "eipIcon") {
236
237
  const scale = entry.scale ?? 1;
237
238
  return [EIP_ICON_WIDTH * scale, EIP_ICON_HEIGHT * scale];
238
239
  }
240
+ if (entry.piece === "categoryIcon") {
241
+ const side = CATEGORY_ICON_SIZE * (entry.scale ?? 1);
242
+ return [side, side];
243
+ }
239
244
  const side = entry.size ?? (entry.piece === "uiIcon" ? UI_ICON_SIZE : LINK_ICON_SIZE);
240
245
  return [side, side];
241
246
  };
@@ -397,7 +402,7 @@ const validateResolved = (spec) => {
397
402
  else if (format === "icon") {
398
403
  const entry = pieces[0];
399
404
  if (pieces.length !== 1 || !isPlainObject(entry) || !ICON_PIECES.includes(entry.piece)) {
400
- out.push({ path: "pieces", message: "an icon spec holds exactly one piece: eipIcon, uiIcon or linkIcon" });
405
+ out.push({ path: "pieces", message: "an icon spec holds exactly one piece: eipIcon, uiIcon, linkIcon or categoryIcon" });
401
406
  blocked.push("pieces");
402
407
  }
403
408
  else {
@@ -19,10 +19,10 @@ export declare const limits: (...checks: (Problem | false)[]) => Problem[];
19
19
  */
20
20
  export declare const inkOf: ({ surface, inkScale }: Ink) => {
21
21
  s: {
22
- readonly backdropCredit: "#9AA6D6";
23
- readonly backdropPark: "#183F52";
24
- readonly backdropWater: "#1E3175";
25
- readonly backdropWaterEdge: "#2A3F8A";
22
+ readonly backdropCredit: "#ADA79D";
23
+ readonly backdropPark: "#1A241D";
24
+ readonly backdropWater: "#1C2733";
25
+ readonly backdropWaterEdge: "#2A3846";
26
26
  readonly background: "#121110";
27
27
  readonly grid: "#3B3834";
28
28
  readonly muted: "#ADA79D";
@@ -33,10 +33,10 @@ export declare const inkOf: ({ surface, inkScale }: Ink) => {
33
33
  readonly text: "#F1EEE8";
34
34
  readonly zoneOpacity: 0.22;
35
35
  } | {
36
- readonly backdropCredit: "#5A6385";
37
- readonly backdropPark: "#D4F2DF";
38
- readonly backdropWater: "#C9D8FF";
39
- readonly backdropWaterEdge: "#B5C7F5";
36
+ readonly backdropCredit: "#5C5852";
37
+ readonly backdropPark: "#D6E4CF";
38
+ readonly backdropWater: "#C7DAEA";
39
+ readonly backdropWaterEdge: "#A9C4DA";
40
40
  readonly background: "#F6F3EC";
41
41
  readonly grid: "#EDE8DE";
42
42
  readonly muted: "#5C5852";
@@ -81,9 +81,10 @@ export type LedgerMarkParams = {
81
81
  line?: string;
82
82
  surface?: SurfaceName;
83
83
  };
84
- /** stackledger's mark (favicon, header): an ink square with a bent line and two stations, 32 units scaled to `size`.
85
- * On the dark surface a 2-unit band in surface.dark.muted lines the square inside its 32 box, whatever rimWidth is,
86
- * so the ink square never sits bare on the dark background (ADR 0009). The stations inside the square stay ink. */
84
+ /** stackledger's mark (favicon, header), the "Folha" of card 303: a white page with one outline, a bent line and
85
+ * two stations, 32 units scaled to `size`. The outline is ink on the light surface and surface.dark.muted on the dark
86
+ * one, so the page keeps one outline that reads on either background (ADR 0009); the stations sit on the white page
87
+ * and stay ink. */
87
88
  export declare const ledgerMark: import("./piece.ts").Piece<LedgerMarkParams>;
88
89
  export type RenewalRingParams = Ink & {
89
90
  cx: number;
@@ -220,19 +220,26 @@ export const messageArrow = definePiece("messageArrow", {
220
220
  const need = (heads === "both" ? 20 : 10) * width;
221
221
  return limits(head === false && heads !== undefined && { path: "heads", message: "cannot be combined with head: false" }, distance === 0 && { path: "to", message: "must differ from from" }, distance > 0 && head && distance < need && { path: "to", message: `is too close to from for the ${heads === "both" ? "heads" : "head"}: needs at least ${r2(need)}, found ${r2(distance)}` }, controls !== undefined && curve !== undefined && { path: "controls", message: "cannot be combined with curve" });
222
222
  });
223
- /** stackledger's mark (favicon, header): an ink square with a bent line and two stations, 32 units scaled to `size`.
224
- * On the dark surface a 2-unit band in surface.dark.muted lines the square inside its 32 box, whatever rimWidth is,
225
- * so the ink square never sits bare on the dark background (ADR 0009). The stations inside the square stay ink. */
223
+ /** stackledger's mark (favicon, header), the "Folha" of card 303: a white page with one outline, a bent line and
224
+ * two stations, 32 units scaled to `size`. The outline is ink on the light surface and surface.dark.muted on the dark
225
+ * one, so the page keeps one outline that reads on either background (ADR 0009); the stations sit on the white page
226
+ * and stay ink. */
226
227
  export const ledgerMark = definePiece("ledgerMark", { x: pos(), y: pos(), size: { kind: "number", min: 12, max: 512 }, line: col(), surface: surfaceParam }, ({ x, y, size: side = 32, line = "illustration.accent", surface = "light" }) => {
227
- const band = 2;
228
- const square = surface === "dark"
229
- ? [
230
- el("rect", { x: 0, y: 0, width: 32, height: 32, rx: 7, fill: tokens.surface.dark.muted, stroke: "none" }),
231
- el("rect", { x: band, y: band, width: 32 - 2 * band, height: 32 - 2 * band, rx: 7 - band, fill: ink, stroke: "none" }),
232
- ]
233
- : [el("rect", { x: 0, y: 0, width: 32, height: 32, rx: 7, fill: ink, stroke: "none" })];
228
+ // The stroke is centred on the rect's edge: inset by half the outline, the page stays inside the 32 box.
229
+ const outline = 1.25;
230
+ const inset = outline / 2;
231
+ const page = el("rect", {
232
+ x: inset,
233
+ y: inset,
234
+ width: 32 - outline,
235
+ height: 32 - outline,
236
+ rx: 6.6,
237
+ fill: white,
238
+ stroke: surface === "dark" ? tokens.surface.dark.muted : ink,
239
+ "stroke-width": outline,
240
+ });
234
241
  return drawn([
235
- g({ transform: `translate(${r2(x)} ${r2(y)}) scale(${side / 32})` }, ...square, el("path", { d: "M7 23 L14 16 L25 16", fill: "none", stroke: colour(line, "line"), "stroke-width": 4.5, "stroke-linecap": "round", "stroke-linejoin": "round" }), el("circle", { cx: 14, cy: 16, r: 4, fill: white, stroke: ink, "stroke-width": 2 }), el("circle", { cx: 25, cy: 16, r: 2.6, fill: white, stroke: ink, "stroke-width": 1.6 })),
242
+ g({ transform: `translate(${r2(x)} ${r2(y)}) scale(${side / 32})` }, page, el("path", { d: "M7 23 L14 16 L25 16", fill: "none", stroke: colour(line, "line"), "stroke-width": 4.5, "stroke-linecap": "round", "stroke-linejoin": "round" }), el("circle", { cx: 14, cy: 16, r: 4, fill: white, stroke: ink, "stroke-width": 2 }), el("circle", { cx: 25, cy: 16, r: 2.6, fill: white, stroke: ink, "stroke-width": 1.6 })),
236
243
  ]);
237
244
  });
238
245
  /** The renewal ring: bands like a bent pipe round a station (a rim when the surface has one, the ink line, then
@@ -21,6 +21,7 @@ export declare const tokens: {
21
21
  readonly cardBg: "#1D1C1A";
22
22
  readonly failure: "#FF6696";
23
23
  readonly onAccent: "#121110";
24
+ readonly stackledgerAccent: "#7D8CFF";
24
25
  readonly success: "#5BBF86";
25
26
  readonly text: "#F1EEE8";
26
27
  readonly textMuted: "#ADA79D";
@@ -39,6 +40,7 @@ export declare const tokens: {
39
40
  readonly cardBg: "#FFFFFF";
40
41
  readonly failure: "#A1124B";
41
42
  readonly onAccent: "#FFFFFF";
43
+ readonly stackledgerAccent: "#3B5BDB";
42
44
  readonly success: "#2B7A4B";
43
45
  readonly text: "#121212";
44
46
  readonly textMuted: "#5C5852";
@@ -206,16 +208,18 @@ export declare const tokens: {
206
208
  };
207
209
  readonly site: {
208
210
  readonly dark: {
209
- readonly body: "#1C1C1C";
210
- readonly border: "#3E3E3E";
211
- readonly dark: "#FFFFFF";
212
- readonly light: "#222222";
213
- readonly primary: "#FFFFFF";
214
- readonly text: "#B4AFB6";
215
- readonly textDark: "#FFFFFF";
216
- readonly textLight: "#B4AFB6";
211
+ readonly body: "#121110";
212
+ readonly border: "#3B3834";
213
+ readonly dark: "#F1EEE8";
214
+ readonly light: "#1D1C1A";
215
+ readonly link: "#FF7A45";
216
+ readonly primary: "#F1EEE8";
217
+ readonly text: "#F1EEE8";
218
+ readonly textDark: "#F1EEE8";
219
+ readonly textLight: "#ADA79D";
217
220
  };
218
221
  readonly font: {
222
+ readonly mono: "'Source Code Pro', monospace";
219
223
  readonly primary: "'Source Sans 3', sans-serif";
220
224
  readonly secondary: "'Source Serif 4', serif";
221
225
  };
@@ -238,22 +242,23 @@ export declare const tokens: {
238
242
  readonly h6Small: 1.08;
239
243
  };
240
244
  readonly light: {
241
- readonly body: "#FFFFFF";
242
- readonly border: "#EAEAEA";
243
- readonly dark: "#040404";
244
- readonly light: "#F6F6F6";
245
+ readonly body: "#F6F3EC";
246
+ readonly border: "#D7D1C5";
247
+ readonly dark: "#121212";
248
+ readonly light: "#FFFFFF";
249
+ readonly link: "#B83A0C";
245
250
  readonly primary: "#121212";
246
- readonly text: "#444444";
247
- readonly textDark: "#040404";
248
- readonly textLight: "#717171";
251
+ readonly text: "#121212";
252
+ readonly textDark: "#121212";
253
+ readonly textLight: "#5C5852";
249
254
  };
250
255
  };
251
256
  readonly surface: {
252
257
  readonly dark: {
253
- readonly backdropCredit: "#9AA6D6";
254
- readonly backdropPark: "#183F52";
255
- readonly backdropWater: "#1E3175";
256
- readonly backdropWaterEdge: "#2A3F8A";
258
+ readonly backdropCredit: "#ADA79D";
259
+ readonly backdropPark: "#1A241D";
260
+ readonly backdropWater: "#1C2733";
261
+ readonly backdropWaterEdge: "#2A3846";
257
262
  readonly background: "#121110";
258
263
  readonly grid: "#3B3834";
259
264
  readonly muted: "#ADA79D";
@@ -265,10 +270,10 @@ export declare const tokens: {
265
270
  readonly zoneOpacity: 0.22;
266
271
  };
267
272
  readonly light: {
268
- readonly backdropCredit: "#5A6385";
269
- readonly backdropPark: "#D4F2DF";
270
- readonly backdropWater: "#C9D8FF";
271
- readonly backdropWaterEdge: "#B5C7F5";
273
+ readonly backdropCredit: "#5C5852";
274
+ readonly backdropPark: "#D6E4CF";
275
+ readonly backdropWater: "#C7DAEA";
276
+ readonly backdropWaterEdge: "#A9C4DA";
272
277
  readonly background: "#F6F3EC";
273
278
  readonly grid: "#EDE8DE";
274
279
  readonly muted: "#5C5852";
@@ -22,6 +22,7 @@ export const tokens = {
22
22
  "cardBg": "#1D1C1A",
23
23
  "failure": "#FF6696",
24
24
  "onAccent": "#121110",
25
+ "stackledgerAccent": "#7D8CFF",
25
26
  "success": "#5BBF86",
26
27
  "text": "#F1EEE8",
27
28
  "textMuted": "#ADA79D",
@@ -40,6 +41,7 @@ export const tokens = {
40
41
  "cardBg": "#FFFFFF",
41
42
  "failure": "#A1124B",
42
43
  "onAccent": "#FFFFFF",
44
+ "stackledgerAccent": "#3B5BDB",
43
45
  "success": "#2B7A4B",
44
46
  "text": "#121212",
45
47
  "textMuted": "#5C5852",
@@ -207,16 +209,18 @@ export const tokens = {
207
209
  },
208
210
  "site": {
209
211
  "dark": {
210
- "body": "#1C1C1C",
211
- "border": "#3E3E3E",
212
- "dark": "#FFFFFF",
213
- "light": "#222222",
214
- "primary": "#FFFFFF",
215
- "text": "#B4AFB6",
216
- "textDark": "#FFFFFF",
217
- "textLight": "#B4AFB6"
212
+ "body": "#121110",
213
+ "border": "#3B3834",
214
+ "dark": "#F1EEE8",
215
+ "light": "#1D1C1A",
216
+ "link": "#FF7A45",
217
+ "primary": "#F1EEE8",
218
+ "text": "#F1EEE8",
219
+ "textDark": "#F1EEE8",
220
+ "textLight": "#ADA79D"
218
221
  },
219
222
  "font": {
223
+ "mono": "'Source Code Pro', monospace",
220
224
  "primary": "'Source Sans 3', sans-serif",
221
225
  "secondary": "'Source Serif 4', serif"
222
226
  },
@@ -239,22 +243,23 @@ export const tokens = {
239
243
  "h6Small": 1.08
240
244
  },
241
245
  "light": {
242
- "body": "#FFFFFF",
243
- "border": "#EAEAEA",
244
- "dark": "#040404",
245
- "light": "#F6F6F6",
246
+ "body": "#F6F3EC",
247
+ "border": "#D7D1C5",
248
+ "dark": "#121212",
249
+ "light": "#FFFFFF",
250
+ "link": "#B83A0C",
246
251
  "primary": "#121212",
247
- "text": "#444444",
248
- "textDark": "#040404",
249
- "textLight": "#717171"
252
+ "text": "#121212",
253
+ "textDark": "#121212",
254
+ "textLight": "#5C5852"
250
255
  }
251
256
  },
252
257
  "surface": {
253
258
  "dark": {
254
- "backdropCredit": "#9AA6D6",
255
- "backdropPark": "#183F52",
256
- "backdropWater": "#1E3175",
257
- "backdropWaterEdge": "#2A3F8A",
259
+ "backdropCredit": "#ADA79D",
260
+ "backdropPark": "#1A241D",
261
+ "backdropWater": "#1C2733",
262
+ "backdropWaterEdge": "#2A3846",
258
263
  "background": "#121110",
259
264
  "grid": "#3B3834",
260
265
  "muted": "#ADA79D",
@@ -266,10 +271,10 @@ export const tokens = {
266
271
  "zoneOpacity": 0.22
267
272
  },
268
273
  "light": {
269
- "backdropCredit": "#5A6385",
270
- "backdropPark": "#D4F2DF",
271
- "backdropWater": "#C9D8FF",
272
- "backdropWaterEdge": "#B5C7F5",
274
+ "backdropCredit": "#5C5852",
275
+ "backdropPark": "#D6E4CF",
276
+ "backdropWater": "#C7DAEA",
277
+ "backdropWaterEdge": "#A9C4DA",
273
278
  "background": "#F6F3EC",
274
279
  "grid": "#EDE8DE",
275
280
  "muted": "#5C5852",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunosouzas/design-system",
3
- "version": "0.7.0",
3
+ "version": "0.8.1",
4
4
  "description": "Design tokens and illustration pieces of brunosouzas.com: tokens as CSS, JSON and TypeScript, pieces that draw SVG (and React), and a cover command.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -16,6 +16,7 @@
16
16
  --ds-brand-dark-card-bg: #1D1C1A;
17
17
  --ds-brand-dark-failure: #FF6696;
18
18
  --ds-brand-dark-on-accent: #121110;
19
+ --ds-brand-dark-stackledger-accent: #7D8CFF;
19
20
  --ds-brand-dark-success: #5BBF86;
20
21
  --ds-brand-dark-text: #F1EEE8;
21
22
  --ds-brand-dark-text-muted: #ADA79D;
@@ -32,6 +33,7 @@
32
33
  --ds-brand-light-card-bg: #FFFFFF;
33
34
  --ds-brand-light-failure: #A1124B;
34
35
  --ds-brand-light-on-accent: #FFFFFF;
36
+ --ds-brand-light-stackledger-accent: #3B5BDB;
35
37
  --ds-brand-light-success: #2B7A4B;
36
38
  --ds-brand-light-text: #121212;
37
39
  --ds-brand-light-text-muted: #5C5852;
@@ -141,14 +143,16 @@
141
143
  --ds-shadow-block: 0px;
142
144
  --ds-shadow-pill: 0px;
143
145
  --ds-shadow-small: 0px;
144
- --ds-site-dark-body: #1C1C1C;
145
- --ds-site-dark-border: #3E3E3E;
146
- --ds-site-dark-dark: #FFFFFF;
147
- --ds-site-dark-light: #222222;
148
- --ds-site-dark-primary: #FFFFFF;
149
- --ds-site-dark-text: #B4AFB6;
150
- --ds-site-dark-text-dark: #FFFFFF;
151
- --ds-site-dark-text-light: #B4AFB6;
146
+ --ds-site-dark-body: #121110;
147
+ --ds-site-dark-border: #3B3834;
148
+ --ds-site-dark-dark: #F1EEE8;
149
+ --ds-site-dark-light: #1D1C1A;
150
+ --ds-site-dark-link: #FF7A45;
151
+ --ds-site-dark-primary: #F1EEE8;
152
+ --ds-site-dark-text: #F1EEE8;
153
+ --ds-site-dark-text-dark: #F1EEE8;
154
+ --ds-site-dark-text-light: #ADA79D;
155
+ --ds-site-font-mono: 'Source Code Pro', monospace;
152
156
  --ds-site-font-primary: 'Source Sans 3', sans-serif;
153
157
  --ds-site-font-secondary: 'Source Serif 4', serif;
154
158
  --ds-site-font-size-base: 16px;
@@ -165,18 +169,19 @@
165
169
  --ds-site-heading-h5-small: 1.296;
166
170
  --ds-site-heading-h6: 1.2;
167
171
  --ds-site-heading-h6-small: 1.08;
168
- --ds-site-light-body: #FFFFFF;
169
- --ds-site-light-border: #EAEAEA;
170
- --ds-site-light-dark: #040404;
171
- --ds-site-light-light: #F6F6F6;
172
+ --ds-site-light-body: #F6F3EC;
173
+ --ds-site-light-border: #D7D1C5;
174
+ --ds-site-light-dark: #121212;
175
+ --ds-site-light-light: #FFFFFF;
176
+ --ds-site-light-link: #B83A0C;
172
177
  --ds-site-light-primary: #121212;
173
- --ds-site-light-text: #444444;
174
- --ds-site-light-text-dark: #040404;
175
- --ds-site-light-text-light: #717171;
176
- --ds-surface-dark-backdrop-credit: #9AA6D6;
177
- --ds-surface-dark-backdrop-park: #183F52;
178
- --ds-surface-dark-backdrop-water: #1E3175;
179
- --ds-surface-dark-backdrop-water-edge: #2A3F8A;
178
+ --ds-site-light-text: #121212;
179
+ --ds-site-light-text-dark: #121212;
180
+ --ds-site-light-text-light: #5C5852;
181
+ --ds-surface-dark-backdrop-credit: #ADA79D;
182
+ --ds-surface-dark-backdrop-park: #1A241D;
183
+ --ds-surface-dark-backdrop-water: #1C2733;
184
+ --ds-surface-dark-backdrop-water-edge: #2A3846;
180
185
  --ds-surface-dark-background: #121110;
181
186
  --ds-surface-dark-grid: #3B3834;
182
187
  --ds-surface-dark-muted: #ADA79D;
@@ -186,10 +191,10 @@
186
191
  --ds-surface-dark-shadow: #121110;
187
192
  --ds-surface-dark-text: #F1EEE8;
188
193
  --ds-surface-dark-zone-opacity: 0.22;
189
- --ds-surface-light-backdrop-credit: #5A6385;
190
- --ds-surface-light-backdrop-park: #D4F2DF;
191
- --ds-surface-light-backdrop-water: #C9D8FF;
192
- --ds-surface-light-backdrop-water-edge: #B5C7F5;
194
+ --ds-surface-light-backdrop-credit: #5C5852;
195
+ --ds-surface-light-backdrop-park: #D6E4CF;
196
+ --ds-surface-light-backdrop-water: #C7DAEA;
197
+ --ds-surface-light-backdrop-water-edge: #A9C4DA;
193
198
  --ds-surface-light-background: #F6F3EC;
194
199
  --ds-surface-light-grid: #EDE8DE;
195
200
  --ds-surface-light-muted: #5C5852;
@@ -21,6 +21,7 @@
21
21
  "cardBg": "#1D1C1A",
22
22
  "failure": "#FF6696",
23
23
  "onAccent": "#121110",
24
+ "stackledgerAccent": "#7D8CFF",
24
25
  "success": "#5BBF86",
25
26
  "text": "#F1EEE8",
26
27
  "textMuted": "#ADA79D",
@@ -39,6 +40,7 @@
39
40
  "cardBg": "#FFFFFF",
40
41
  "failure": "#A1124B",
41
42
  "onAccent": "#FFFFFF",
43
+ "stackledgerAccent": "#3B5BDB",
42
44
  "success": "#2B7A4B",
43
45
  "text": "#121212",
44
46
  "textMuted": "#5C5852",
@@ -206,16 +208,18 @@
206
208
  },
207
209
  "site": {
208
210
  "dark": {
209
- "body": "#1C1C1C",
210
- "border": "#3E3E3E",
211
- "dark": "#FFFFFF",
212
- "light": "#222222",
213
- "primary": "#FFFFFF",
214
- "text": "#B4AFB6",
215
- "textDark": "#FFFFFF",
216
- "textLight": "#B4AFB6"
211
+ "body": "#121110",
212
+ "border": "#3B3834",
213
+ "dark": "#F1EEE8",
214
+ "light": "#1D1C1A",
215
+ "link": "#FF7A45",
216
+ "primary": "#F1EEE8",
217
+ "text": "#F1EEE8",
218
+ "textDark": "#F1EEE8",
219
+ "textLight": "#ADA79D"
217
220
  },
218
221
  "font": {
222
+ "mono": "'Source Code Pro', monospace",
219
223
  "primary": "'Source Sans 3', sans-serif",
220
224
  "secondary": "'Source Serif 4', serif"
221
225
  },
@@ -238,22 +242,23 @@
238
242
  "h6Small": 1.08
239
243
  },
240
244
  "light": {
241
- "body": "#FFFFFF",
242
- "border": "#EAEAEA",
243
- "dark": "#040404",
244
- "light": "#F6F6F6",
245
+ "body": "#F6F3EC",
246
+ "border": "#D7D1C5",
247
+ "dark": "#121212",
248
+ "light": "#FFFFFF",
249
+ "link": "#B83A0C",
245
250
  "primary": "#121212",
246
- "text": "#444444",
247
- "textDark": "#040404",
248
- "textLight": "#717171"
251
+ "text": "#121212",
252
+ "textDark": "#121212",
253
+ "textLight": "#5C5852"
249
254
  }
250
255
  },
251
256
  "surface": {
252
257
  "dark": {
253
- "backdropCredit": "#9AA6D6",
254
- "backdropPark": "#183F52",
255
- "backdropWater": "#1E3175",
256
- "backdropWaterEdge": "#2A3F8A",
258
+ "backdropCredit": "#ADA79D",
259
+ "backdropPark": "#1A241D",
260
+ "backdropWater": "#1C2733",
261
+ "backdropWaterEdge": "#2A3846",
257
262
  "background": "#121110",
258
263
  "grid": "#3B3834",
259
264
  "muted": "#ADA79D",
@@ -265,10 +270,10 @@
265
270
  "zoneOpacity": 0.22
266
271
  },
267
272
  "light": {
268
- "backdropCredit": "#5A6385",
269
- "backdropPark": "#D4F2DF",
270
- "backdropWater": "#C9D8FF",
271
- "backdropWaterEdge": "#B5C7F5",
273
+ "backdropCredit": "#5C5852",
274
+ "backdropPark": "#D6E4CF",
275
+ "backdropWater": "#C7DAEA",
276
+ "backdropWaterEdge": "#A9C4DA",
272
277
  "background": "#F6F3EC",
273
278
  "grid": "#EDE8DE",
274
279
  "muted": "#5C5852",
@@ -23,6 +23,7 @@ export const tokens = {
23
23
  "cardBg": "#1D1C1A",
24
24
  "failure": "#FF6696",
25
25
  "onAccent": "#121110",
26
+ "stackledgerAccent": "#7D8CFF",
26
27
  "success": "#5BBF86",
27
28
  "text": "#F1EEE8",
28
29
  "textMuted": "#ADA79D",
@@ -41,6 +42,7 @@ export const tokens = {
41
42
  "cardBg": "#FFFFFF",
42
43
  "failure": "#A1124B",
43
44
  "onAccent": "#FFFFFF",
45
+ "stackledgerAccent": "#3B5BDB",
44
46
  "success": "#2B7A4B",
45
47
  "text": "#121212",
46
48
  "textMuted": "#5C5852",
@@ -208,16 +210,18 @@ export const tokens = {
208
210
  },
209
211
  "site": {
210
212
  "dark": {
211
- "body": "#1C1C1C",
212
- "border": "#3E3E3E",
213
- "dark": "#FFFFFF",
214
- "light": "#222222",
215
- "primary": "#FFFFFF",
216
- "text": "#B4AFB6",
217
- "textDark": "#FFFFFF",
218
- "textLight": "#B4AFB6"
213
+ "body": "#121110",
214
+ "border": "#3B3834",
215
+ "dark": "#F1EEE8",
216
+ "light": "#1D1C1A",
217
+ "link": "#FF7A45",
218
+ "primary": "#F1EEE8",
219
+ "text": "#F1EEE8",
220
+ "textDark": "#F1EEE8",
221
+ "textLight": "#ADA79D"
219
222
  },
220
223
  "font": {
224
+ "mono": "'Source Code Pro', monospace",
221
225
  "primary": "'Source Sans 3', sans-serif",
222
226
  "secondary": "'Source Serif 4', serif"
223
227
  },
@@ -240,22 +244,23 @@ export const tokens = {
240
244
  "h6Small": 1.08
241
245
  },
242
246
  "light": {
243
- "body": "#FFFFFF",
244
- "border": "#EAEAEA",
245
- "dark": "#040404",
246
- "light": "#F6F6F6",
247
+ "body": "#F6F3EC",
248
+ "border": "#D7D1C5",
249
+ "dark": "#121212",
250
+ "light": "#FFFFFF",
251
+ "link": "#B83A0C",
247
252
  "primary": "#121212",
248
- "text": "#444444",
249
- "textDark": "#040404",
250
- "textLight": "#717171"
253
+ "text": "#121212",
254
+ "textDark": "#121212",
255
+ "textLight": "#5C5852"
251
256
  }
252
257
  },
253
258
  "surface": {
254
259
  "dark": {
255
- "backdropCredit": "#9AA6D6",
256
- "backdropPark": "#183F52",
257
- "backdropWater": "#1E3175",
258
- "backdropWaterEdge": "#2A3F8A",
260
+ "backdropCredit": "#ADA79D",
261
+ "backdropPark": "#1A241D",
262
+ "backdropWater": "#1C2733",
263
+ "backdropWaterEdge": "#2A3846",
259
264
  "background": "#121110",
260
265
  "grid": "#3B3834",
261
266
  "muted": "#ADA79D",
@@ -267,10 +272,10 @@ export const tokens = {
267
272
  "zoneOpacity": 0.22
268
273
  },
269
274
  "light": {
270
- "backdropCredit": "#5A6385",
271
- "backdropPark": "#D4F2DF",
272
- "backdropWater": "#C9D8FF",
273
- "backdropWaterEdge": "#B5C7F5",
275
+ "backdropCredit": "#5C5852",
276
+ "backdropPark": "#D6E4CF",
277
+ "backdropWater": "#C7DAEA",
278
+ "backdropWaterEdge": "#A9C4DA",
274
279
  "background": "#F6F3EC",
275
280
  "grid": "#EDE8DE",
276
281
  "muted": "#5C5852",