@welcome-back/brand 0.11.0 → 0.13.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 +106 -3
- package/dist/cjs/IllustratedIcon.js +18 -0
- package/dist/cjs/ModuleIcon.js +63 -0
- package/dist/cjs/illustratedArt.generated.js +993 -0
- package/dist/cjs/illustrationColours.js +27 -0
- package/dist/cjs/index.js +9 -1
- package/dist/esm/IllustratedIcon.d.ts +16 -0
- package/dist/esm/IllustratedIcon.js +14 -0
- package/dist/esm/ModuleIcon.d.ts +27 -0
- package/dist/esm/ModuleIcon.js +59 -0
- package/dist/esm/categoryPalette.d.ts +2 -2
- package/dist/esm/illustratedArt.generated.d.ts +528 -0
- package/dist/esm/illustratedArt.generated.js +990 -0
- package/dist/esm/illustrationColours.d.ts +25 -0
- package/dist/esm/illustrationColours.js +24 -0
- package/dist/esm/index.d.ts +6 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/posTokens.d.ts +16 -16
- package/package.json +3 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colours of the illustrated icons (Paper 01M72Y4K1ZCAWQ5WGA3CD16CFN, style of
|
|
3
|
+
* the weekly product email). The same values are the `--color-illus-*` tokens
|
|
4
|
+
* in the wb-ui design system file.
|
|
5
|
+
*
|
|
6
|
+
* Drawings only. Soft colours are for art, strong colours are for app
|
|
7
|
+
* messages: never use these as status colours, and never put coral on a badge
|
|
8
|
+
* or a pill with a number (it reads as an error or a notification).
|
|
9
|
+
*/
|
|
10
|
+
export declare const ILLUSTRATION_COLOURS: {
|
|
11
|
+
readonly ink: "#1D1D1F";
|
|
12
|
+
readonly paper: "#FFFAF0";
|
|
13
|
+
readonly paperBorder: "#EDEADE";
|
|
14
|
+
readonly paperShade: "#F1EADB";
|
|
15
|
+
readonly shadow: "#1D1D1F12";
|
|
16
|
+
readonly muted: "#1D1D1F55";
|
|
17
|
+
readonly white: "#FFFFFF";
|
|
18
|
+
readonly yellow: "#FFE45C";
|
|
19
|
+
readonly green: "#BFD98A";
|
|
20
|
+
readonly coral: "#F07B5A";
|
|
21
|
+
readonly crust: "#F2D49B";
|
|
22
|
+
readonly kraft: "#E3BE7A";
|
|
23
|
+
readonly kraftDark: "#C9A060";
|
|
24
|
+
};
|
|
25
|
+
export type IllustrationColour = keyof typeof ILLUSTRATION_COLOURS;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Colours of the illustrated icons (Paper 01M72Y4K1ZCAWQ5WGA3CD16CFN, style of
|
|
3
|
+
* the weekly product email). The same values are the `--color-illus-*` tokens
|
|
4
|
+
* in the wb-ui design system file.
|
|
5
|
+
*
|
|
6
|
+
* Drawings only. Soft colours are for art, strong colours are for app
|
|
7
|
+
* messages: never use these as status colours, and never put coral on a badge
|
|
8
|
+
* or a pill with a number (it reads as an error or a notification).
|
|
9
|
+
*/
|
|
10
|
+
export const ILLUSTRATION_COLOURS = {
|
|
11
|
+
ink: "#1D1D1F",
|
|
12
|
+
paper: "#FFFAF0",
|
|
13
|
+
paperBorder: "#EDEADE",
|
|
14
|
+
paperShade: "#F1EADB",
|
|
15
|
+
shadow: "#1D1D1F12",
|
|
16
|
+
muted: "#1D1D1F55",
|
|
17
|
+
white: "#FFFFFF",
|
|
18
|
+
yellow: "#FFE45C",
|
|
19
|
+
green: "#BFD98A",
|
|
20
|
+
coral: "#F07B5A",
|
|
21
|
+
crust: "#F2D49B",
|
|
22
|
+
kraft: "#E3BE7A",
|
|
23
|
+
kraftDark: "#C9A060",
|
|
24
|
+
};
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
export { RunnerLoader } from "./RunnerLoader.js";
|
|
2
2
|
export type { RunnerLoaderProps } from "./RunnerLoader.js";
|
|
3
|
+
export { ModuleIcon, MODULE_ICON_NAMES } from "./ModuleIcon.js";
|
|
4
|
+
export type { ModuleIconName, ModuleIconProps } from "./ModuleIcon.js";
|
|
5
|
+
export { IllustratedIcon, ILLUSTRATED_ICONS } from "./IllustratedIcon.js";
|
|
6
|
+
export type { IllustratedIconName, IllustratedIconProps } from "./IllustratedIcon.js";
|
|
7
|
+
export { ILLUSTRATION_COLOURS } from "./illustrationColours.js";
|
|
8
|
+
export type { IllustrationColour } from "./illustrationColours.js";
|
|
3
9
|
export { POS_DARK_CLASS, POS_DARK_TOKENS, POS_TOKENS, POS_WIDE_MIN_WIDTH, posDarkTokensCss, posTokensCss, } from "./posTokens.js";
|
|
4
10
|
export type { PosToken } from "./posTokens.js";
|
|
5
11
|
export { CATEGORY_PALETTE, CATEGORY_PALETTE_DARK, CATEGORY_PALETTE_DARK_TOKENS, CATEGORY_PALETTE_TOKENS, DEFAULT_CATEGORY_SLOT, categorySlotForIndex, } from "./categoryPalette.js";
|
package/dist/esm/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export { RunnerLoader } from "./RunnerLoader.js";
|
|
2
|
+
export { ModuleIcon, MODULE_ICON_NAMES } from "./ModuleIcon.js";
|
|
3
|
+
export { IllustratedIcon, ILLUSTRATED_ICONS } from "./IllustratedIcon.js";
|
|
4
|
+
export { ILLUSTRATION_COLOURS } from "./illustrationColours.js";
|
|
2
5
|
export { POS_DARK_CLASS, POS_DARK_TOKENS, POS_TOKENS, POS_WIDE_MIN_WIDTH, posDarkTokensCss, posTokensCss, } from "./posTokens.js";
|
|
3
6
|
export { CATEGORY_PALETTE, CATEGORY_PALETTE_DARK, CATEGORY_PALETTE_DARK_TOKENS, CATEGORY_PALETTE_TOKENS, DEFAULT_CATEGORY_SLOT, categorySlotForIndex, } from "./categoryPalette.js";
|
|
4
7
|
export { PRODUCT_IMAGE_FRAMES, productImageAspectRatio, productImageKeptArea, } from "./productImageFrames.js";
|
package/dist/esm/posTokens.d.ts
CHANGED
|
@@ -3,10 +3,6 @@ export declare const POS_TOKENS: {
|
|
|
3
3
|
readonly "--wb-cat-1-tint": string;
|
|
4
4
|
readonly "--wb-cat-1-slot": string;
|
|
5
5
|
readonly "--wb-cat-1-ink": string;
|
|
6
|
-
readonly "--wb-cat-8": string;
|
|
7
|
-
readonly "--wb-cat-8-tint": string;
|
|
8
|
-
readonly "--wb-cat-8-slot": string;
|
|
9
|
-
readonly "--wb-cat-8-ink": string;
|
|
10
6
|
readonly "--wb-cat-2": string;
|
|
11
7
|
readonly "--wb-cat-2-tint": string;
|
|
12
8
|
readonly "--wb-cat-2-slot": string;
|
|
@@ -15,18 +11,22 @@ export declare const POS_TOKENS: {
|
|
|
15
11
|
readonly "--wb-cat-3-tint": string;
|
|
16
12
|
readonly "--wb-cat-3-slot": string;
|
|
17
13
|
readonly "--wb-cat-3-ink": string;
|
|
18
|
-
readonly "--wb-cat-4": string;
|
|
19
|
-
readonly "--wb-cat-4-tint": string;
|
|
20
|
-
readonly "--wb-cat-4-slot": string;
|
|
21
|
-
readonly "--wb-cat-4-ink": string;
|
|
22
14
|
readonly "--wb-cat-5": string;
|
|
23
15
|
readonly "--wb-cat-5-tint": string;
|
|
24
16
|
readonly "--wb-cat-5-slot": string;
|
|
25
17
|
readonly "--wb-cat-5-ink": string;
|
|
18
|
+
readonly "--wb-cat-4": string;
|
|
19
|
+
readonly "--wb-cat-4-tint": string;
|
|
20
|
+
readonly "--wb-cat-4-slot": string;
|
|
21
|
+
readonly "--wb-cat-4-ink": string;
|
|
26
22
|
readonly "--wb-cat-6": string;
|
|
27
23
|
readonly "--wb-cat-6-tint": string;
|
|
28
24
|
readonly "--wb-cat-6-slot": string;
|
|
29
25
|
readonly "--wb-cat-6-ink": string;
|
|
26
|
+
readonly "--wb-cat-8": string;
|
|
27
|
+
readonly "--wb-cat-8-tint": string;
|
|
28
|
+
readonly "--wb-cat-8-slot": string;
|
|
29
|
+
readonly "--wb-cat-8-ink": string;
|
|
30
30
|
readonly "--wb-cat-7": string;
|
|
31
31
|
readonly "--wb-cat-7-tint": string;
|
|
32
32
|
readonly "--wb-cat-7-slot": string;
|
|
@@ -104,10 +104,6 @@ export declare const POS_DARK_TOKENS: {
|
|
|
104
104
|
readonly "--wb-cat-1-tint": string;
|
|
105
105
|
readonly "--wb-cat-1-slot": string;
|
|
106
106
|
readonly "--wb-cat-1-ink": string;
|
|
107
|
-
readonly "--wb-cat-8": string;
|
|
108
|
-
readonly "--wb-cat-8-tint": string;
|
|
109
|
-
readonly "--wb-cat-8-slot": string;
|
|
110
|
-
readonly "--wb-cat-8-ink": string;
|
|
111
107
|
readonly "--wb-cat-2": string;
|
|
112
108
|
readonly "--wb-cat-2-tint": string;
|
|
113
109
|
readonly "--wb-cat-2-slot": string;
|
|
@@ -116,18 +112,22 @@ export declare const POS_DARK_TOKENS: {
|
|
|
116
112
|
readonly "--wb-cat-3-tint": string;
|
|
117
113
|
readonly "--wb-cat-3-slot": string;
|
|
118
114
|
readonly "--wb-cat-3-ink": string;
|
|
119
|
-
readonly "--wb-cat-4": string;
|
|
120
|
-
readonly "--wb-cat-4-tint": string;
|
|
121
|
-
readonly "--wb-cat-4-slot": string;
|
|
122
|
-
readonly "--wb-cat-4-ink": string;
|
|
123
115
|
readonly "--wb-cat-5": string;
|
|
124
116
|
readonly "--wb-cat-5-tint": string;
|
|
125
117
|
readonly "--wb-cat-5-slot": string;
|
|
126
118
|
readonly "--wb-cat-5-ink": string;
|
|
119
|
+
readonly "--wb-cat-4": string;
|
|
120
|
+
readonly "--wb-cat-4-tint": string;
|
|
121
|
+
readonly "--wb-cat-4-slot": string;
|
|
122
|
+
readonly "--wb-cat-4-ink": string;
|
|
127
123
|
readonly "--wb-cat-6": string;
|
|
128
124
|
readonly "--wb-cat-6-tint": string;
|
|
129
125
|
readonly "--wb-cat-6-slot": string;
|
|
130
126
|
readonly "--wb-cat-6-ink": string;
|
|
127
|
+
readonly "--wb-cat-8": string;
|
|
128
|
+
readonly "--wb-cat-8-tint": string;
|
|
129
|
+
readonly "--wb-cat-8-slot": string;
|
|
130
|
+
readonly "--wb-cat-8-ink": string;
|
|
131
131
|
readonly "--wb-cat-7": string;
|
|
132
132
|
readonly "--wb-cat-7-tint": string;
|
|
133
133
|
readonly "--wb-cat-7-slot": string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@welcome-back/brand",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "WelcomeBack brand assets for React apps: the running-W loader and the POS design tokens.",
|
|
3
|
+
"version": "0.13.0",
|
|
4
|
+
"description": "WelcomeBack brand assets for React apps: the running-W loader, the module icons, 105 illustrated icons and the POS design tokens.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dist"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"build": "rm -rf dist && tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node scripts/mark-cjs.mjs && node scripts/write-pos-tokens-css.mjs",
|
|
27
|
+
"build": "rm -rf dist && node scripts/build-illustrations.mjs && tsc -p tsconfig.build.json && tsc -p tsconfig.cjs.json && node scripts/mark-cjs.mjs && node scripts/write-pos-tokens-css.mjs",
|
|
28
28
|
"typecheck": "tsc --noEmit",
|
|
29
29
|
"test": "vitest run",
|
|
30
30
|
"prepublishOnly": "npm run typecheck && npm test && npm run build"
|