@brunosouzas/design-system 0.7.0 → 0.8.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/README.md +18 -4
- package/dist/src/pieces/category-icon.d.ts +4 -4
- package/dist/src/pieces/category-icon.js +33 -22
- package/dist/src/pieces/cover.js +7 -2
- package/dist/tokens/generated/tokens.d.ts +18 -15
- package/dist/tokens/generated/tokens.js +18 -15
- package/package.json +1 -1
- package/tokens/generated/tokens.css +18 -15
- package/tokens/generated/tokens.json +18 -15
- package/tokens/generated/tokens.ts +18 -15
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).
|
|
29
29
|
|
|
30
30
|
## What it is
|
|
31
31
|
|
|
@@ -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), and `site.*` 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).
|
|
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 `
|
|
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
|
-
-
|
|
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,19 @@ 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.0
|
|
300
|
+
|
|
301
|
+
0.8.0 (card 302) changes what the site palette holds and the category icon's call.
|
|
302
|
+
|
|
303
|
+
| Changed | Before | Now |
|
|
304
|
+
|---|---|---|
|
|
305
|
+
| `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 |
|
|
306
|
+
| `site.light.link`, `site.dark.link`, `site.font.mono` | absent | `#B83A0C`, `#FF7A45`, `'Source Code Pro', monospace` |
|
|
307
|
+
| `categoryIcon` | `personalTools` only, a glyph with `surface` | four category badges on a track-tone disc; `surface` is refused |
|
|
308
|
+
| `icon` format | `eipIcon`, `uiIcon`, `linkIcon` | also `categoryIcon` |
|
|
309
|
+
|
|
310
|
+
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`.
|
|
311
|
+
|
|
298
312
|
## Upgrading to 0.7.0
|
|
299
313
|
|
|
300
314
|
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
|
-
|
|
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
|
-
/**
|
|
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
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
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 {
|
|
10
|
-
import { pos, num } from "./params.js";
|
|
11
|
+
import { colour, num, pos } from "./params.js";
|
|
11
12
|
import { definePiece } from "./piece.js";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const
|
|
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
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
|
|
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
|
-
/**
|
|
26
|
-
export const categoryIcon = definePiece("categoryIcon", { category: { kind: "enum", required: true, values: CATEGORY_ICON_NAMES }, x: pos(), y: pos(),
|
|
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);
|
package/dist/src/pieces/cover.js
CHANGED
|
@@ -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
|
|
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 {
|
|
@@ -206,16 +206,18 @@ export declare const tokens: {
|
|
|
206
206
|
};
|
|
207
207
|
readonly site: {
|
|
208
208
|
readonly dark: {
|
|
209
|
-
readonly body: "#
|
|
210
|
-
readonly border: "#
|
|
211
|
-
readonly dark: "#
|
|
212
|
-
readonly light: "#
|
|
213
|
-
readonly
|
|
214
|
-
readonly
|
|
215
|
-
readonly
|
|
216
|
-
readonly
|
|
209
|
+
readonly body: "#121110";
|
|
210
|
+
readonly border: "#3B3834";
|
|
211
|
+
readonly dark: "#F1EEE8";
|
|
212
|
+
readonly light: "#1D1C1A";
|
|
213
|
+
readonly link: "#FF7A45";
|
|
214
|
+
readonly primary: "#F1EEE8";
|
|
215
|
+
readonly text: "#F1EEE8";
|
|
216
|
+
readonly textDark: "#F1EEE8";
|
|
217
|
+
readonly textLight: "#ADA79D";
|
|
217
218
|
};
|
|
218
219
|
readonly font: {
|
|
220
|
+
readonly mono: "'Source Code Pro', monospace";
|
|
219
221
|
readonly primary: "'Source Sans 3', sans-serif";
|
|
220
222
|
readonly secondary: "'Source Serif 4', serif";
|
|
221
223
|
};
|
|
@@ -238,14 +240,15 @@ export declare const tokens: {
|
|
|
238
240
|
readonly h6Small: 1.08;
|
|
239
241
|
};
|
|
240
242
|
readonly light: {
|
|
241
|
-
readonly body: "#
|
|
242
|
-
readonly border: "#
|
|
243
|
-
readonly dark: "#
|
|
244
|
-
readonly light: "#
|
|
243
|
+
readonly body: "#F6F3EC";
|
|
244
|
+
readonly border: "#D7D1C5";
|
|
245
|
+
readonly dark: "#121212";
|
|
246
|
+
readonly light: "#FFFFFF";
|
|
247
|
+
readonly link: "#B83A0C";
|
|
245
248
|
readonly primary: "#121212";
|
|
246
|
-
readonly text: "#
|
|
247
|
-
readonly textDark: "#
|
|
248
|
-
readonly textLight: "#
|
|
249
|
+
readonly text: "#121212";
|
|
250
|
+
readonly textDark: "#121212";
|
|
251
|
+
readonly textLight: "#5C5852";
|
|
249
252
|
};
|
|
250
253
|
};
|
|
251
254
|
readonly surface: {
|
|
@@ -207,16 +207,18 @@ export const tokens = {
|
|
|
207
207
|
},
|
|
208
208
|
"site": {
|
|
209
209
|
"dark": {
|
|
210
|
-
"body": "#
|
|
211
|
-
"border": "#
|
|
212
|
-
"dark": "#
|
|
213
|
-
"light": "#
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
210
|
+
"body": "#121110",
|
|
211
|
+
"border": "#3B3834",
|
|
212
|
+
"dark": "#F1EEE8",
|
|
213
|
+
"light": "#1D1C1A",
|
|
214
|
+
"link": "#FF7A45",
|
|
215
|
+
"primary": "#F1EEE8",
|
|
216
|
+
"text": "#F1EEE8",
|
|
217
|
+
"textDark": "#F1EEE8",
|
|
218
|
+
"textLight": "#ADA79D"
|
|
218
219
|
},
|
|
219
220
|
"font": {
|
|
221
|
+
"mono": "'Source Code Pro', monospace",
|
|
220
222
|
"primary": "'Source Sans 3', sans-serif",
|
|
221
223
|
"secondary": "'Source Serif 4', serif"
|
|
222
224
|
},
|
|
@@ -239,14 +241,15 @@ export const tokens = {
|
|
|
239
241
|
"h6Small": 1.08
|
|
240
242
|
},
|
|
241
243
|
"light": {
|
|
242
|
-
"body": "#
|
|
243
|
-
"border": "#
|
|
244
|
-
"dark": "#
|
|
245
|
-
"light": "#
|
|
244
|
+
"body": "#F6F3EC",
|
|
245
|
+
"border": "#D7D1C5",
|
|
246
|
+
"dark": "#121212",
|
|
247
|
+
"light": "#FFFFFF",
|
|
248
|
+
"link": "#B83A0C",
|
|
246
249
|
"primary": "#121212",
|
|
247
|
-
"text": "#
|
|
248
|
-
"textDark": "#
|
|
249
|
-
"textLight": "#
|
|
250
|
+
"text": "#121212",
|
|
251
|
+
"textDark": "#121212",
|
|
252
|
+
"textLight": "#5C5852"
|
|
250
253
|
}
|
|
251
254
|
},
|
|
252
255
|
"surface": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brunosouzas/design-system",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
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": {
|
|
@@ -141,14 +141,16 @@
|
|
|
141
141
|
--ds-shadow-block: 0px;
|
|
142
142
|
--ds-shadow-pill: 0px;
|
|
143
143
|
--ds-shadow-small: 0px;
|
|
144
|
-
--ds-site-dark-body: #
|
|
145
|
-
--ds-site-dark-border: #
|
|
146
|
-
--ds-site-dark-dark: #
|
|
147
|
-
--ds-site-dark-light: #
|
|
148
|
-
--ds-site-dark-
|
|
149
|
-
--ds-site-dark-
|
|
150
|
-
--ds-site-dark-text
|
|
151
|
-
--ds-site-dark-text-
|
|
144
|
+
--ds-site-dark-body: #121110;
|
|
145
|
+
--ds-site-dark-border: #3B3834;
|
|
146
|
+
--ds-site-dark-dark: #F1EEE8;
|
|
147
|
+
--ds-site-dark-light: #1D1C1A;
|
|
148
|
+
--ds-site-dark-link: #FF7A45;
|
|
149
|
+
--ds-site-dark-primary: #F1EEE8;
|
|
150
|
+
--ds-site-dark-text: #F1EEE8;
|
|
151
|
+
--ds-site-dark-text-dark: #F1EEE8;
|
|
152
|
+
--ds-site-dark-text-light: #ADA79D;
|
|
153
|
+
--ds-site-font-mono: 'Source Code Pro', monospace;
|
|
152
154
|
--ds-site-font-primary: 'Source Sans 3', sans-serif;
|
|
153
155
|
--ds-site-font-secondary: 'Source Serif 4', serif;
|
|
154
156
|
--ds-site-font-size-base: 16px;
|
|
@@ -165,14 +167,15 @@
|
|
|
165
167
|
--ds-site-heading-h5-small: 1.296;
|
|
166
168
|
--ds-site-heading-h6: 1.2;
|
|
167
169
|
--ds-site-heading-h6-small: 1.08;
|
|
168
|
-
--ds-site-light-body: #
|
|
169
|
-
--ds-site-light-border: #
|
|
170
|
-
--ds-site-light-dark: #
|
|
171
|
-
--ds-site-light-light: #
|
|
170
|
+
--ds-site-light-body: #F6F3EC;
|
|
171
|
+
--ds-site-light-border: #D7D1C5;
|
|
172
|
+
--ds-site-light-dark: #121212;
|
|
173
|
+
--ds-site-light-light: #FFFFFF;
|
|
174
|
+
--ds-site-light-link: #B83A0C;
|
|
172
175
|
--ds-site-light-primary: #121212;
|
|
173
|
-
--ds-site-light-text: #
|
|
174
|
-
--ds-site-light-text-dark: #
|
|
175
|
-
--ds-site-light-text-light: #
|
|
176
|
+
--ds-site-light-text: #121212;
|
|
177
|
+
--ds-site-light-text-dark: #121212;
|
|
178
|
+
--ds-site-light-text-light: #5C5852;
|
|
176
179
|
--ds-surface-dark-backdrop-credit: #9AA6D6;
|
|
177
180
|
--ds-surface-dark-backdrop-park: #183F52;
|
|
178
181
|
--ds-surface-dark-backdrop-water: #1E3175;
|
|
@@ -206,16 +206,18 @@
|
|
|
206
206
|
},
|
|
207
207
|
"site": {
|
|
208
208
|
"dark": {
|
|
209
|
-
"body": "#
|
|
210
|
-
"border": "#
|
|
211
|
-
"dark": "#
|
|
212
|
-
"light": "#
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
209
|
+
"body": "#121110",
|
|
210
|
+
"border": "#3B3834",
|
|
211
|
+
"dark": "#F1EEE8",
|
|
212
|
+
"light": "#1D1C1A",
|
|
213
|
+
"link": "#FF7A45",
|
|
214
|
+
"primary": "#F1EEE8",
|
|
215
|
+
"text": "#F1EEE8",
|
|
216
|
+
"textDark": "#F1EEE8",
|
|
217
|
+
"textLight": "#ADA79D"
|
|
217
218
|
},
|
|
218
219
|
"font": {
|
|
220
|
+
"mono": "'Source Code Pro', monospace",
|
|
219
221
|
"primary": "'Source Sans 3', sans-serif",
|
|
220
222
|
"secondary": "'Source Serif 4', serif"
|
|
221
223
|
},
|
|
@@ -238,14 +240,15 @@
|
|
|
238
240
|
"h6Small": 1.08
|
|
239
241
|
},
|
|
240
242
|
"light": {
|
|
241
|
-
"body": "#
|
|
242
|
-
"border": "#
|
|
243
|
-
"dark": "#
|
|
244
|
-
"light": "#
|
|
243
|
+
"body": "#F6F3EC",
|
|
244
|
+
"border": "#D7D1C5",
|
|
245
|
+
"dark": "#121212",
|
|
246
|
+
"light": "#FFFFFF",
|
|
247
|
+
"link": "#B83A0C",
|
|
245
248
|
"primary": "#121212",
|
|
246
|
-
"text": "#
|
|
247
|
-
"textDark": "#
|
|
248
|
-
"textLight": "#
|
|
249
|
+
"text": "#121212",
|
|
250
|
+
"textDark": "#121212",
|
|
251
|
+
"textLight": "#5C5852"
|
|
249
252
|
}
|
|
250
253
|
},
|
|
251
254
|
"surface": {
|
|
@@ -208,16 +208,18 @@ export const tokens = {
|
|
|
208
208
|
},
|
|
209
209
|
"site": {
|
|
210
210
|
"dark": {
|
|
211
|
-
"body": "#
|
|
212
|
-
"border": "#
|
|
213
|
-
"dark": "#
|
|
214
|
-
"light": "#
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
"
|
|
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"
|
|
219
220
|
},
|
|
220
221
|
"font": {
|
|
222
|
+
"mono": "'Source Code Pro', monospace",
|
|
221
223
|
"primary": "'Source Sans 3', sans-serif",
|
|
222
224
|
"secondary": "'Source Serif 4', serif"
|
|
223
225
|
},
|
|
@@ -240,14 +242,15 @@ export const tokens = {
|
|
|
240
242
|
"h6Small": 1.08
|
|
241
243
|
},
|
|
242
244
|
"light": {
|
|
243
|
-
"body": "#
|
|
244
|
-
"border": "#
|
|
245
|
-
"dark": "#
|
|
246
|
-
"light": "#
|
|
245
|
+
"body": "#F6F3EC",
|
|
246
|
+
"border": "#D7D1C5",
|
|
247
|
+
"dark": "#121212",
|
|
248
|
+
"light": "#FFFFFF",
|
|
249
|
+
"link": "#B83A0C",
|
|
247
250
|
"primary": "#121212",
|
|
248
|
-
"text": "#
|
|
249
|
-
"textDark": "#
|
|
250
|
-
"textLight": "#
|
|
251
|
+
"text": "#121212",
|
|
252
|
+
"textDark": "#121212",
|
|
253
|
+
"textLight": "#5C5852"
|
|
251
254
|
}
|
|
252
255
|
},
|
|
253
256
|
"surface": {
|