@crystal-ui/core 2.0.0 → 2.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.
Files changed (38) hide show
  1. package/assets/crystal-theme.css +126 -3
  2. package/assets/crystal.css +1192 -5
  3. package/assets/crystal.js +106 -11
  4. package/assets/motion.js +17 -2
  5. package/assets/tokens.js +1 -1
  6. package/docs/accessibility.md +9 -2
  7. package/docs/adoption.md +29 -48
  8. package/docs/catalogue.md +465 -33
  9. package/docs/colors.md +84 -0
  10. package/docs/components.md +55 -25
  11. package/docs/materials.md +12 -4
  12. package/docs/motion-components.md +16 -12
  13. package/docs/motion.md +12 -2
  14. package/docs/tokens.md +31 -3
  15. package/engines.js +13 -2
  16. package/exports/crystal-tokens.kt +19 -1
  17. package/exports/crystal-tokens.swift +19 -1
  18. package/exports/crystal-tokens.ts +19 -1
  19. package/package.json +2 -1
  20. package/tokens/catalogue/01-layout.json +45 -0
  21. package/tokens/catalogue/02-navigation.json +89 -2
  22. package/tokens/catalogue/03-actions.json +42 -1
  23. package/tokens/catalogue/04-inputs.json +366 -5
  24. package/tokens/catalogue/05-data-display.json +187 -1
  25. package/tokens/catalogue/06-feedback.json +78 -6
  26. package/tokens/catalogue/07-overlays.json +50 -3
  27. package/tokens/catalogue/08-typography.json +54 -0
  28. package/tokens/catalogue/09-utility.json +79 -0
  29. package/tokens/catalogue/10-charts.json +89 -1
  30. package/tokens/catalogue/11-media.json +33 -0
  31. package/tokens/catalogue/12-commerce.json +134 -1
  32. package/tokens/catalogue/13-screens.json +81 -0
  33. package/tokens/catalogue/14-blocks.json +101 -0
  34. package/tokens/catalogue.json +1652 -21
  35. package/tokens/crystal.json +253 -13
  36. package/tokens/crystal.tokens.json +98 -2
  37. package/tokens/motion-recipes.json +216 -0
  38. package/tokens/surfaces.json +167 -0
@@ -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,22 @@
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-action-disabled-opacity: 0.55;
56
+ --cr-choice-box-size: 26px;
57
+ --cr-choice-box-radius: 9px;
58
+ --cr-switch-track-width: 44px;
59
+ --cr-switch-track-height: 28px;
60
+ --cr-chart-stroke: 2px;
61
+ --cr-chart-hairline: 1px;
62
+ --cr-chart-point-min: 6px;
63
+ --cr-chart-point-max: 18px;
64
+ --cr-chart-bar-radius: 4px;
65
+ --cr-chart-cell-gap: 2px;
66
+ --cr-chart-ring-thickness: 0.32;
67
+ --cr-chart-fill-opacity: 0.25;
68
+ --cr-chart-link-opacity: 0.45;
69
+ --cr-chart-gauge-sweep: 270deg;
70
+ --cr-progress-ring-stroke: 8px;
37
71
  --cr-content-muted: #402e76;
38
72
  --cr-content-own-text: #2b195a;
39
73
  --cr-stone-feather: 1.95px;
@@ -46,10 +80,17 @@
46
80
  --cr-overlay-max-width: 480px;
47
81
  --cr-overlay-tooltip-max-width: 352px;
48
82
  --cr-control-edge: rgba(98, 74, 159, 0.18);
83
+ --cr-control-color: color-mix(in srgb,var(--cr-decorative) 8.4%,transparent);
84
+ --cr-control-light: color-mix(in srgb,var(--cr-glow) 12.6%,transparent);
49
85
  --cr-focus-core: #7338EF;
50
86
  --cr-focus-core-width: 2px;
51
87
  --cr-focus-core-offset: 3px;
52
- --cr-focus-ring: 0 0 6px 1px rgba(115, 56, 239, 0.46),0 0 16px 3px rgba(115, 56, 239, 0.3),0 0 30px 6px rgba(115, 56, 239, 0.17),0 0 54px 11px rgba(115, 56, 239, 0.08);
88
+ --cr-focus-feather-1: rgba(115, 56, 239, 0.46);
89
+ --cr-focus-feather-2: rgba(115, 56, 239, 0.3);
90
+ --cr-focus-feather-3: rgba(115, 56, 239, 0.17);
91
+ --cr-focus-feather-4: rgba(115, 56, 239, 0.08);
92
+ --cr-focus-shadow: rgba(115, 56, 239, 0.27);
93
+ --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
94
  --cr-spacing-2xs: 4px;
