@welcome-back/brand 0.3.0 → 0.4.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.
@@ -18,6 +18,8 @@ exports.POS_TOKENS = {
18
18
  "--wb-primary": "#171717",
19
19
  "--wb-accent": "#171717",
20
20
  "--wb-on-accent": "#ffffff",
21
+ // Light fill on an accent surface (the close button over a dark card).
22
+ "--wb-on-accent-soft": "rgba(255, 255, 255, 0.2)",
21
23
  // Tonal fill for hover/selected. A `-soft` token exists because the theme
22
24
  // tokens are complete colors — Tailwind's `/NN` alpha modifier on them
23
25
  // compiles to an invalid rgb() and renders transparent.
@@ -33,6 +35,10 @@ exports.POS_TOKENS = {
33
35
  "--wb-text": "#000000",
34
36
  "--wb-muted": "#404040",
35
37
  "--wb-success": "#22c55e",
38
+ "--wb-success-soft": "rgba(34, 197, 94, 0.15)",
39
+ // Success as text on white: `--wb-success` is too light to read there
40
+ // (the change figure of the checkout).
41
+ "--wb-success-strong": "#15803d",
36
42
  "--wb-amber": "#f59e0b",
37
43
  "--wb-amber-soft": "rgba(245, 158, 11, 0.15)",
38
44
  "--wb-error": "#ef4444",
@@ -13,6 +13,7 @@ export declare const POS_TOKENS: {
13
13
  readonly "--wb-primary": "#171717";
14
14
  readonly "--wb-accent": "#171717";
15
15
  readonly "--wb-on-accent": "#ffffff";
16
+ readonly "--wb-on-accent-soft": "rgba(255, 255, 255, 0.2)";
16
17
  readonly "--wb-accent-soft": "rgba(23, 23, 23, 0.06)";
17
18
  readonly "--wb-bg": "#f6f4e9";
18
19
  readonly "--wb-surface": "#ffffff";
@@ -23,6 +24,8 @@ export declare const POS_TOKENS: {
23
24
  readonly "--wb-text": "#000000";
24
25
  readonly "--wb-muted": "#404040";
25
26
  readonly "--wb-success": "#22c55e";
27
+ readonly "--wb-success-soft": "rgba(34, 197, 94, 0.15)";
28
+ readonly "--wb-success-strong": "#15803d";
26
29
  readonly "--wb-amber": "#f59e0b";
27
30
  readonly "--wb-amber-soft": "rgba(245, 158, 11, 0.15)";
28
31
  readonly "--wb-error": "#ef4444";
@@ -14,6 +14,8 @@ export const POS_TOKENS = {
14
14
  "--wb-primary": "#171717",
15
15
  "--wb-accent": "#171717",
16
16
  "--wb-on-accent": "#ffffff",
17
+ // Light fill on an accent surface (the close button over a dark card).
18
+ "--wb-on-accent-soft": "rgba(255, 255, 255, 0.2)",
17
19
  // Tonal fill for hover/selected. A `-soft` token exists because the theme
18
20
  // tokens are complete colors — Tailwind's `/NN` alpha modifier on them
19
21
  // compiles to an invalid rgb() and renders transparent.
@@ -29,6 +31,10 @@ export const POS_TOKENS = {
29
31
  "--wb-text": "#000000",
30
32
  "--wb-muted": "#404040",
31
33
  "--wb-success": "#22c55e",
34
+ "--wb-success-soft": "rgba(34, 197, 94, 0.15)",
35
+ // Success as text on white: `--wb-success` is too light to read there
36
+ // (the change figure of the checkout).
37
+ "--wb-success-strong": "#15803d",
32
38
  "--wb-amber": "#f59e0b",
33
39
  "--wb-amber-soft": "rgba(245, 158, 11, 0.15)",
34
40
  "--wb-error": "#ef4444",
@@ -3,6 +3,7 @@
3
3
  --wb-primary: #171717;
4
4
  --wb-accent: #171717;
5
5
  --wb-on-accent: #ffffff;
6
+ --wb-on-accent-soft: rgba(255, 255, 255, 0.2);
6
7
  --wb-accent-soft: rgba(23, 23, 23, 0.06);
7
8
  --wb-bg: #f6f4e9;
8
9
  --wb-surface: #ffffff;
@@ -13,6 +14,8 @@
13
14
  --wb-text: #000000;
14
15
  --wb-muted: #404040;
15
16
  --wb-success: #22c55e;
17
+ --wb-success-soft: rgba(34, 197, 94, 0.15);
18
+ --wb-success-strong: #15803d;
16
19
  --wb-amber: #f59e0b;
17
20
  --wb-amber-soft: rgba(245, 158, 11, 0.15);
18
21
  --wb-error: #ef4444;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@welcome-back/brand",
3
- "version": "0.3.0",
3
+ "version": "0.4.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": {