@crystal-ui/core 2.0.0 → 2.1.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/assets/crystal-theme.css +111 -3
- package/assets/crystal.css +897 -5
- package/assets/crystal.js +96 -11
- package/assets/tokens.js +1 -1
- package/docs/accessibility.md +2 -2
- package/docs/adoption.md +27 -48
- package/docs/catalogue.md +3 -2
- package/docs/colors.md +84 -0
- package/docs/components.md +31 -18
- package/docs/motion-components.md +7 -8
- package/docs/motion.md +3 -1
- package/docs/tokens.md +30 -2
- package/exports/crystal-tokens.kt +18 -0
- package/exports/crystal-tokens.swift +18 -0
- package/exports/crystal-tokens.ts +18 -0
- package/package.json +1 -1
- package/tokens/catalogue/02-navigation.json +1 -1
- package/tokens/catalogue/03-actions.json +1 -1
- package/tokens/catalogue/13-screens.json +4 -0
- package/tokens/catalogue.json +7 -3
- package/tokens/crystal.json +252 -12
- package/tokens/crystal.tokens.json +96 -0
- package/tokens/motion-recipes.json +92 -0
package/assets/crystal-theme.css
CHANGED
|
@@ -17,6 +17,24 @@
|
|
|
17
17
|
--cr-decorative: #7338EF;
|
|
18
18
|
--cr-companion: #EF48C6;
|
|
19
19
|
--cr-glow: #52BDF3;
|
|
20
|
+
--cr-chart-series-1: #9D45B2;
|
|
21
|
+
--cr-chart-series-2: #C43444;
|
|
22
|
+
--cr-chart-series-3: #956800;
|
|
23
|
+
--cr-chart-series-4: #298800;
|
|
24
|
+
--cr-chart-series-5: #008287;
|
|
25
|
+
--cr-chart-series-6: #286CD8;
|
|
26
|
+
--cr-chart-heat-1: #EFEEFD;
|
|
27
|
+
--cr-chart-on-heat-1: #171130;
|
|
28
|
+
--cr-chart-heat-2: #D6D3F9;
|
|
29
|
+
--cr-chart-on-heat-2: #171130;
|
|
30
|
+
--cr-chart-heat-3: #BEB7F4;
|
|
31
|
+
--cr-chart-on-heat-3: #171130;
|
|
32
|
+
--cr-chart-heat-4: #A79CEE;
|
|
33
|
+
--cr-chart-on-heat-4: #171130;
|
|
34
|
+
--cr-chart-heat-5: #9280E7;
|
|
35
|
+
--cr-chart-on-heat-5: #171130;
|
|
36
|
+
--cr-chart-axis: #624a9f;
|
|
37
|
+
--cr-chart-grid: rgba(23, 17, 48, 0.12);
|
|
20
38
|
--cr-font: Manrope, system-ui, sans-serif;
|
|
21
39
|
--cr-radius: 28px;
|
|
22
40
|
--cr-space: 20px;
|
|
@@ -34,6 +52,17 @@
|
|
|
34
52
|
--cr-content-own-fill: rgba(230, 219, 252, 0.8);
|
|
35
53
|
--cr-content-feather: 1.95px;
|
|
36
54
|
--cr-haze-inset: 8px;
|
|
55
|
+
--cr-chart-stroke: 2px;
|
|
56
|
+
--cr-chart-hairline: 1px;
|
|
57
|
+
--cr-chart-point-min: 6px;
|
|
58
|
+
--cr-chart-point-max: 18px;
|
|
59
|
+
--cr-chart-bar-radius: 4px;
|
|
60
|
+
--cr-chart-cell-gap: 2px;
|
|
61
|
+
--cr-chart-ring-thickness: 0.32;
|
|
62
|
+
--cr-chart-fill-opacity: 0.25;
|
|
63
|
+
--cr-chart-link-opacity: 0.45;
|
|
64
|
+
--cr-chart-gauge-sweep: 270deg;
|
|
65
|
+
--cr-progress-ring-stroke: 8px;
|
|
37
66
|
--cr-content-muted: #402e76;
|
|
38
67
|
--cr-content-own-text: #2b195a;
|
|
39
68
|
--cr-stone-feather: 1.95px;
|
|
@@ -46,10 +75,17 @@
|
|
|
46
75
|
--cr-overlay-max-width: 480px;
|
|
47
76
|
--cr-overlay-tooltip-max-width: 352px;
|
|
48
77
|
--cr-control-edge: rgba(98, 74, 159, 0.18);
|
|
78
|
+
--cr-control-color: color-mix(in srgb,var(--cr-decorative) 8.4%,transparent);
|
|
79
|
+
--cr-control-light: color-mix(in srgb,var(--cr-glow) 12.6%,transparent);
|
|
49
80
|
--cr-focus-core: #7338EF;
|
|
50
81
|
--cr-focus-core-width: 2px;
|
|
51
82
|
--cr-focus-core-offset: 3px;
|
|
52
|
-
--cr-focus-
|
|
83
|
+
--cr-focus-feather-1: rgba(115, 56, 239, 0.46);
|
|
84
|
+
--cr-focus-feather-2: rgba(115, 56, 239, 0.3);
|
|
85
|
+
--cr-focus-feather-3: rgba(115, 56, 239, 0.17);
|
|
86
|
+
--cr-focus-feather-4: rgba(115, 56, 239, 0.08);
|
|
87
|
+
--cr-focus-shadow: rgba(115, 56, 239, 0.27);
|
|
88
|
+
--cr-focus-ring: 0 0 6px 1px var(--cr-focus-feather-1),0 0 16px 3px var(--cr-focus-feather-2),0 0 30px 6px var(--cr-focus-feather-3),0 0 54px 11px var(--cr-focus-feather-4),0 8px 18px var(--cr-focus-feather-2),0 22px 40px var(--cr-focus-shadow);
|
|
53
89
|
--cr-spacing-2xs: 4px;
|
|
54
90
|
--cr-spacing-xs: 8px;
|
|
55
91
|
--cr-spacing-sm: 12px;
|
|
@@ -160,6 +196,24 @@
|
|
|
160
196
|
--cr-decorative: #7338EF;
|
|
161
197
|
--cr-companion: #EF48C6;
|
|
162
198
|
--cr-glow: #52BDF3;
|
|
199
|
+
--cr-chart-series-1: #9D45B2;
|
|
200
|
+
--cr-chart-series-2: #C43444;
|
|
201
|
+
--cr-chart-series-3: #956800;
|
|
202
|
+
--cr-chart-series-4: #298800;
|
|
203
|
+
--cr-chart-series-5: #008287;
|
|
204
|
+
--cr-chart-series-6: #286CD8;
|
|
205
|
+
--cr-chart-heat-1: #EFEEFD;
|
|
206
|
+
--cr-chart-on-heat-1: #171130;
|
|
207
|
+
--cr-chart-heat-2: #D6D3F9;
|
|
208
|
+
--cr-chart-on-heat-2: #171130;
|
|
209
|
+
--cr-chart-heat-3: #BEB7F4;
|
|
210
|
+
--cr-chart-on-heat-3: #171130;
|
|
211
|
+
--cr-chart-heat-4: #A79CEE;
|
|
212
|
+
--cr-chart-on-heat-4: #171130;
|
|
213
|
+
--cr-chart-heat-5: #9280E7;
|
|
214
|
+
--cr-chart-on-heat-5: #171130;
|
|
215
|
+
--cr-chart-axis: #624a9f;
|
|
216
|
+
--cr-chart-grid: rgba(23, 17, 48, 0.12);
|
|
163
217
|
--cr-font: Manrope, system-ui, sans-serif;
|
|
164
218
|
--cr-radius: 28px;
|
|
165
219
|
--cr-space: 20px;
|
|
@@ -177,6 +231,17 @@
|
|
|
177
231
|
--cr-content-own-fill: rgba(230, 219, 252, 0.8);
|
|
178
232
|
--cr-content-feather: 1.95px;
|
|
179
233
|
--cr-haze-inset: 8px;
|
|
234
|
+
--cr-chart-stroke: 2px;
|
|
235
|
+
--cr-chart-hairline: 1px;
|
|
236
|
+
--cr-chart-point-min: 6px;
|
|
237
|
+
--cr-chart-point-max: 18px;
|
|
238
|
+
--cr-chart-bar-radius: 4px;
|
|
239
|
+
--cr-chart-cell-gap: 2px;
|
|
240
|
+
--cr-chart-ring-thickness: 0.32;
|
|
241
|
+
--cr-chart-fill-opacity: 0.25;
|
|
242
|
+
--cr-chart-link-opacity: 0.45;
|
|
243
|
+
--cr-chart-gauge-sweep: 270deg;
|
|
244
|
+
--cr-progress-ring-stroke: 8px;
|
|
180
245
|
--cr-content-muted: #402e76;
|
|
181
246
|
--cr-content-own-text: #2b195a;
|
|
182
247
|
--cr-stone-feather: 1.95px;
|
|
@@ -189,10 +254,17 @@
|
|
|
189
254
|
--cr-overlay-max-width: 480px;
|
|
190
255
|
--cr-overlay-tooltip-max-width: 352px;
|
|
191
256
|
--cr-control-edge: rgba(98, 74, 159, 0.18);
|
|
257
|
+
--cr-control-color: color-mix(in srgb,var(--cr-decorative) 8.4%,transparent);
|
|
258
|
+
--cr-control-light: color-mix(in srgb,var(--cr-glow) 12.6%,transparent);
|
|
192
259
|
--cr-focus-core: #7338EF;
|
|
193
260
|
--cr-focus-core-width: 2px;
|
|
194
261
|
--cr-focus-core-offset: 3px;
|
|
195
|
-
--cr-focus-
|
|
262
|
+
--cr-focus-feather-1: rgba(115, 56, 239, 0.46);
|
|
263
|
+
--cr-focus-feather-2: rgba(115, 56, 239, 0.3);
|
|
264
|
+
--cr-focus-feather-3: rgba(115, 56, 239, 0.17);
|
|
265
|
+
--cr-focus-feather-4: rgba(115, 56, 239, 0.08);
|
|
266
|
+
--cr-focus-shadow: rgba(115, 56, 239, 0.27);
|
|
267
|
+
--cr-focus-ring: 0 0 6px 1px var(--cr-focus-feather-1),0 0 16px 3px var(--cr-focus-feather-2),0 0 30px 6px var(--cr-focus-feather-3),0 0 54px 11px var(--cr-focus-feather-4),0 8px 18px var(--cr-focus-feather-2),0 22px 40px var(--cr-focus-shadow);
|
|
196
268
|
--cr-spacing-2xs: 4px;
|
|
197
269
|
--cr-spacing-xs: 8px;
|
|
198
270
|
--cr-spacing-sm: 12px;
|
|
@@ -303,6 +375,24 @@
|
|
|
303
375
|
--cr-decorative: #7e48f0;
|
|
304
376
|
--cr-companion: #EF48C6;
|
|
305
377
|
--cr-glow: #52BDF3;
|
|
378
|
+
--cr-chart-series-1: #D57BEA;
|
|
379
|
+
--cr-chart-series-2: #FF7077;
|
|
380
|
+
--cr-chart-series-3: #D59800;
|
|
381
|
+
--cr-chart-series-4: #60BE48;
|
|
382
|
+
--cr-chart-series-5: #00BBC2;
|
|
383
|
+
--cr-chart-series-6: #6CA4FF;
|
|
384
|
+
--cr-chart-heat-1: #1B1929;
|
|
385
|
+
--cr-chart-on-heat-1: #f7f3fe;
|
|
386
|
+
--cr-chart-heat-2: #292443;
|
|
387
|
+
--cr-chart-on-heat-2: #f7f3fe;
|
|
388
|
+
--cr-chart-heat-3: #372E60;
|
|
389
|
+
--cr-chart-on-heat-3: #f7f3fe;
|
|
390
|
+
--cr-chart-heat-4: #46387D;
|
|
391
|
+
--cr-chart-on-heat-4: #f7f3fe;
|
|
392
|
+
--cr-chart-heat-5: #56429C;
|
|
393
|
+
--cr-chart-on-heat-5: #f7f3fe;
|
|
394
|
+
--cr-chart-axis: #bfa3f8;
|
|
395
|
+
--cr-chart-grid: rgba(247, 243, 254, 0.16);
|
|
306
396
|
--cr-font: Manrope, system-ui, sans-serif;
|
|
307
397
|
--cr-radius: 28px;
|
|
308
398
|
--cr-space: 20px;
|
|
@@ -320,6 +410,17 @@
|
|
|
320
410
|
--cr-content-own-fill: rgba(51, 30, 101, 0.8);
|
|
321
411
|
--cr-content-feather: 1.95px;
|
|
322
412
|
--cr-haze-inset: 8px;
|
|
413
|
+
--cr-chart-stroke: 2px;
|
|
414
|
+
--cr-chart-hairline: 1px;
|
|
415
|
+
--cr-chart-point-min: 6px;
|
|
416
|
+
--cr-chart-point-max: 18px;
|
|
417
|
+
--cr-chart-bar-radius: 4px;
|
|
418
|
+
--cr-chart-cell-gap: 2px;
|
|
419
|
+
--cr-chart-ring-thickness: 0.32;
|
|
420
|
+
--cr-chart-fill-opacity: 0.25;
|
|
421
|
+
--cr-chart-link-opacity: 0.45;
|
|
422
|
+
--cr-chart-gauge-sweep: 270deg;
|
|
423
|
+
--cr-progress-ring-stroke: 8px;
|
|
323
424
|
--cr-content-muted: #dbcbfb;
|
|
324
425
|
--cr-content-own-text: #ebe3fd;
|
|
325
426
|
--cr-stone-feather: 1.95px;
|
|
@@ -332,10 +433,17 @@
|
|
|
332
433
|
--cr-overlay-max-width: 480px;
|
|
333
434
|
--cr-overlay-tooltip-max-width: 352px;
|
|
334
435
|
--cr-control-edge: rgba(191, 163, 248, 0.18);
|
|
436
|
+
--cr-control-color: color-mix(in srgb,var(--cr-decorative) 7%,transparent);
|
|
437
|
+
--cr-control-light: color-mix(in srgb,var(--cr-glow) 9.8%,transparent);
|
|
335
438
|
--cr-focus-core: #c8b1f9;
|
|
336
439
|
--cr-focus-core-width: 2px;
|
|
337
440
|
--cr-focus-core-offset: 3px;
|
|
338
|
-
--cr-focus-
|
|
441
|
+
--cr-focus-feather-1: rgba(200, 177, 249, 0.56);
|
|
442
|
+
--cr-focus-feather-2: rgba(200, 177, 249, 0.38);
|
|
443
|
+
--cr-focus-feather-3: rgba(200, 177, 249, 0.22);
|
|
444
|
+
--cr-focus-feather-4: rgba(200, 177, 249, 0.11);
|
|
445
|
+
--cr-focus-shadow: rgba(126, 72, 240, 0.27);
|
|
446
|
+
--cr-focus-ring: 0 0 6px 1px var(--cr-focus-feather-1),0 0 16px 3px var(--cr-focus-feather-2),0 0 30px 6px var(--cr-focus-feather-3),0 0 54px 11px var(--cr-focus-feather-4),0 8px 18px var(--cr-focus-feather-2),0 22px 40px var(--cr-focus-shadow);
|
|
339
447
|
--cr-spacing-2xs: 4px;
|
|
340
448
|
--cr-spacing-xs: 8px;
|
|
341
449
|
--cr-spacing-sm: 12px;
|