54
95
  --cr-spacing-xs: 8px;
55
96
  --cr-spacing-sm: 12px;
@@ -160,6 +201,24 @@
160
201
  --cr-decorative: #7338EF;
161
202
  --cr-companion: #EF48C6;
162
203
  --cr-glow: #52BDF3;
204
+ --cr-chart-series-1: #9D45B2;
205
+ --cr-chart-series-2: #C43444;
206
+ --cr-chart-series-3: #956800;
207
+ --cr-chart-series-4: #298800;
208
+ --cr-chart-series-5: #008287;
209
+ --cr-chart-series-6: #286CD8;
210
+ --cr-chart-heat-1: #EFEEFD;
211
+ --cr-chart-on-heat-1: #171130;
212
+ --cr-chart-heat-2: #D6D3F9;
213
+ --cr-chart-on-heat-2: #171130;
214
+ --cr-chart-heat-3: #BEB7F4;
215
+ --cr-chart-on-heat-3: #171130;
216
+ --cr-chart-heat-4: #A79CEE;
217
+ --cr-chart-on-heat-4: #171130;
218
+ --cr-chart-heat-5: #9280E7;
219
+ --cr-chart-on-heat-5: #171130;
220
+ --cr-chart-axis: #624a9f;
221
+ --cr-chart-grid: rgba(23, 17, 48, 0.12);
163
222
  --cr-font: Manrope, system-ui, sans-serif;
164
223
  --cr-radius: 28px;
165
224
  --cr-space: 20px;
@@ -177,6 +236,22 @@
177
236
  --cr-content-own-fill: rgba(230, 219, 252, 0.8);
178
237
  --cr-content-feather: 1.95px;
179
238
  --cr-haze-inset: 8px;
239
+ --cr-action-disabled-opacity: 0.55;
240
+ --cr-choice-box-size: 26px;
241
+ --cr-choice-box-radius: 9px;
242
+ --cr-switch-track-width: 44px;
243
+ --cr-switch-track-height: 28px;
244
+ --cr-chart-stroke: 2px;
245
+ --cr-chart-hairline: 1px;
246
+ --cr-chart-point-min: 6px;
247
+ --cr-chart-point-max: 18px;
248
+ --cr-chart-bar-radius: 4px;
249
+ --cr-chart-cell-gap: 2px;
250
+ --cr-chart-ring-thickness: 0.32;
251
+ --cr-chart-fill-opacity: 0.25;
252
+ --cr-chart-link-opacity: 0.45;
253
+ --cr-chart-gauge-sweep: 270deg;
254
+ --cr-progress-ring-stroke: 8px;
180
255
  --cr-content-muted: #402e76;
181
256
  --cr-content-own-text: #2b195a;
182
257
  --cr-stone-feather: 1.95px;
@@ -189,10 +264,17 @@
189
264
  --cr-overlay-max-width: 480px;
190
265
  --cr-overlay-tooltip-max-width: 352px;
191
266
  --cr-control-edge: rgba(98, 74, 159, 0.18);
267
+ --cr-control-color: color-mix(in srgb,var(--cr-decorative) 8.4%,transparent);
268
+ --cr-control-light: color-mix(in srgb,var(--cr-glow) 12.6%,transparent);
192
269
  --cr-focus-core: #7338EF;
193
270
  --cr-focus-core-width: 2px;
194
271
  --cr-focus-core-offset: 3px;
195
- --cr-focus-ring: 0 0 6px 1px rgba(115, 56, 239, 0.46),0 0 16px 3px rgba(115, 56, 239, 0.3),0 0 30px 6px rgba(115, 56, 239, 0.17),0 0 54px 11px rgba(115, 56, 239, 0.08);
272
+ --cr-focus-feather-1: rgba(115, 56, 239, 0.46);
273
+ --cr-focus-feather-2: rgba(115, 56, 239, 0.3);
274
+ --cr-focus-feather-3: rgba(115, 56, 239, 0.17);
275
+ --cr-focus-feather-4: rgba(115, 56, 239, 0.08);
276
+ --cr-focus-shadow: rgba(115, 56, 239, 0.27);
277
+ --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
278
  --cr-spacing-2xs: 4px;
