@welcome-back/brand 0.4.0 → 0.5.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.
@@ -24,11 +24,12 @@ exports.POS_TOKENS = {
24
24
  // tokens are complete colors — Tailwind's `/NN` alpha modifier on them
25
25
  // compiles to an invalid rgb() and renders transparent.
26
26
  "--wb-accent-soft": "rgba(23, 23, 23, 0.06)",
27
- // Warm ivory neutrals — the identity. Never cool gray.
28
- "--wb-bg": "#f6f4e9",
27
+ // White page like the dashboard (owner, 2026-10-21); warm neutrals for
28
+ // surfaces and borders. Ivory stays on the ticket, like paper.
29
+ "--wb-bg": "#ffffff",
29
30
  "--wb-surface": "#ffffff",
30
31
  "--wb-surface2": "#f2f1ec",
31
- "--wb-ticket-bg": "#f2f1ec",
32
+ "--wb-ticket-bg": "#f6f4e9",
32
33
  "--wb-border": "#e5e2d6",
33
34
  // Translucent ivory veil for overlays (e.g. "Agotado").
34
35
  "--wb-veil": "rgba(246, 244, 233, 0.72)",
@@ -46,9 +47,17 @@ exports.POS_TOKENS = {
46
47
  "--wb-primary-soft": "rgba(23, 23, 23, 0.15)",
47
48
  // The brand tone. Same as the primary: the POS is monochrome.
48
49
  "--wb-brand": "#171717",
50
+ // 12 px everywhere like the dashboard, 6 px for items inside a control
51
+ // (segmented options). Owner, 2026-10-21.
49
52
  "--wb-radius": "12px",
50
- "--wb-radius-lg": "16px",
51
- "--wb-font": "'Montserrat'",
53
+ "--wb-radius-lg": "12px",
54
+ "--wb-radius-sm": "6px",
55
+ // Touch sizes: the POS differs from the dashboard (36 px) on purpose.
56
+ // 48 px controls, 56 px for money actions (Cobrar, keypad), 44 px floor.
57
+ "--wb-control-height": "48px",
58
+ "--wb-control-height-lg": "56px",
59
+ "--wb-touch-min": "44px",
60
+ "--wb-font": "'Inter'",
52
61
  };
53
62
  /** The tokens as one CSS rule, for apps that load them as a stylesheet. */
54
63
  function posTokensCss(selector = ":root") {
@@ -15,10 +15,10 @@ export declare const POS_TOKENS: {
15
15
  readonly "--wb-on-accent": "#ffffff";
16
16
  readonly "--wb-on-accent-soft": "rgba(255, 255, 255, 0.2)";
17
17
  readonly "--wb-accent-soft": "rgba(23, 23, 23, 0.06)";
18
- readonly "--wb-bg": "#f6f4e9";
18
+ readonly "--wb-bg": "#ffffff";
19
19
  readonly "--wb-surface": "#ffffff";
20
20
  readonly "--wb-surface2": "#f2f1ec";
21
- readonly "--wb-ticket-bg": "#f2f1ec";
21
+ readonly "--wb-ticket-bg": "#f6f4e9";
22
22
  readonly "--wb-border": "#e5e2d6";
23
23
  readonly "--wb-veil": "rgba(246, 244, 233, 0.72)";
24
24
  readonly "--wb-text": "#000000";
@@ -33,8 +33,12 @@ export declare const POS_TOKENS: {
33
33
  readonly "--wb-primary-soft": "rgba(23, 23, 23, 0.15)";
34
34
  readonly "--wb-brand": "#171717";
35
35
  readonly "--wb-radius": "12px";
36
- readonly "--wb-radius-lg": "16px";
37
- readonly "--wb-font": "'Montserrat'";
36
+ readonly "--wb-radius-lg": "12px";
37
+ readonly "--wb-radius-sm": "6px";
38
+ readonly "--wb-control-height": "48px";
39
+ readonly "--wb-control-height-lg": "56px";
40
+ readonly "--wb-touch-min": "44px";
41
+ readonly "--wb-font": "'Inter'";
38
42
  };
39
43
  export type PosToken = keyof typeof POS_TOKENS;
40
44
  /** The tokens as one CSS rule, for apps that load them as a stylesheet. */
@@ -20,11 +20,12 @@ export const POS_TOKENS = {
20
20
  // tokens are complete colors — Tailwind's `/NN` alpha modifier on them
21
21
  // compiles to an invalid rgb() and renders transparent.
22
22
  "--wb-accent-soft": "rgba(23, 23, 23, 0.06)",
23
- // Warm ivory neutrals — the identity. Never cool gray.
24
- "--wb-bg": "#f6f4e9",
23
+ // White page like the dashboard (owner, 2026-10-21); warm neutrals for
24
+ // surfaces and borders. Ivory stays on the ticket, like paper.
25
+ "--wb-bg": "#ffffff",
25
26
  "--wb-surface": "#ffffff",
26
27
  "--wb-surface2": "#f2f1ec",
27
- "--wb-ticket-bg": "#f2f1ec",
28
+ "--wb-ticket-bg": "#f6f4e9",
28
29
  "--wb-border": "#e5e2d6",
29
30
  // Translucent ivory veil for overlays (e.g. "Agotado").
30
31
  "--wb-veil": "rgba(246, 244, 233, 0.72)",
@@ -42,9 +43,17 @@ export const POS_TOKENS = {
42
43
  "--wb-primary-soft": "rgba(23, 23, 23, 0.15)",
43
44
  // The brand tone. Same as the primary: the POS is monochrome.
44
45
  "--wb-brand": "#171717",
46
+ // 12 px everywhere like the dashboard, 6 px for items inside a control
47
+ // (segmented options). Owner, 2026-10-21.
45
48
  "--wb-radius": "12px",
46
- "--wb-radius-lg": "16px",
47
- "--wb-font": "'Montserrat'",
49
+ "--wb-radius-lg": "12px",
50
+ "--wb-radius-sm": "6px",
51
+ // Touch sizes: the POS differs from the dashboard (36 px) on purpose.
52
+ // 48 px controls, 56 px for money actions (Cobrar, keypad), 44 px floor.
53
+ "--wb-control-height": "48px",
54
+ "--wb-control-height-lg": "56px",
55
+ "--wb-touch-min": "44px",
56
+ "--wb-font": "'Inter'",
48
57
  };
49
58
  /** The tokens as one CSS rule, for apps that load them as a stylesheet. */
50
59
  export function posTokensCss(selector = ":root") {
@@ -5,10 +5,10 @@
5
5
  --wb-on-accent: #ffffff;
6
6
  --wb-on-accent-soft: rgba(255, 255, 255, 0.2);
7
7
  --wb-accent-soft: rgba(23, 23, 23, 0.06);
8
- --wb-bg: #f6f4e9;
8
+ --wb-bg: #ffffff;
9
9
  --wb-surface: #ffffff;
10
10
  --wb-surface2: #f2f1ec;
11
- --wb-ticket-bg: #f2f1ec;
11
+ --wb-ticket-bg: #f6f4e9;
12
12
  --wb-border: #e5e2d6;
13
13
  --wb-veil: rgba(246, 244, 233, 0.72);
14
14
  --wb-text: #000000;
@@ -23,6 +23,10 @@
23
23
  --wb-primary-soft: rgba(23, 23, 23, 0.15);
24
24
  --wb-brand: #171717;
25
25
  --wb-radius: 12px;
26
- --wb-radius-lg: 16px;
27
- --wb-font: 'Montserrat';
26
+ --wb-radius-lg: 12px;
27
+ --wb-radius-sm: 6px;
28
+ --wb-control-height: 48px;
29
+ --wb-control-height-lg: 56px;
30
+ --wb-touch-min: 44px;
31
+ --wb-font: 'Inter';
28
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@welcome-back/brand",
3
- "version": "0.4.0",
3
+ "version": "0.5.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": {