@brunosouzas/design-system 0.5.2 → 0.5.3

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
@@ -146,7 +146,7 @@ Thirteen pieces draw a metro map and its page diagrams, for [stackledger](https:
146
146
  - `countBadge` takes `textSize` (6 to 48, default 11): without `height`, the height, width and baseline grow with it.
147
147
  - 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.
148
148
  - `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`).
149
- - The `map.*` tokens hold the measures (outline 3, shadow 3.5, 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), and `site.*` the page palette, fonts and type scale of brunosouzas.com in light and dark.
149
+ - The `map.*` tokens hold the measures (outline 3, shadow 3.5, 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.
150
150
 
151
151
  ```ts
152
152
  import { lineBadge, pipe, stationMarker, toSvg } from "@brunosouzas/design-system";
@@ -15,6 +15,10 @@ export declare const limits: (...checks: (Problem | false)[]) => Problem[];
15
15
  /** The surface's colours and the ink measures at a scale. */
16
16
  export declare const inkOf: ({ surface, inkScale }: Ink) => {
17
17
  s: {
18
+ readonly backdropCredit: "#9AA6D6";
19
+ readonly backdropPark: "#183F52";
20
+ readonly backdropWater: "#1E3175";
21
+ readonly backdropWaterEdge: "#2A3F8A";
18
22
  readonly background: "#14215A";
19
23
  readonly grid: "#1C2D74";
20
24
  readonly muted: "#8F9BD0";
@@ -25,6 +29,10 @@ export declare const inkOf: ({ surface, inkScale }: Ink) => {
25
29
  readonly text: "#EEF2FF";
26
30
  readonly zoneOpacity: 0.22;
27
31
  } | {
32
+ readonly backdropCredit: "#5A6385";
33
+ readonly backdropPark: "#D4F2DF";
34
+ readonly backdropWater: "#C9D8FF";
35
+ readonly backdropWaterEdge: "#B5C7F5";
28
36
  readonly background: "#EEF2FF";
29
37
  readonly grid: "#E0E7FB";
30
38
  readonly muted: "#5B6694";
@@ -275,6 +275,10 @@ export declare const tokens: {
275
275
  };
276
276
  readonly surface: {
277
277
  readonly dark: {
278
+ readonly backdropCredit: "#9AA6D6";
279
+ readonly backdropPark: "#183F52";
280
+ readonly backdropWater: "#1E3175";
281
+ readonly backdropWaterEdge: "#2A3F8A";
278
282
  readonly background: "#14215A";
279
283
  readonly grid: "#1C2D74";
280
284
  readonly muted: "#8F9BD0";
@@ -286,6 +290,10 @@ export declare const tokens: {
286
290
  readonly zoneOpacity: 0.22;
287
291
  };
288
292
  readonly light: {
293
+ readonly backdropCredit: "#5A6385";
294
+ readonly backdropPark: "#D4F2DF";
295
+ readonly backdropWater: "#C9D8FF";
296
+ readonly backdropWaterEdge: "#B5C7F5";
289
297
  readonly background: "#EEF2FF";
290
298
  readonly grid: "#E0E7FB";
291
299
  readonly muted: "#5B6694";
@@ -276,6 +276,10 @@ export const tokens = {
276
276
  },
277
277
  "surface": {
278
278
  "dark": {
279
+ "backdropCredit": "#9AA6D6",
280
+ "backdropPark": "#183F52",
281
+ "backdropWater": "#1E3175",
282
+ "backdropWaterEdge": "#2A3F8A",
279
283
  "background": "#14215A",
280
284
  "grid": "#1C2D74",
281
285
  "muted": "#8F9BD0",
@@ -287,6 +291,10 @@ export const tokens = {
287
291
  "zoneOpacity": 0.22
288
292
  },
289
293
  "light": {
294
+ "backdropCredit": "#5A6385",
295
+ "backdropPark": "#D4F2DF",
296
+ "backdropWater": "#C9D8FF",
297
+ "backdropWaterEdge": "#B5C7F5",
290
298
  "background": "#EEF2FF",
291
299
  "grid": "#E0E7FB",
292
300
  "muted": "#5B6694",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brunosouzas/design-system",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
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": {
@@ -176,6 +176,10 @@
176
176
  --ds-site-light-text: #444444;
177
177
  --ds-site-light-text-dark: #040404;
178
178
  --ds-site-light-text-light: #717171;
179
+ --ds-surface-dark-backdrop-credit: #9AA6D6;
180
+ --ds-surface-dark-backdrop-park: #183F52;
181
+ --ds-surface-dark-backdrop-water: #1E3175;
182
+ --ds-surface-dark-backdrop-water-edge: #2A3F8A;
179
183
  --ds-surface-dark-background: #14215A;
180
184
  --ds-surface-dark-grid: #1C2D74;
181
185
  --ds-surface-dark-muted: #8F9BD0;
@@ -185,6 +189,10 @@
185
189
  --ds-surface-dark-shadow: #4C5CB8;
186
190
  --ds-surface-dark-text: #EEF2FF;
187
191
  --ds-surface-dark-zone-opacity: 0.22;
192
+ --ds-surface-light-backdrop-credit: #5A6385;
193
+ --ds-surface-light-backdrop-park: #D4F2DF;
194
+ --ds-surface-light-backdrop-water: #C9D8FF;
195
+ --ds-surface-light-backdrop-water-edge: #B5C7F5;
188
196
  --ds-surface-light-background: #EEF2FF;
189
197
  --ds-surface-light-grid: #E0E7FB;
190
198
  --ds-surface-light-muted: #5B6694;
@@ -275,6 +275,10 @@
275
275
  },
276
276
  "surface": {
277
277
  "dark": {
278
+ "backdropCredit": "#9AA6D6",
279
+ "backdropPark": "#183F52",
280
+ "backdropWater": "#1E3175",
281
+ "backdropWaterEdge": "#2A3F8A",
278
282
  "background": "#14215A",
279
283
  "grid": "#1C2D74",
280
284
  "muted": "#8F9BD0",
@@ -286,6 +290,10 @@
286
290
  "zoneOpacity": 0.22
287
291
  },
288
292
  "light": {
293
+ "backdropCredit": "#5A6385",
294
+ "backdropPark": "#D4F2DF",
295
+ "backdropWater": "#C9D8FF",
296
+ "backdropWaterEdge": "#B5C7F5",
289
297
  "background": "#EEF2FF",
290
298
  "grid": "#E0E7FB",
291
299
  "muted": "#5B6694",
@@ -277,6 +277,10 @@ export const tokens = {
277
277
  },
278
278
  "surface": {
279
279
  "dark": {
280
+ "backdropCredit": "#9AA6D6",
281
+ "backdropPark": "#183F52",
282
+ "backdropWater": "#1E3175",
283
+ "backdropWaterEdge": "#2A3F8A",
280
284
  "background": "#14215A",
281
285
  "grid": "#1C2D74",
282
286
  "muted": "#8F9BD0",
@@ -288,6 +292,10 @@ export const tokens = {
288
292
  "zoneOpacity": 0.22
289
293
  },
290
294
  "light": {
295
+ "backdropCredit": "#5A6385",
296
+ "backdropPark": "#D4F2DF",
297
+ "backdropWater": "#C9D8FF",
298
+ "backdropWaterEdge": "#B5C7F5",
291
299
  "background": "#EEF2FF",
292
300
  "grid": "#E0E7FB",
293
301
  "muted": "#5B6694",