@welcome-back/brand 0.10.2 → 0.11.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 CHANGED
@@ -315,7 +315,7 @@ In React (the dashboard previews):
315
315
  import { POS_TOKENS } from '@welcome-back/brand';
316
316
 
317
317
  <div style={POS_TOKENS as React.CSSProperties}>…</div>;
318
- POS_TOKENS['--wb-accent']; // '#171717'
318
+ POS_TOKENS['--wb-accent']; // '#26231f'
319
319
  ```
320
320
 
321
321
  `posTokensCss(selector)` returns the same rule for another selector.
@@ -16,16 +16,17 @@ exports.posDarkTokensCss = posDarkTokensCss;
16
16
  */
17
17
  const categoryPalette_js_1 = require("./categoryPalette.js");
18
18
  exports.POS_TOKENS = {
19
- // Monochrome chrome on a warm ivory canvas (pos-ui DESIGN.md §3).
20
- "--wb-primary": "#171717",
21
- "--wb-accent": "#171717",
19
+ // Monochrome chrome on a warm ivory canvas (pos-ui DESIGN.md §3). A warm
20
+ // charcoal, not pure black (owner, 2026-10-29: the black felt heavy).
21
+ "--wb-primary": "#26231f",
22
+ "--wb-accent": "#26231f",
22
23
  "--wb-on-accent": "#ffffff",
23
24
  // Light fill on an accent surface (the close button over a dark card).
24
25
  "--wb-on-accent-soft": "rgba(255, 255, 255, 0.2)",
25
26
  // Tonal fill for hover/selected. A `-soft` token exists because the theme
26
27
  // tokens are complete colors — Tailwind's `/NN` alpha modifier on them
27
28
  // compiles to an invalid rgb() and renders transparent.
28
- "--wb-accent-soft": "rgba(23, 23, 23, 0.06)",
29
+ "--wb-accent-soft": "rgba(38, 35, 31, 0.06)",
29
30
  // White page like the dashboard (owner, 2026-10-21); warm neutrals for
30
31
  // surfaces and borders. Ivory stays on the ticket, like paper.
31
32
  // Contrast floors (WB-3159, owner 2026-10-26: cheap, bright screens lose the
@@ -49,7 +50,7 @@ exports.POS_TOKENS = {
49
50
  "--wb-border-strong": "#878172",
50
51
  // Translucent ivory veil for overlays (e.g. "Agotado").
51
52
  "--wb-veil": "rgba(246, 244, 233, 0.72)",
52
- "--wb-text": "#000000",
53
+ "--wb-text": "#1c1a17",
53
54
  "--wb-muted": "#404040",
54
55
  "--wb-success": "#22c55e",
55
56
  "--wb-success-soft": "rgba(34, 197, 94, 0.15)",
@@ -68,9 +69,9 @@ exports.POS_TOKENS = {
68
69
  "--wb-soldout-ink": "#713f12",
69
70
  // Placeholder and hint text (>= 6:1 on bg, surface2 and the ticket).
70
71
  "--wb-faint": "#565249",
71
- "--wb-primary-soft": "rgba(23, 23, 23, 0.15)",
72
+ "--wb-primary-soft": "rgba(38, 35, 31, 0.15)",
72
73
  // The keyboard focus ring (3 px), pos-ui `.focus-ring`. Paper C1.
73
- "--wb-ring-soft": "rgba(23, 23, 23, 0.5)",
74
+ "--wb-ring-soft": "rgba(38, 35, 31, 0.5)",
74
75
  // Text and marks on a photo or a category colour (square tiles, owner
75
76
  // 2026-10-21). The same in light and dark: a photo does not change. The
76
77
  // scrim sits behind the text block only, never the whole tile (owner,
@@ -82,7 +83,7 @@ exports.POS_TOKENS = {
82
83
  "--wb-media-veil": "rgba(255, 255, 255, 0.35)",
83
84
  "--wb-media-scrim": "linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.55) calc(100% - 28px), rgba(0, 0, 0, 0) 100%)",
84
85
  // The brand tone. Same as the primary: the POS is monochrome.
85
- "--wb-brand": "#171717",
86
+ "--wb-brand": "#26231f",
86
87
  // 12 px everywhere like the dashboard, 6 px for items inside a control
87
88
  // (segmented options). Owner, 2026-10-21.
88
89
  "--wb-radius": "12px",
@@ -31,11 +31,11 @@ export declare const POS_TOKENS: {
31
31
  readonly "--wb-cat-7-tint": string;
32
32
  readonly "--wb-cat-7-slot": string;
33
33
  readonly "--wb-cat-7-ink": string;
34
- readonly "--wb-primary": "#171717";
35
- readonly "--wb-accent": "#171717";
34
+ readonly "--wb-primary": "#26231f";
35
+ readonly "--wb-accent": "#26231f";
36
36
  readonly "--wb-on-accent": "#ffffff";
37
37
  readonly "--wb-on-accent-soft": "rgba(255, 255, 255, 0.2)";
38
- readonly "--wb-accent-soft": "rgba(23, 23, 23, 0.06)";
38
+ readonly "--wb-accent-soft": "rgba(38, 35, 31, 0.06)";
39
39
  readonly "--wb-bg": "#ffffff";
40
40
  readonly "--wb-surface": "#ffffff";
41
41
  readonly "--wb-surface2": "#e6e4db";
@@ -44,7 +44,7 @@ export declare const POS_TOKENS: {
44
44
  readonly "--wb-border": "#cec9bb";
45
45
  readonly "--wb-border-strong": "#878172";
46
46
  readonly "--wb-veil": "rgba(246, 244, 233, 0.72)";
47
- readonly "--wb-text": "#000000";
47
+ readonly "--wb-text": "#1c1a17";
48
48
  readonly "--wb-muted": "#404040";
49
49
  readonly "--wb-success": "#22c55e";
50
50
  readonly "--wb-success-soft": "rgba(34, 197, 94, 0.15)";
@@ -58,14 +58,14 @@ export declare const POS_TOKENS: {
58
58
  readonly "--wb-soldout": "#fef3c7";
59
59
  readonly "--wb-soldout-ink": "#713f12";
60
60
  readonly "--wb-faint": "#565249";
61
- readonly "--wb-primary-soft": "rgba(23, 23, 23, 0.15)";
62
- readonly "--wb-ring-soft": "rgba(23, 23, 23, 0.5)";
61
+ readonly "--wb-primary-soft": "rgba(38, 35, 31, 0.15)";
62
+ readonly "--wb-ring-soft": "rgba(38, 35, 31, 0.5)";
63
63
  readonly "--wb-on-media": "#ffffff";
64
64
  readonly "--wb-on-media-muted": "rgba(255, 255, 255, 0.85)";
65
65
  readonly "--wb-media-ink": "#000000";
66
66
  readonly "--wb-media-veil": "rgba(255, 255, 255, 0.35)";
67
67
  readonly "--wb-media-scrim": "linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.55) calc(100% - 28px), rgba(0, 0, 0, 0) 100%)";
68
- readonly "--wb-brand": "#171717";
68
+ readonly "--wb-brand": "#26231f";
69
69
  readonly "--wb-radius": "12px";
70
70
  readonly "--wb-radius-lg": "12px";
71
71
  readonly "--wb-radius-sm": "6px";
@@ -11,16 +11,17 @@
11
11
  */
12
12
  import { CATEGORY_PALETTE_DARK_TOKENS, CATEGORY_PALETTE_TOKENS } from "./categoryPalette.js";
13
13
  export const POS_TOKENS = {
14
- // Monochrome chrome on a warm ivory canvas (pos-ui DESIGN.md §3).
15
- "--wb-primary": "#171717",
16
- "--wb-accent": "#171717",
14
+ // Monochrome chrome on a warm ivory canvas (pos-ui DESIGN.md §3). A warm
15
+ // charcoal, not pure black (owner, 2026-10-29: the black felt heavy).
16
+ "--wb-primary": "#26231f",
17
+ "--wb-accent": "#26231f",
17
18
  "--wb-on-accent": "#ffffff",
18
19
  // Light fill on an accent surface (the close button over a dark card).
19
20
  "--wb-on-accent-soft": "rgba(255, 255, 255, 0.2)",
20
21
  // Tonal fill for hover/selected. A `-soft` token exists because the theme
21
22
  // tokens are complete colors — Tailwind's `/NN` alpha modifier on them
22
23
  // compiles to an invalid rgb() and renders transparent.
23
- "--wb-accent-soft": "rgba(23, 23, 23, 0.06)",
24
+ "--wb-accent-soft": "rgba(38, 35, 31, 0.06)",
24
25
  // White page like the dashboard (owner, 2026-10-21); warm neutrals for
25
26
  // surfaces and borders. Ivory stays on the ticket, like paper.
26
27
  // Contrast floors (WB-3159, owner 2026-10-26: cheap, bright screens lose the
@@ -44,7 +45,7 @@ export const POS_TOKENS = {
44
45
  "--wb-border-strong": "#878172",
45
46
  // Translucent ivory veil for overlays (e.g. "Agotado").
46
47
  "--wb-veil": "rgba(246, 244, 233, 0.72)",
47
- "--wb-text": "#000000",
48
+ "--wb-text": "#1c1a17",
48
49
  "--wb-muted": "#404040",
49
50
  "--wb-success": "#22c55e",
50
51
  "--wb-success-soft": "rgba(34, 197, 94, 0.15)",
@@ -63,9 +64,9 @@ export const POS_TOKENS = {
63
64
  "--wb-soldout-ink": "#713f12",
64
65
  // Placeholder and hint text (>= 6:1 on bg, surface2 and the ticket).
65
66
  "--wb-faint": "#565249",
66
- "--wb-primary-soft": "rgba(23, 23, 23, 0.15)",
67
+ "--wb-primary-soft": "rgba(38, 35, 31, 0.15)",
67
68
  // The keyboard focus ring (3 px), pos-ui `.focus-ring`. Paper C1.
68
- "--wb-ring-soft": "rgba(23, 23, 23, 0.5)",
69
+ "--wb-ring-soft": "rgba(38, 35, 31, 0.5)",
69
70
  // Text and marks on a photo or a category colour (square tiles, owner
70
71
  // 2026-10-21). The same in light and dark: a photo does not change. The
71
72
  // scrim sits behind the text block only, never the whole tile (owner,
@@ -77,7 +78,7 @@ export const POS_TOKENS = {
77
78
  "--wb-media-veil": "rgba(255, 255, 255, 0.35)",
78
79
  "--wb-media-scrim": "linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.55) calc(100% - 28px), rgba(0, 0, 0, 0) 100%)",
79
80
  // The brand tone. Same as the primary: the POS is monochrome.
80
- "--wb-brand": "#171717",
81
+ "--wb-brand": "#26231f",
81
82
  // 12 px everywhere like the dashboard, 6 px for items inside a control
82
83
  // (segmented options). Owner, 2026-10-21.
83
84
  "--wb-radius": "12px",
@@ -1,10 +1,10 @@
1
1
  /* Generated from src/posTokens.ts by scripts/write-pos-tokens-css.mjs. Do not edit. */
2
2
  :root {
3
- --wb-primary: #171717;
4
- --wb-accent: #171717;
3
+ --wb-primary: #26231f;
4
+ --wb-accent: #26231f;
5
5
  --wb-on-accent: #ffffff;
6
6
  --wb-on-accent-soft: rgba(255, 255, 255, 0.2);
7
- --wb-accent-soft: rgba(23, 23, 23, 0.06);
7
+ --wb-accent-soft: rgba(38, 35, 31, 0.06);
8
8
  --wb-bg: #ffffff;
9
9
  --wb-surface: #ffffff;
10
10
  --wb-surface2: #e6e4db;
@@ -13,7 +13,7 @@
13
13
  --wb-border: #cec9bb;
14
14
  --wb-border-strong: #878172;
15
15
  --wb-veil: rgba(246, 244, 233, 0.72);
16
- --wb-text: #000000;
16
+ --wb-text: #1c1a17;
17
17
  --wb-muted: #404040;
18
18
  --wb-success: #22c55e;
19
19
  --wb-success-soft: rgba(34, 197, 94, 0.15);
@@ -27,14 +27,14 @@
27
27
  --wb-soldout: #fef3c7;
28
28
  --wb-soldout-ink: #713f12;
29
29
  --wb-faint: #565249;
30
- --wb-primary-soft: rgba(23, 23, 23, 0.15);
31
- --wb-ring-soft: rgba(23, 23, 23, 0.5);
30
+ --wb-primary-soft: rgba(38, 35, 31, 0.15);
31
+ --wb-ring-soft: rgba(38, 35, 31, 0.5);
32
32
  --wb-on-media: #ffffff;
33
33
  --wb-on-media-muted: rgba(255, 255, 255, 0.85);
34
34
  --wb-media-ink: #000000;
35
35
  --wb-media-veil: rgba(255, 255, 255, 0.35);
36
36
  --wb-media-scrim: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.55) calc(100% - 28px), rgba(0, 0, 0, 0) 100%);
37
- --wb-brand: #171717;
37
+ --wb-brand: #26231f;
38
38
  --wb-radius: 12px;
39
39
  --wb-radius-lg: 12px;
40
40
  --wb-radius-sm: 6px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@welcome-back/brand",
3
- "version": "0.10.2",
3
+ "version": "0.11.0",
4
4
  "description": "WelcomeBack brand assets for React apps: the running-W loader and the POS design tokens.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {