@chai-ui/tokens 0.2.0 → 0.3.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.
@@ -7,6 +7,7 @@
7
7
  --chai-color-root-gray-50: #8b8b8b;
8
8
  --chai-color-root-gray-60: #9e9e9e;
9
9
  --chai-color-root-gray-75: #c2c2c2;
10
+ --chai-color-root-gray-80: #d9d9d9;
10
11
  --chai-color-root-gray-85: #e0e0e0;
11
12
  --chai-color-root-gray-90: #e9e9e9;
12
13
  --chai-color-root-gray-97: #f8f8f8;
@@ -54,6 +55,7 @@
54
55
  --chai-color-semantic-overlay-light: rgba(255, 255, 255, 0.5);
55
56
  --chai-color-semantic-scrim: rgba(0, 0, 0, 0.6);
56
57
  --chai-color-semantic-media-backdrop: #000000;
58
+ --chai-color-semantic-on-media-fade: #d9d9d9;
57
59
  --chai-color-semantic-region-1: #007c89;
58
60
  --chai-color-semantic-region-2: #a21caf;
59
61
  --chai-color-semantic-region-3: #b45309;
@@ -116,6 +118,7 @@
116
118
  --chai-motion-easing-growth: cubic-bezier(0.34, 1.2, 0.64, 1);
117
119
  --chai-shadow-menu: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
118
120
  --chai-gradient-ai: linear-gradient(90deg, #7b6fd6, #e08d75, #afc9f2, #7b6fd6);
121
+ --chai-gradient-media-fade: linear-gradient(180deg, rgba(0, 0, 0, 0), #000000);
119
122
  }
120
123
 
121
124
  /* Material Design 3 roles, driven by Chai tokens (color.material in src/tokens.json). */
@@ -30,6 +30,10 @@
30
30
  "value": "#c2c2c2",
31
31
  "type": "color"
32
32
  },
33
+ "gray-80": {
34
+ "value": "#d9d9d9",
35
+ "type": "color"
36
+ },
33
37
  "gray-85": {
34
38
  "value": "#e0e0e0",
35
39
  "type": "color"
@@ -237,7 +241,12 @@
237
241
  "media-backdrop": {
238
242
  "value": "#000000",
239
243
  "type": "color",
240
- "description": "Letterboxing behind video"
244
+ "description": "Letterboxing behind video, and the strip below paginated media"
245
+ },
246
+ "on-media-fade": {
247
+ "value": "#d9d9d9",
248
+ "type": "color",
249
+ "description": "Text on the dark fade at the bottom of media: the result card's model label"
241
250
  },
242
251
  "region-1": {
243
252
  "value": "#007c89",
@@ -605,6 +614,11 @@
605
614
  "value": "linear-gradient(90deg, #7b6fd6, #e08d75, #afc9f2, #7b6fd6)",
606
615
  "type": "other",
607
616
  "description": "The AI shimmer: text revealing after prompt optimization"
617
+ },
618
+ "media-fade": {
619
+ "value": "linear-gradient(180deg, rgba(0, 0, 0, 0), #000000)",
620
+ "type": "other",
621
+ "description": "Darkens the bottom of paginated media into the media-backdrop strip, so the model label and page dots read over any image"
608
622
  }
609
623
  }
610
624
  }
package/dist/js/index.js CHANGED
@@ -9,6 +9,7 @@ export const tokens = {
9
9
  "gray-50": "#8b8b8b",
10
10
  "gray-60": "#9e9e9e",
11
11
  "gray-75": "#c2c2c2",
12
+ "gray-80": "#d9d9d9",
12
13
  "gray-85": "#e0e0e0",
13
14
  "gray-90": "#e9e9e9",
14
15
  "gray-97": "#f8f8f8",
@@ -58,6 +59,7 @@ export const tokens = {
58
59
  "overlay-light": "rgba(255, 255, 255, 0.5)",
59
60
  "scrim": "rgba(0, 0, 0, 0.6)",
60
61
  "media-backdrop": "#000000",
62
+ "on-media-fade": "#d9d9d9",
61
63
  "region-1": "#007c89",
62
64
  "region-2": "#a21caf",
63
65
  "region-3": "#b45309",
@@ -167,7 +169,8 @@ export const tokens = {
167
169
  "menu": "0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)"
168
170
  },
169
171
  "gradient": {
170
- "ai": "linear-gradient(90deg, #7b6fd6, #e08d75, #afc9f2, #7b6fd6)"
172
+ "ai": "linear-gradient(90deg, #7b6fd6, #e08d75, #afc9f2, #7b6fd6)",
173
+ "media-fade": "linear-gradient(180deg, rgba(0, 0, 0, 0), #000000)"
171
174
  }
172
175
  };
173
176
 
@@ -180,6 +183,7 @@ export const flatTokens = {
180
183
  "color.root.gray-50": "#8b8b8b",
181
184
  "color.root.gray-60": "#9e9e9e",
182
185
  "color.root.gray-75": "#c2c2c2",
186
+ "color.root.gray-80": "#d9d9d9",
183
187
  "color.root.gray-85": "#e0e0e0",
184
188
  "color.root.gray-90": "#e9e9e9",
185
189
  "color.root.gray-97": "#f8f8f8",
@@ -227,6 +231,7 @@ export const flatTokens = {
227
231
  "color.semantic.overlay-light": "rgba(255, 255, 255, 0.5)",
228
232
  "color.semantic.scrim": "rgba(0, 0, 0, 0.6)",
229
233
  "color.semantic.media-backdrop": "#000000",
234
+ "color.semantic.on-media-fade": "#d9d9d9",
230
235
  "color.semantic.region-1": "#007c89",
231
236
  "color.semantic.region-2": "#a21caf",
232
237
  "color.semantic.region-3": "#b45309",
@@ -307,7 +312,8 @@ export const flatTokens = {
307
312
  "motion.easing.standard": "cubic-bezier(0.2, 0, 0, 1)",
308
313
  "motion.easing.growth": "cubic-bezier(0.34, 1.2, 0.64, 1)",
309
314
  "shadow.menu": "0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)",
310
- "gradient.ai": "linear-gradient(90deg, #7b6fd6, #e08d75, #afc9f2, #7b6fd6)"
315
+ "gradient.ai": "linear-gradient(90deg, #7b6fd6, #e08d75, #afc9f2, #7b6fd6)",
316
+ "gradient.media-fade": "linear-gradient(180deg, rgba(0, 0, 0, 0), #000000)"
311
317
  };
312
318
 
313
319
  /** Alias tokens and what they point at, e.g. tokenRefs["color.material.primary"] === "color.semantic.accent" */
@@ -335,6 +341,7 @@ export const tokenRefs = {
335
341
  "color.semantic.control-text-muted": "color.root.gray-40",
336
342
  "color.semantic.on-overlay": "color.root.gray-100",
337
343
  "color.semantic.media-backdrop": "color.root.gray-0",
344
+ "color.semantic.on-media-fade": "color.root.gray-80",
338
345
  "color.semantic.region-1": "color.root.cyan-40",
339
346
  "color.semantic.region-2": "color.root.magenta-40",
340
347
  "color.semantic.region-3": "color.root.orange-40",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chai-ui/tokens",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "CHAI UI design tokens — single source of truth, built to CSS variables, TypeScript, and a Figma Tokens/Variables-plugin JSON.",
5
5
  "license": "MIT",
6
6
  "author": "kazarazat",