197
279
  --cr-spacing-xs: 8px;
198
280
  --cr-spacing-sm: 12px;
@@ -303,6 +385,24 @@
303
385
  --cr-decorative: #7e48f0;
304
386
  --cr-companion: #EF48C6;
305
387
  --cr-glow: #52BDF3;
388
+ --cr-chart-series-1: #D57BEA;
389
+ --cr-chart-series-2: #FF7077;
390
+ --cr-chart-series-3: #D59800;
391
+ --cr-chart-series-4: #60BE48;
392
+ --cr-chart-series-5: #00BBC2;
393
+ --cr-chart-series-6: #6CA4FF;
394
+ --cr-chart-heat-1: #1B1929;
395
+ --cr-chart-on-heat-1: #f7f3fe;
396
+ --cr-chart-heat-2: #292443;
397
+ --cr-chart-on-heat-2: #f7f3fe;
398
+ --cr-chart-heat-3: #372E60;
399
+ --cr-chart-on-heat-3: #f7f3fe;
400
+ --cr-chart-heat-4: #46387D;
401
+ --cr-chart-on-heat-4: #f7f3fe;
402
+ --cr-chart-heat-5: #56429C;
403
+ --cr-chart-on-heat-5: #f7f3fe;
404
+ --cr-chart-axis: #bfa3f8;
405
+ --cr-chart-grid: rgba(247, 243, 254, 0.16);
306
406
  --cr-font: Manrope, system-ui, sans-serif;
307
407
  --cr-radius: 28px;
308
408
  --cr-space: 20px;
@@ -320,6 +420,22 @@
320
420
  --cr-content-own-fill: rgba(51, 30, 101, 0.8);
321
421
  --cr-content-feather: 1.95px;
322
422
  --cr-haze-inset: 8px;
423
+ --cr-action-disabled-opacity: 0.55;
424
+ --cr-choice-box-size: 26px;
425
+ --cr-choice-box-radius: 9px;
426
+ --cr-switch-track-width: 44px;
427
+ --cr-switch-track-height: 28px;
428
+ --cr-chart-stroke: 2px;
429
+ --cr-chart-hairline: 1px;
430
+ --cr-chart-point-min: 6px;
431
+ --cr-chart-point-max: 18px;
432
+ --cr-chart-bar-radius: 4px;
433
+ --cr-chart-cell-gap: 2px;
434
+ --cr-chart-ring-thickness: 0.32;
435
+ --cr-chart-fill-opacity: 0.25;
436
+ --cr-chart-link-opacity: 0.45;
437
+ --cr-chart-gauge-sweep: 270deg;
438
+ --cr-progress-ring-stroke: 8px;
323
439
  --cr-content-muted: #dbcbfb;
324
440
  --cr-content-own-text: #ebe3fd;
325
441
  --cr-stone-feather: 1.95px;
@@ -332,10 +448,17 @@
332
448
  --cr-overlay-max-width: 480px;
333
449
  --cr-overlay-tooltip-max-width: 352px;
334
450
  --cr-control-edge: rgba(191, 163, 248, 0.18);
451
+ --cr-control-color: color-mix(in srgb,var(--cr-decorative) 7%,transparent);
452
+ --cr-control-light: color-mix(in srgb,var(--cr-glow) 9.8%,transparent);
335
453
  --cr-focus-core: #c8b1f9;
336
454
  --cr-focus-core-width: 2px;
337
455
  --cr-focus-core-offset: 3px;
338
- --cr-focus-ring: 0 0 6px 1px rgba(200, 177, 249, 0.46),0 0 16px 3px rgba(200, 177, 249, 0.3),0 0 30px 6px rgba(200, 177, 249, 0.17),0 0 54px 11px rgba(200, 177, 249, 0.08);
456
+ --cr-focus-feather-1: rgba(200, 177, 249, 0.56);
457
+ --cr-focus-feather-2: rgba(200, 177, 249, 0.38);
458
+ --cr-focus-feather-3: rgba(200, 177, 249, 0.22);
459
+ --cr-focus-feather-4: rgba(200, 177, 249, 0.11);
460
+ --cr-focus-shadow: rgba(126, 72, 240, 0.27);
461
+ --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
462
  --cr-spacing-2xs: 4px;
340
463
  --cr-spacing-xs: 8px;
341
464
  --cr-spacing-sm: 12px;