@calcifer-design/tokens 0.1.1 → 0.2.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/dist/index.js CHANGED
@@ -26,6 +26,7 @@ const lightColor = {
26
26
  borderStrong: 'rgba(28, 25, 23, 0.18)',
27
27
  borderAccent: 'rgba(59, 111, 224, 0.28)',
28
28
  cardBorder: 'transparent',
29
+ scrim: 'rgba(28, 25, 23, 0.45)',
29
30
  focus: '#3B6FE0',
30
31
  success: '#1F8A5B',
31
32
  warning: '#B7791F',
@@ -59,6 +60,7 @@ const darkColor = {
59
60
  borderStrong: 'rgba(255, 255, 255, 0.18)',
60
61
  borderAccent: 'rgba(127, 164, 245, 0.32)',
61
62
  cardBorder: 'rgba(255, 255, 255, 0.08)',
63
+ scrim: 'rgba(3, 4, 6, 0.6)',
62
64
  focus: '#7FA4F5',
63
65
  success: '#4FC38A',
64
66
  warning: '#E0B04A',
package/dist/tokens.css CHANGED
@@ -83,6 +83,7 @@
83
83
  --color-border-strong: rgba(28, 25, 23, 0.18);
84
84
  --color-border-accent: rgba(59, 111, 224, 0.28);
85
85
  --color-card-border: transparent;
86
+ --color-scrim: rgba(28, 25, 23, 0.45);
86
87
  --color-focus: #3B6FE0;
87
88
  --color-success: #1F8A5B;
88
89
  --color-warning: #B7791F;
@@ -122,6 +123,7 @@
122
123
  --color-border-strong: rgba(255, 255, 255, 0.18);
123
124
  --color-border-accent: rgba(127, 164, 245, 0.32);
124
125
  --color-card-border: rgba(255, 255, 255, 0.08);
126
+ --color-scrim: rgba(3, 4, 6, 0.6);
125
127
  --color-focus: #7FA4F5;
126
128
  --color-success: #4FC38A;
127
129
  --color-warning: #E0B04A;
@@ -166,6 +168,7 @@
166
168
  --color-border-strong: rgba(255, 255, 255, 0.18);
167
169
  --color-border-accent: rgba(127, 164, 245, 0.32);
168
170
  --color-card-border: rgba(255, 255, 255, 0.08);
171
+ --color-scrim: rgba(3, 4, 6, 0.6);
169
172
  --color-focus: #7FA4F5;
170
173
  --color-success: #4FC38A;
171
174
  --color-warning: #E0B04A;
package/dist/tokens.d.ts CHANGED
@@ -29,6 +29,8 @@ declare const lightColor: {
29
29
  readonly borderStrong: "rgba(28, 25, 23, 0.18)";
30
30
  readonly borderAccent: "rgba(59, 111, 224, 0.28)";
31
31
  readonly cardBorder: "transparent";
32
+ /** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
33
+ readonly scrim: "rgba(28, 25, 23, 0.45)";
32
34
  readonly focus: "#3B6FE0";
33
35
  readonly success: "#1F8A5B";
34
36
  readonly warning: "#B7791F";
@@ -66,6 +68,8 @@ export declare const themes: {
66
68
  readonly borderStrong: "rgba(28, 25, 23, 0.18)";
67
69
  readonly borderAccent: "rgba(59, 111, 224, 0.28)";
68
70
  readonly cardBorder: "transparent";
71
+ /** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
72
+ readonly scrim: "rgba(28, 25, 23, 0.45)";
69
73
  readonly focus: "#3B6FE0";
70
74
  readonly success: "#1F8A5B";
71
75
  readonly warning: "#B7791F";
@@ -109,6 +113,8 @@ export declare const themes: {
109
113
  readonly borderStrong: "rgba(255, 255, 255, 0.18)";
110
114
  readonly borderAccent: "rgba(127, 164, 245, 0.32)";
111
115
  readonly cardBorder: "rgba(255, 255, 255, 0.08)";
116
+ /** Heavier than the light theme's: a dark surface needs more separation from a dark page. */
117
+ readonly scrim: "rgba(3, 4, 6, 0.6)";
112
118
  readonly focus: "#7FA4F5";
113
119
  readonly success: "#4FC38A";
114
120
  readonly warning: "#E0B04A";
@@ -263,6 +269,8 @@ export declare const tokens: {
263
269
  readonly borderStrong: "rgba(28, 25, 23, 0.18)";
264
270
  readonly borderAccent: "rgba(59, 111, 224, 0.28)";
265
271
  readonly cardBorder: "transparent";
272
+ /** The scrim behind a modal dialog. Warm black at 45%, so the page reads as inert, not gone. */
273
+ readonly scrim: "rgba(28, 25, 23, 0.45)";
266
274
  readonly focus: "#3B6FE0";
267
275
  readonly success: "#1F8A5B";
268
276
  readonly warning: "#B7791F";
@@ -306,6 +314,8 @@ export declare const tokens: {
306
314
  readonly borderStrong: "rgba(255, 255, 255, 0.18)";
307
315
  readonly borderAccent: "rgba(127, 164, 245, 0.32)";
308
316
  readonly cardBorder: "rgba(255, 255, 255, 0.08)";
317
+ /** Heavier than the light theme's: a dark surface needs more separation from a dark page. */
318
+ readonly scrim: "rgba(3, 4, 6, 0.6)";
309
319
  readonly focus: "#7FA4F5";
310
320
  readonly success: "#4FC38A";
311
321
  readonly warning: "#E0B04A";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcifer-design/tokens",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {