@crystal-ui/core 2.4.0 → 2.6.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/README.md +1 -1
- package/assets/crystal-theme.css +6 -6
- package/assets/crystal.css +154 -19
- package/assets/crystal.js +5 -1
- package/assets/motion.js +55 -1
- package/assets/tokens.js +1 -1
- package/docs/accessibility.md +1 -1
- package/docs/catalogue.md +23 -23
- package/docs/components.md +1 -1
- package/docs/materials.md +3 -3
- package/docs/motion-components.md +16 -2
- package/docs/motion.md +3 -2
- package/docs/tokens.md +2 -2
- package/exports/crystal-tokens.kt +2 -2
- package/exports/crystal-tokens.swift +2 -2
- package/exports/crystal-tokens.ts +2 -2
- package/package.json +1 -1
- package/tokens/catalogue/02-navigation.json +7 -6
- package/tokens/catalogue/03-actions.json +3 -2
- package/tokens/catalogue/04-inputs.json +5 -5
- package/tokens/catalogue/06-feedback.json +2 -1
- package/tokens/catalogue/07-overlays.json +4 -2
- package/tokens/catalogue/11-media.json +2 -2
- package/tokens/catalogue.json +34 -23
- package/tokens/crystal.json +2 -2
- package/tokens/crystal.tokens.json +2 -2
- package/tokens/motion-recipes.json +47 -0
- package/tokens/surface-recipes.json +144 -2
- package/tokens/surfaces.json +7 -4
package/README.md
CHANGED
|
@@ -67,7 +67,7 @@ icons, hit areas and focus rings are never blurred.
|
|
|
67
67
|
| `@crystal-ui/core/core/preferences` | Preference clamping and duration resolution. |
|
|
68
68
|
| `@crystal-ui/core/core/spring` | Spring physics: sampling, settling time and overshoot. |
|
|
69
69
|
| `@crystal-ui/core/core/presets` | Keyframes for the material motion presets, computed from tokens. |
|
|
70
|
-
| `@crystal-ui/core/motion-recipes` | The
|
|
70
|
+
| `@crystal-ui/core/motion-recipes` | The 60 motion recipes, each with its spring and per-platform values. |
|
|
71
71
|
| `@crystal-ui/core/engines` | The Motion and GSAP engine entry. |
|
|
72
72
|
| `@crystal-ui/core/icons` | The icon manifest. There are 1022 icons on a 24px grid. |
|
|
73
73
|
| `@crystal-ui/core/shaders/*` | The optical layer's shader sources and their manifest. |
|
package/assets/crystal-theme.css
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
--cr-radius: 28px;
|
|
40
40
|
--cr-space: 20px;
|
|
41
41
|
--cr-reading: 16px;
|
|
42
|
-
--cr-leading: 1.
|
|
42
|
+
--cr-leading: 1.6;
|
|
43
43
|
--cr-foundation-muted: #171130;
|
|
44
44
|
--cr-mica-inactive: #f1f1f3;
|
|
45
45
|
--cr-atmosphere-one: rgba(115, 56, 239, 0.216);
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
--cr-text-subheading-leading: 1.45;
|
|
112
112
|
--cr-text-subheading-tracking: -0.01em;
|
|
113
113
|
--cr-text-body-size: 16px;
|
|
114
|
-
--cr-text-body-leading: 1.
|
|
114
|
+
--cr-text-body-leading: 1.6;
|
|
115
115
|
--cr-text-body-tracking: 0;
|
|
116
116
|
--cr-text-caption-size: 13px;
|
|
117
117
|
--cr-text-caption-leading: 1.45;
|
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
--cr-radius: 28px;
|
|
224
224
|
--cr-space: 20px;
|
|
225
225
|
--cr-reading: 16px;
|
|
226
|
-
--cr-leading: 1.
|
|
226
|
+
--cr-leading: 1.6;
|
|
227
227
|
--cr-foundation-muted: #171130;
|
|
228
228
|
--cr-mica-inactive: #f1f1f3;
|
|
229
229
|
--cr-atmosphere-one: rgba(115, 56, 239, 0.216);
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
--cr-text-subheading-leading: 1.45;
|
|
296
296
|
--cr-text-subheading-tracking: -0.01em;
|
|
297
297
|
--cr-text-body-size: 16px;
|
|
298
|
-
--cr-text-body-leading: 1.
|
|
298
|
+
--cr-text-body-leading: 1.6;
|
|
299
299
|
--cr-text-body-tracking: 0;
|
|
300
300
|
--cr-text-caption-size: 13px;
|
|
301
301
|
--cr-text-caption-leading: 1.45;
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
--cr-radius: 28px;
|
|
408
408
|
--cr-space: 20px;
|
|
409
409
|
--cr-reading: 16px;
|
|
410
|
-
--cr-leading: 1.
|
|
410
|
+
--cr-leading: 1.6;
|
|
411
411
|
--cr-foundation-muted: #f7f3fe;
|
|
412
412
|
--cr-mica-inactive: #202126;
|
|
413
413
|
--cr-atmosphere-one: rgba(126, 72, 240, 0.261);
|
|
@@ -479,7 +479,7 @@
|
|
|
479
479
|
--cr-text-subheading-leading: 1.45;
|
|
480
480
|
--cr-text-subheading-tracking: -0.01em;
|
|
481
481
|
--cr-text-body-size: 16px;
|
|
482
|
-
--cr-text-body-leading: 1.
|
|
482
|
+
--cr-text-body-leading: 1.6;
|
|
483
483
|
--cr-text-body-tracking: 0;
|
|
484
484
|
--cr-text-caption-size: 13px;
|
|
485
485
|
--cr-text-caption-leading: 1.45;
|
package/assets/crystal.css
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
@font-face{font-family:Manrope;src:url('fonts/manrope.woff2') format('woff2');font-weight:200 800;font-display:swap}
|
|
12
12
|
/* Crystal 1.0: framework-independent primitives. Theme variables are supplied by
|
|
13
13
|
crystal-theme.css or by a configuration exported from the playground. */
|
|
14
|
-
:root{--cr-font:Manrope,system-ui,sans-serif;--cr-radius:28px;--cr-space:20px;--cr-reading:16px;--cr-leading:1.
|
|
15
|
-
*{box-sizing:border-box}body{margin:0;color:var(--cr-text);background:var(--cr-canvas);font-family:var(--cr-font);font-size:16px;line-height:
|
|
14
|
+
:root{--cr-font:Manrope,system-ui,sans-serif;--cr-radius:28px;--cr-space:20px;--cr-reading:16px;--cr-leading:1.6;color-scheme:light}
|
|
15
|
+
*{box-sizing:border-box}body{margin:0;color:var(--cr-text);background:var(--cr-canvas);font-family:var(--cr-font);font-size:16px;line-height:var(--cr-leading)}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}a{color:var(--cr-primary);text-underline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:var(--cr-focus-core-width,2px) solid var(--cr-focus-core,var(--cr-primary));outline-offset:var(--cr-focus-core-offset,3px);box-shadow:var(--cr-focus-ring,0 0 6px 1px var(--cr-focus-feather-1,color-mix(in srgb,var(--cr-primary) 46%,transparent)),0 0 16px 3px var(--cr-focus-feather-2,color-mix(in srgb,var(--cr-primary) 30%,transparent)),0 0 30px 6px var(--cr-focus-feather-3,color-mix(in srgb,var(--cr-primary) 17%,transparent)),0 0 54px 11px var(--cr-focus-feather-4,color-mix(in srgb,var(--cr-primary) 8%,transparent)),0 8px 18px var(--cr-focus-feather-2,color-mix(in srgb,var(--cr-primary) 30%,transparent)),0 22px 40px var(--cr-focus-shadow,color-mix(in srgb,var(--cr-decorative) 27%,transparent)))}button:disabled{cursor:not-allowed;opacity:.55}button{transition:background var(--cr-state),box-shadow var(--cr-state),transform var(--cr-press)}button:active:not(:disabled){transform:translateY(1px)}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3,h4{line-height:1.2;letter-spacing:-.04em}button:has(svg){display:inline-flex;align-items:center;justify-content:center;gap:9px}
|
|
16
16
|
/* Plastic has a glow of its own, the primary lifted by the scheme's tint. It is
|
|
17
17
|
a material property and stays. The drift of that glow across the foundation
|
|
18
18
|
is ambient motion, which is deferred with the rest of the tier, so the
|
|
@@ -1584,6 +1584,77 @@ input[type=checkbox][role=switch] {
|
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
|
|
1587
|
+
/* The travelling selection pill (D-37).
|
|
1588
|
+
*
|
|
1589
|
+
* One `.cr-indicator.pill` behind the selected segment of a strip: tabs, a
|
|
1590
|
+
* segmented control, the dock, bottom navigation or a toggle button group. It
|
|
1591
|
+
* is a child of the plane that holds the segments (`.cr-dock`, `.cr-dock-inner`
|
|
1592
|
+
* or `.cr-group`), hidden from assistive technology, and placed by five
|
|
1593
|
+
* measured properties: `--cr-pill-x`, `--cr-pill-y`, `--cr-pill-width` and
|
|
1594
|
+
* `--cr-pill-height`, the selected segment's box inside the plane's padding
|
|
1595
|
+
* edge, and `--cr-pill-radius`, its corners. `CrystalMotion.travel()`
|
|
1596
|
+
* writes them and moves the pill with the `selection-travel` recipe.
|
|
1597
|
+
*
|
|
1598
|
+
* Until the pill is placed (`data-placed`) it is not drawn and each segment
|
|
1599
|
+
* paints its own selection, so a strip with no script, or before its first
|
|
1600
|
+
* measurement, looks as it always has. Once placed, the selected segment gives
|
|
1601
|
+
* its fill and its contact shadow to the pill and keeps its ink and its weight:
|
|
1602
|
+
* selection is still label weight, so the pill is never the only sign of it.
|
|
1603
|
+
*
|
|
1604
|
+
* z-index -1 inside the plane's stacking context puts the pill above the
|
|
1605
|
+
* plane's Haze backing, which is earlier in the tree at the same level, and
|
|
1606
|
+
* under every segment's label without asking the segments to be positioned. */
|
|
1607
|
+
.cr-indicator.pill {
|
|
1608
|
+
display: none;
|
|
1609
|
+
position: absolute;
|
|
1610
|
+
inset: auto;
|
|
1611
|
+
left: var(--cr-pill-x, 0px);
|
|
1612
|
+
top: var(--cr-pill-y, 0px);
|
|
1613
|
+
width: var(--cr-pill-width, 0px);
|
|
1614
|
+
height: var(--cr-pill-height, 0px);
|
|
1615
|
+
min-width: 0;
|
|
1616
|
+
z-index: -1;
|
|
1617
|
+
border: 0;
|
|
1618
|
+
/* The segment's own corners, so the pill is a pill in the dock and keeps
|
|
1619
|
+
a group's square interior corners. */
|
|
1620
|
+
border-radius: var(--cr-pill-radius, 999px);
|
|
1621
|
+
background: var(--cr-primary);
|
|
1622
|
+
box-shadow: 0 3px 7px var(--cr-shadow-contact);
|
|
1623
|
+
list-style: none;
|
|
1624
|
+
margin: 0;
|
|
1625
|
+
padding: 0;
|
|
1626
|
+
}
|
|
1627
|
+
.cr-indicator.pill[data-placed] {
|
|
1628
|
+
display: block;
|
|
1629
|
+
}
|
|
1630
|
+
.cr-indicator.pill::before,
|
|
1631
|
+
.cr-indicator.pill::after {
|
|
1632
|
+
content: none;
|
|
1633
|
+
display: none;
|
|
1634
|
+
}
|
|
1635
|
+
:is(.cr-dock, .cr-dock-inner, .cr-group):has(> .cr-indicator.pill[data-placed]) :is([aria-pressed=true], [aria-selected=true], [aria-checked=true], [aria-current]:not([aria-current=false]), label:has(input[type=radio]:checked)) {
|
|
1636
|
+
background: transparent;
|
|
1637
|
+
box-shadow: none;
|
|
1638
|
+
}
|
|
1639
|
+
:is(.cr-dock, .cr-dock-inner, .cr-group):has(> .cr-indicator.pill[data-placed]) :is([aria-pressed=true], [aria-selected=true], [aria-checked=true])::before {
|
|
1640
|
+
background: transparent;
|
|
1641
|
+
}
|
|
1642
|
+
/* A group's segments paint their own fill, which a dock's do not. In a toggle
|
|
1643
|
+
set with a pill that fill would hide the pill as it passes behind, so every
|
|
1644
|
+
segment gives its fill to the group's plane and the pill is the one fill
|
|
1645
|
+
drawn. A hover keeps its own, on the element rather than this layer. */
|
|
1646
|
+
.cr-group:has(> .cr-indicator.pill[data-placed]) > :is(button, a.cr-button, .cr-button, .cr-control)::before {
|
|
1647
|
+
background: transparent;
|
|
1648
|
+
filter: none;
|
|
1649
|
+
}
|
|
1650
|
+
/* Forced colours draw selection as the segment's own Highlight outline, which
|
|
1651
|
+
stays; a fill the system would flatten to Canvas is not drawn. */
|
|
1652
|
+
@media (forced-colors:active) {
|
|
1653
|
+
.cr-indicator.pill[data-placed] {
|
|
1654
|
+
display: none;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
|
|
1587
1658
|
/* A group: the `group` surface (D-26).
|
|
1588
1659
|
*
|
|
1589
1660
|
* A button group and a split button are one Resin plane whose segments touch:
|
|
@@ -1625,7 +1696,10 @@ input[type=checkbox][role=switch] {
|
|
|
1625
1696
|
backdrop-filter: none;
|
|
1626
1697
|
isolation: isolate;
|
|
1627
1698
|
}
|
|
1628
|
-
|
|
1699
|
+
/* A toggle set's pill comes first in the group (D-37), so the first segment is
|
|
1700
|
+
the first child or the one straight after the pill. The pill's case is in
|
|
1701
|
+
:where(), so the rule keeps the specificity it had. */
|
|
1702
|
+
.cr-group > :is(button, a.cr-button, .cr-button, .cr-control):is(:first-child, :where(.cr-indicator.pill:first-child) + *) {
|
|
1629
1703
|
border-start-start-radius: 999px;
|
|
1630
1704
|
border-end-start-radius: 999px;
|
|
1631
1705
|
}
|
|
@@ -1645,7 +1719,7 @@ input[type=checkbox][role=switch] {
|
|
|
1645
1719
|
border-inline-start: 0;
|
|
1646
1720
|
border-block-start: 1px solid var(--cr-edge);
|
|
1647
1721
|
}
|
|
1648
|
-
.cr-group.vertical > :is(button, a.cr-button, .cr-button, .cr-control):first-child {
|
|
1722
|
+
.cr-group.vertical > :is(button, a.cr-button, .cr-button, .cr-control):is(:first-child, :where(.cr-indicator.pill:first-child) + *) {
|
|
1649
1723
|
border-radius: 0;
|
|
1650
1724
|
border-start-start-radius: 999px;
|
|
1651
1725
|
border-start-end-radius: 999px;
|
|
@@ -1850,7 +1924,7 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
1850
1924
|
z-index: 2;
|
|
1851
1925
|
inset-inline: var(--cr-spacing-sm);
|
|
1852
1926
|
inset-block-end: var(--cr-spacing-sm);
|
|
1853
|
-
line-height: var(--cr-leading, 1.
|
|
1927
|
+
line-height: var(--cr-leading, 1.6);
|
|
1854
1928
|
}
|
|
1855
1929
|
.cr-media:fullscreen .cr-media-bar {
|
|
1856
1930
|
inset-inline: max(var(--cr-spacing-sm), env(safe-area-inset-left), env(safe-area-inset-right));
|
|
@@ -1934,7 +2008,7 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
1934
2008
|
border-radius: var(--cr-spacing-xs);
|
|
1935
2009
|
color: var(--cr-text);
|
|
1936
2010
|
font-weight: 650;
|
|
1937
|
-
font-size: clamp(15px, 3.2cqi, 28px);
|
|
2011
|
+
font-size: calc(clamp(15px, 3.2cqi, 28px) * var(--cr-caption-scale, 1));
|
|
1938
2012
|
}
|
|
1939
2013
|
.cr-media-caption > *::before {
|
|
1940
2014
|
content: '';
|
|
@@ -1942,8 +2016,38 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
1942
2016
|
inset: 0;
|
|
1943
2017
|
z-index: -1;
|
|
1944
2018
|
border-radius: inherit;
|
|
1945
|
-
background: var(--cr-stone-fill);
|
|
1946
|
-
filter: blur(var(--cr-stone-feather));
|
|
2019
|
+
background: var(--cr-caption-backing, var(--cr-stone-fill));
|
|
2020
|
+
filter: blur(var(--cr-caption-feather, var(--cr-stone-feather)));
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
/* Below 420px the transport wraps to two rows: two 48px targets, the 4px gap
|
|
2024
|
+
between them, 4px above and below and the 1px rim. The cue clears the
|
|
2025
|
+
wrapped transport as it clears one row (D-42). */
|
|
2026
|
+
@container (max-width: 420px) {
|
|
2027
|
+
.cr-media-caption {
|
|
2028
|
+
--cr-media-transport: 110px;
|
|
2029
|
+
}
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
/* The reader's caption style. Captions are the reader's, so a player offers a
|
|
2033
|
+
* larger size and a solid backing and keeps the choice for every player on
|
|
2034
|
+
* the page. The choice is worn on `.cr-media-caption` and reaches the cue's
|
|
2035
|
+
* box through two properties: `--cr-caption-scale` scales the whole range, so
|
|
2036
|
+
* a larger cue still grows with the stage (`.large` 1.25, `.larger` 1.5), and
|
|
2037
|
+
* `.solid` puts the cue on the opaque surface in place of the feathered Stone,
|
|
2038
|
+
* the backing every fallback below already draws. Under forced colours the
|
|
2039
|
+
* cue is drawn in system colours whatever the choice. The browser's own
|
|
2040
|
+
* renderer (`::cue`) is left to the reader's system caption settings, which
|
|
2041
|
+
* every engine applies to it. */
|
|
2042
|
+
.cr-media-caption.large {
|
|
2043
|
+
--cr-caption-scale: 1.25;
|
|
2044
|
+
}
|
|
2045
|
+
.cr-media-caption.larger {
|
|
2046
|
+
--cr-caption-scale: 1.5;
|
|
2047
|
+
}
|
|
2048
|
+
.cr-media-caption.solid {
|
|
2049
|
+
--cr-caption-backing: var(--cr-surface);
|
|
2050
|
+
--cr-caption-feather: 0px;
|
|
1947
2051
|
}
|
|
1948
2052
|
|
|
1949
2053
|
/* The audio player: no picture, so the stage becomes a Haze reading surface
|
|
@@ -1959,7 +2063,7 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
1959
2063
|
fill, which `.cr-haze` sets in the reset layer. `revert-layer` hands the
|
|
1960
2064
|
background back to whichever surface the player wears. */
|
|
1961
2065
|
background: revert-layer;
|
|
1962
|
-
line-height: var(--cr-leading, 1.
|
|
2066
|
+
line-height: var(--cr-leading, 1.6);
|
|
1963
2067
|
}
|
|
1964
2068
|
.cr-media.audio .cr-media-bar {
|
|
1965
2069
|
position: static;
|
|
@@ -2068,7 +2172,10 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
2068
2172
|
:is(.cr-prose,.cr-editor) :where(ul.checklist, ul[data-type=taskList]) > li > :where(label) {
|
|
2069
2173
|
flex: none;
|
|
2070
2174
|
display: inline-flex;
|
|
2071
|
-
|
|
2175
|
+
/* The leading is unitless, so it is made a length with `1em` before the
|
|
2176
|
+
box is taken from it; without it the calc is invalid and computes 0
|
|
2177
|
+
(D-40). */
|
|
2178
|
+
margin-top: calc((var(--cr-text-body-leading) * 1em - var(--cr-choice-box-size, 26px)) / 2);
|
|
2072
2179
|
}
|
|
2073
2180
|
/* A checklist's checkbox is a choice, not the field's text entry. Inside an
|
|
2074
2181
|
editor's field shell, `.cr-field-shell :is(input, select, textarea)` would
|
|
@@ -2157,14 +2264,17 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
2157
2264
|
}
|
|
2158
2265
|
|
|
2159
2266
|
/* The editable surface: the caret in the primary ink, and an outline-free
|
|
2160
|
-
focus, because the field shell around it draws the ring.
|
|
2267
|
+
focus, because the field shell around it draws the ring. Its floor is four
|
|
2268
|
+
lines of body text inside its padding: the leading is unitless, so it is
|
|
2269
|
+
made a length with `1em` (written without it, the calc was invalid and an
|
|
2270
|
+
empty editor collapsed to its padding, D-40). The selection is a
|
|
2161
2271
|
28% primary tint under unchanged text. It is not the primary-soft pair,
|
|
2162
2272
|
which a highlight (`mark`) already wears: a highlighted word that is then
|
|
2163
2273
|
selected must still look selected. */
|
|
2164
2274
|
.cr-editor {
|
|
2165
2275
|
caret-color: var(--cr-primary);
|
|
2166
2276
|
outline: none;
|
|
2167
|
-
min-height: calc(var(--cr-text-body-leading) * 4);
|
|
2277
|
+
min-height: calc(var(--cr-text-body-leading) * 1em * 4 + var(--cr-space) * 2);
|
|
2168
2278
|
padding: var(--cr-space);
|
|
2169
2279
|
}
|
|
2170
2280
|
.cr-editor ::selection,
|
|
@@ -2215,7 +2325,15 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
2215
2325
|
* and sticks to the bottom, above the on-screen keyboard where the browser
|
|
2216
2326
|
* reports it (`keyboard-inset-height`, from the VirtualKeyboard API), so the
|
|
2217
2327
|
* formatting a person is using is never under their keyboard and is in reach of
|
|
2218
|
-
* a thumb.
|
|
2328
|
+
* a thumb. Either way it sits on the Haze fill, rounded to the well it sits in,
|
|
2329
|
+
* so a document scrolled under it does not show through its controls (D-40).
|
|
2330
|
+
*
|
|
2331
|
+
* The placement and the row are separate. The pointer decides the row: on a
|
|
2332
|
+
* fine pointer the controls wrap, on a touch screen they are one row that
|
|
2333
|
+
* scrolls sideways. `.below` and `.above` decide only the placement, for a
|
|
2334
|
+
* product that knows its layout better than the media query does: `.below`
|
|
2335
|
+
* puts the toolbar under the text on any pointer, `.above` keeps it over the
|
|
2336
|
+
* text on any pointer. */
|
|
2219
2337
|
.cr-editor-toolbar {
|
|
2220
2338
|
position: sticky;
|
|
2221
2339
|
inset-block-start: 0;
|
|
@@ -2226,6 +2344,8 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
2226
2344
|
gap: 2px;
|
|
2227
2345
|
padding: var(--cr-spacing-2xs);
|
|
2228
2346
|
border-bottom: 1px solid var(--cr-edge);
|
|
2347
|
+
border-radius: calc(var(--cr-radius) - var(--cr-haze-inset)) calc(var(--cr-radius) - var(--cr-haze-inset)) 0 0;
|
|
2348
|
+
background: var(--cr-haze-fill);
|
|
2229
2349
|
}
|
|
2230
2350
|
.cr-editor-toolbar > [role=separator] {
|
|
2231
2351
|
align-self: stretch;
|
|
@@ -2233,26 +2353,28 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
2233
2353
|
margin: var(--cr-spacing-xs) var(--cr-spacing-2xs);
|
|
2234
2354
|
background: var(--cr-edge);
|
|
2235
2355
|
}
|
|
2236
|
-
/* `.below` asks for the touch placement on any pointer, for a product that
|
|
2237
|
-
knows its layout better than the media query does. */
|
|
2238
2356
|
.cr-editor-toolbar.below {
|
|
2239
2357
|
order: 2;
|
|
2240
2358
|
inset-block-start: auto;
|
|
2241
2359
|
inset-block-end: env(keyboard-inset-height, 0px);
|
|
2242
2360
|
border-bottom: 0;
|
|
2243
2361
|
border-top: 1px solid var(--cr-edge);
|
|
2362
|
+
border-radius: 0 0 calc(var(--cr-radius) - var(--cr-haze-inset)) calc(var(--cr-radius) - var(--cr-haze-inset));
|
|
2244
2363
|
}
|
|
2245
2364
|
@media (pointer: coarse) {
|
|
2246
2365
|
.cr-editor-toolbar {
|
|
2247
|
-
order: 2;
|
|
2248
|
-
inset-block-start: auto;
|
|
2249
|
-
inset-block-end: env(keyboard-inset-height, 0px);
|
|
2250
2366
|
flex-wrap: nowrap;
|
|
2251
2367
|
overflow-x: auto;
|
|
2252
2368
|
overscroll-behavior: contain;
|
|
2369
|
+
scrollbar-width: none;
|
|
2370
|
+
}
|
|
2371
|
+
.cr-editor-toolbar:not(.above) {
|
|
2372
|
+
order: 2;
|
|
2373
|
+
inset-block-start: auto;
|
|
2374
|
+
inset-block-end: env(keyboard-inset-height, 0px);
|
|
2253
2375
|
border-bottom: 0;
|
|
2254
2376
|
border-top: 1px solid var(--cr-edge);
|
|
2255
|
-
|
|
2377
|
+
border-radius: 0 0 calc(var(--cr-radius) - var(--cr-haze-inset)) calc(var(--cr-radius) - var(--cr-haze-inset));
|
|
2256
2378
|
}
|
|
2257
2379
|
.cr-editor-toolbar > * {
|
|
2258
2380
|
flex: none;
|
|
@@ -2260,6 +2382,16 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
2260
2382
|
}
|
|
2261
2383
|
}
|
|
2262
2384
|
|
|
2385
|
+
/* With transparency reduced the well is the opaque surface, and so is the
|
|
2386
|
+
toolbar's backing. */
|
|
2387
|
+
[data-effects=opaque] .cr-editor-toolbar {
|
|
2388
|
+
background: var(--cr-surface);
|
|
2389
|
+
}
|
|
2390
|
+
@media (prefers-reduced-transparency:reduce) {
|
|
2391
|
+
.cr-editor-toolbar {
|
|
2392
|
+
background: var(--cr-surface);
|
|
2393
|
+
}
|
|
2394
|
+
}
|
|
2263
2395
|
[data-effects=opaque] .cr-media-caption > *::before {
|
|
2264
2396
|
background: var(--cr-surface);
|
|
2265
2397
|
filter: none;
|
|
@@ -2301,6 +2433,9 @@ dialog.cr-dialog:has(> .cr-dialog-body):not([open]) {
|
|
|
2301
2433
|
background: Highlight;
|
|
2302
2434
|
color: HighlightText;
|
|
2303
2435
|
}
|
|
2436
|
+
.cr-editor-toolbar {
|
|
2437
|
+
background: Canvas;
|
|
2438
|
+
}
|
|
2304
2439
|
.cr-editor-toolbar,
|
|
2305
2440
|
.cr-editor-toolbar > [role=separator] {
|
|
2306
2441
|
border-color: CanvasText;
|
package/assets/crystal.js
CHANGED
|
@@ -59,7 +59,11 @@
|
|
|
59
59
|
Object.assign(tokens,{
|
|
60
60
|
'--cr-font':s.font==='manrope'?'Manrope, system-ui, sans-serif':'system-ui, sans-serif',
|
|
61
61
|
'--cr-radius':s.radius+'px','--cr-space':s.density==='compact'?'14px':'20px',
|
|
62
|
-
'--cr-reading':'
|
|
62
|
+
'--cr-reading':data.typography.readingSize+'px',
|
|
63
|
+
/* The body's leading, the type scale's `body` step before density: the
|
|
64
|
+
value `crystal.css` gives the page, so a recipe that reads the token
|
|
65
|
+
sets the lines the page around it sets (D-41). */
|
|
66
|
+
'--cr-leading':String(data.typography.scale.body.leading),
|
|
63
67
|
'--cr-foundation-muted':p.text,
|
|
64
68
|
'--cr-mica-inactive':data.material.micaInactive[mode],
|
|
65
69
|
'--cr-atmosphere-one':rgba(p.decorative,s.atmosphere/100*(dark?.29:.24)),
|
package/assets/motion.js
CHANGED
|
@@ -81,6 +81,60 @@
|
|
|
81
81
|
element.dataset.crMotionTravel=within?String(Math.round(distance)):'0';
|
|
82
82
|
return runComponent(element,'layout',within?[{transform:`translate(${dx}px,${dy}px) scale(.98)`},{transform:'translate(0,0) scale(1)'}]:[{opacity:.65},{opacity:1}],Math.min(1200,380+distance*.65),'GSAP',options);
|
|
83
83
|
}
|
|
84
|
+
/* The travelling selection pill (D-37). `pill` is the strip's one
|
|
85
|
+
`.cr-indicator.pill`, a child of the plane (`.cr-dock`, `.cr-dock-inner` or
|
|
86
|
+
`.cr-group`); `target` is the segment now selected, whose semantics the
|
|
87
|
+
caller has already set. The pill is placed behind the target through five
|
|
88
|
+
properties the stylesheet reads, the target's box and its corners, and
|
|
89
|
+
`data-placed` hands the selection fill from the segments to the pill. The
|
|
90
|
+
first placement, `{ instant: true }` (for a resize or a font load) and
|
|
91
|
+
reduced motion place without travelling. Otherwise the pill travels from
|
|
92
|
+
where it is seen, which mid-flight is not where it was placed, so an
|
|
93
|
+
interrupted travel turns rather than jumps.
|
|
94
|
+
|
|
95
|
+
The two labels' ink crosses on the pill's clock: the arriving label goes
|
|
96
|
+
from the strip's ink to the selected ink as the pill comes under it, and
|
|
97
|
+
the departing label the other way. Holding either ink until the pill lands
|
|
98
|
+
leaves one label in the colour of whatever is about to be behind it: in a
|
|
99
|
+
dark palette the primary is light, and the strip's light ink on it all but
|
|
100
|
+
disappears. Weight is not animated; it changes with the semantics. */
|
|
101
|
+
const chosen=new WeakMap(),inks=new WeakMap();
|
|
102
|
+
function travel(pill,target,options={}){
|
|
103
|
+
if(!(pill instanceof Element)||!(target instanceof Element))throw new TypeError('CrystalMotion.travel requires the pill and the selected segment');
|
|
104
|
+
const strip=pill.parentElement;if(!strip)throw new TypeError('CrystalMotion.travel requires a pill inside its strip');
|
|
105
|
+
for(const animation of inks.get(pill)||[])animation.cancel();inks.delete(pill);
|
|
106
|
+
const box=strip.getBoundingClientRect(),at=rect=>({x:rect.left-box.left-strip.clientLeft,y:rect.top-box.top-strip.clientTop,width:rect.width,height:rect.height});
|
|
107
|
+
const next=at(target.getBoundingClientRect()),placed=pill.hasAttribute('data-placed'),seen=placed?at(pill.getBoundingClientRect()):null;
|
|
108
|
+
const departing=chosen.get(pill);chosen.set(pill,target);
|
|
109
|
+
stop(pill);
|
|
110
|
+
const corners=getComputedStyle(target).borderRadius,before=seen?getComputedStyle(pill).borderRadius:corners;
|
|
111
|
+
for(const [key,value] of Object.entries(next))pill.style.setProperty('--cr-pill-'+key,value+'px');
|
|
112
|
+
pill.style.setProperty('--cr-pill-radius',corners);
|
|
113
|
+
pill.setAttribute('data-placed','');
|
|
114
|
+
const dx=seen?seen.x-next.x:0,dy=seen?seen.y-next.y:0;
|
|
115
|
+
if(!seen||options.instant||!next.width||(Math.abs(dx)<.5&&Math.abs(dy)<.5&&Math.abs(seen.width-next.width)<.5&&Math.abs(seen.height-next.height)<.5)){
|
|
116
|
+
pill.dataset.crMotionName='selection-travel';pill.dataset.crMotionState='instant';return Promise.resolve({status:'instant'});
|
|
117
|
+
}
|
|
118
|
+
const recipe=recipes['selection-travel'];if(!recipe)throw new RangeError('Unknown Crystal motion: selection-travel');
|
|
119
|
+
pill.dataset.crMotionTravel=String(Math.round(Math.hypot(dx,dy)));
|
|
120
|
+
const run=runComponent(pill,'selection-travel',[
|
|
121
|
+
{transform:`translate(${dx}px,${dy}px)`,width:seen.width+'px',height:seen.height+'px',borderRadius:before},
|
|
122
|
+
{transform:'translate(0px,0px)',width:next.width+'px',height:next.height+'px',borderRadius:corners},
|
|
123
|
+
],recipe.duration,recipe.engine,options);
|
|
124
|
+
if(pill.dataset.crMotionState==='running'){
|
|
125
|
+
pill.setAttribute('data-travelling','');
|
|
126
|
+
if(departing&&departing!==target&&departing.isConnected&&typeof target.animate==='function'){
|
|
127
|
+
const selectedInk=getComputedStyle(target).color,stripInk=getComputedStyle(departing).color;
|
|
128
|
+
const timing={duration:duration(recipe.duration,options.rate),easing:'cubic-bezier(0.22, 0.65, 0.22, 1)'};
|
|
129
|
+
if(selectedInk!==stripInk)inks.set(pill,[
|
|
130
|
+
target.animate([{color:stripInk},{color:selectedInk}],timing),
|
|
131
|
+
departing.animate([{color:selectedInk},{color:stripInk}],timing),
|
|
132
|
+
]);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const land=()=>{if(pill.dataset.crMotionState!=='running')pill.removeAttribute('data-travelling');};
|
|
136
|
+
return run.then(result=>{land();return result;},error=>{land();throw error;});
|
|
137
|
+
}
|
|
84
138
|
function play(element,name,options={}){
|
|
85
139
|
if(recipes[name]){const recipe=recipes[name];return runComponent(element,name,recipe.keyframes,recipe.duration,recipe.engine,options);}
|
|
86
140
|
|
|
@@ -146,5 +200,5 @@
|
|
|
146
200
|
work is in the request log. The optical layer remains for motion that a
|
|
147
201
|
person starts. */
|
|
148
202
|
|
|
149
|
-
root.CrystalMotion=Object.freeze({play,layout,duration,recipes:Object.freeze(recipes),stop,stopAll,reduced,direction,presets:Object.freeze([...Object.keys(durationNames),...Object.keys(recipes)])});
|
|
203
|
+
root.CrystalMotion=Object.freeze({play,layout,travel,duration,recipes:Object.freeze(recipes),stop,stopAll,reduced,direction,presets:Object.freeze([...Object.keys(durationNames),...Object.keys(recipes)])});
|
|
150
204
|
})(window);
|
package/assets/tokens.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
window.CRYSTAL_TOKENS = {"version":"2.0.0","name":"Crystal","basis":"crystal-03-balanced; Meridian Digital design system","default":{"palette":"prism","mode":"light","atmosphere":90,"translucency":35,"elevation":125,"radius":28,"density":"comfortable","reduced":false,"font":"manrope","reduceMotion":false,"motionSpeed":1},"palettes":{"prism":{"name":"Prism","description":"Electric violet, orchid light. The shared signature.","seed":"#7338EF","companion":"#EF48C6","glow":"#52BDF3","modes":{"light":{"canvas":"#f9f6fe","surface":"#ffffff","surfaceAlt":"#f2edfe","text":"#171130","muted":"#402e76","primary":"#7338EF","onPrimary":"#ffffff","primarySoft":"#e6dbfc","onPrimarySoft":"#2b195a","outline":"#624a9f","decorative":"#7338EF","companion":"#EF48C6","glow":"#52BDF3","chartSeries1":"#9D45B2","chartSeries2":"#C43444","chartSeries3":"#956800","chartSeries4":"#298800","chartSeries5":"#008287","chartSeries6":"#286CD8","chartHeat1":"#EFEEFD","chartOnHeat1":"#171130","chartHeat2":"#D6D3F9","chartOnHeat2":"#171130","chartHeat3":"#BEB7F4","chartOnHeat3":"#171130","chartHeat4":"#A79CEE","chartOnHeat4":"#171130","chartHeat5":"#9280E7","chartOnHeat5":"#171130","chartAxis":"#624a9f","chartGrid":"rgba(23, 17, 48, 0.12)"},"dark":{"canvas":"#120d26","surface":"#1d1730","surfaceAlt":"#332756","text":"#f7f3fe","muted":"#dbcbfb","primary":"#c8b1f9","onPrimary":"#16102e","primarySoft":"#331e65","onPrimarySoft":"#ebe3fd","outline":"#bfa3f8","decorative":"#7e48f0","companion":"#EF48C6","glow":"#52BDF3","chartSeries1":"#D57BEA","chartSeries2":"#FF7077","chartSeries3":"#D59800","chartSeries4":"#60BE48","chartSeries5":"#00BBC2","chartSeries6":"#6CA4FF","chartHeat1":"#1B1929","chartOnHeat1":"#f7f3fe","chartHeat2":"#292443","chartOnHeat2":"#f7f3fe","chartHeat3":"#372E60","chartOnHeat3":"#f7f3fe","chartHeat4":"#46387D","chartOnHeat4":"#f7f3fe","chartHeat5":"#56429C","chartOnHeat5":"#f7f3fe","chartAxis":"#bfa3f8","chartGrid":"rgba(247, 243, 254, 0.16)"}}},"fuchsia":{"name":"Fuchsia","description":"Confident magenta for creative products.","seed":"#C01993","companion":"#7C4DFF","glow":"#FF96DA","modes":{"light":{"canvas":"#fcf5fa","surface":"#ffffff","surfaceAlt":"#f9eaf5","text":"#210d25","muted":"#5b2356","primary":"#C01993","onPrimary":"#ffffff","primarySoft":"#f4d6ec","onPrimarySoft":"#440f3d","outline":"#813e7a","decorative":"#C01993","companion":"#7C4DFF","glow":"#FF96DA","chartSeries1":"#C33353","chartSeries2":"#9B6400","chartSeries3":"#4B8300","chartSeries4":"#008380","chartSeries5":"#0071D0","chartSeries6":"#9549BB","chartHeat1":"#FAEBF4","chartOnHeat1":"#210d25","chartHeat2":"#F2CBE1","chartOnHeat2":"#210d25","chartHeat3":"#E8ABCF","chartOnHeat3":"#210d25","chartHeat4":"#DC8ABD","chartOnHeat4":"#210d25","chartHeat5":"#CF69AB","chartOnHeat5":"#210d25","chartAxis":"#813e7a","chartGrid":"rgba(33, 13, 37, 0.12)"},"dark":{"canvas":"#190a1e","surface":"#241427","surfaceAlt":"#422144","text":"#fbf1f9","muted":"#efc3e3","primary":"#e6a5d5","onPrimary":"#1f0d23","primarySoft":"#4e1344","onPrimarySoft":"#f6dff0","outline":"#e295cd","decorative":"#c52b9c","companion":"#7C4DFF","glow":"#FF96DA","chartSeries1":"#FF6D85","chartSeries2":"#DE9200","chartSeries3":"#76BB32","chartSeries4":"#00BCB9","chartSeries5":"#5AA8FF","chartSeries6":"#CB7EF4","chartHeat1":"#26161F","chartOnHeat1":"#fbf1f9","chartHeat2":"#3C1D31","chartOnHeat2":"#fbf1f9","chartHeat3":"#542343","chartOnHeat3":"#fbf1f9","chartHeat4":"#6D2856","chartOnHeat4":"#fbf1f9","chartHeat5":"#862D6A","chartOnHeat5":"#fbf1f9","chartAxis":"#e295cd","chartGrid":"rgba(251, 241, 249, 0.16)"}}},"cobalt":{"name":"Cobalt","description":"Clear blue with a violet undertone.","seed":"#2758E8","companion":"#6D47F2","glow":"#48C6F0","modes":{"light":{"canvas":"#f5f7fe","surface":"#ffffff","surfaceAlt":"#ecf0fd","text":"#0d1530","muted":"#263974","primary":"#2758E8","onPrimary":"#ffffff","primarySoft":"#d8e1fb","onPrimarySoft":"#132458","outline":"#44579c","decorative":"#2758E8","companion":"#6D47F2","glow":"#48C6F0","chartSeries1":"#7C54CD","chartSeries2":"#BC3577","chartSeries3":"#AD5700","chartSeries4":"#707900","chartSeries5":"#00856E","chartSeries6":"#007BAC","chartHeat1":"#EAF0FE","chartOnHeat1":"#0d1530","chartHeat2":"#C7D8FC","chartOnHeat2":"#0d1530","chartHeat3":"#A5C0F8","chartOnHeat3":"#0d1530","chartHeat4":"#84A7F3","chartOnHeat4":"#0d1530","chartHeat5":"#648EED","chartOnHeat5":"#0d1530","chartAxis":"#44579c","chartGrid":"rgba(13, 21, 48, 0.12)"},"dark":{"canvas":"#0b1025","surface":"#151a30","surfaceAlt":"#252d55","text":"#f2f5fe","muted":"#c7d4f9","primary":"#abbef6","onPrimary":"#0d142d","primarySoft":"#182962","onPrimarySoft":"#e1e8fc","outline":"#9cb2f4","decorative":"#3865ea","companion":"#6D47F2","glow":"#48C6F0","chartSeries1":"#AD8DFF","chartSeries2":"#F86DAA","chartSeries3":"#F78000","chartSeries4":"#A3AF00","chartSeries5":"#00C09F","chartSeries6":"#00B2F6","chartHeat1":"#151C2A","chartOnHeat1":"#f2f5fe","chartHeat2":"#1B2846","chartOnHeat2":"#f2f5fe","chartHeat3":"#213563","chartOnHeat3":"#f2f5fe","chartHeat4":"#274282","chartOnHeat4":"#f2f5fe","chartHeat5":"#2E4FA2","chartOnHeat5":"#f2f5fe","chartAxis":"#9cb2f4","chartGrid":"rgba(242, 245, 254, 0.16)"}}},"ion":{"name":"Ion","description":"Vivid cyan and indigo for focused tools.","seed":"#007E97","companion":"#3D45E5","glow":"#36DCD1","modes":{"light":{"canvas":"#f4f9fa","surface":"#ffffff","surfaceAlt":"#e8f3f6","text":"#081a25","muted":"#184757","primary":"#007E97","onPrimary":"#ffffff","primarySoft":"#d1e8ec","onPrimarySoft":"#06303e","outline":"#34667c","decorative":"#007E97","companion":"#3D45E5","glow":"#36DCD1","chartSeries1":"#0075C4","chartSeries2":"#8F4CC0","chartSeries3":"#C2335D","chartSeries4":"#9F6200","chartSeries5":"#588000","chartSeries6":"#00837C","chartHeat1":"#E2F4F9","chartOnHeat1":"#081a25","chartHeat2":"#B2E1EF","chartOnHeat2":"#081a25","chartHeat3":"#7ECEE5","chartOnHeat3":"#081a25","chartHeat4":"#38BADA","chartOnHeat4":"#081a25","chartHeat5":"#00A3C3","chartOnHeat5":"#081a25","chartAxis":"#34667c","chartGrid":"rgba(8, 26, 37, 0.12)"},"dark":{"canvas":"#07141e","surface":"#111e27","surfaceAlt":"#1d3445","text":"#f0f7f9","muted":"#bddde4","primary":"#9ccdd6","onPrimary":"#081924","primarySoft":"#0a3646","onPrimarySoft":"#dbedf0","outline":"#8ac4cf","decorative":"#14889f","companion":"#3D45E5","glow":"#36DCD1","chartSeries1":"#4AAAFF","chartSeries2":"#C481FA","chartSeries3":"#FE6C8F","chartSeries4":"#E48E00","chartSeries5":"#83B81E","chartSeries6":"#00BDB3","chartHeat1":"#091F25","chartOnHeat1":"#f0f7f9","chartHeat2":"#002F3B","chartOnHeat2":"#f0f7f9","chartHeat3":"#003F4D","chartOnHeat3":"#f0f7f9","chartHeat4":"#004F60","chartOnHeat4":"#f0f7f9","chartHeat5":"#006073","chartOnHeat5":"#f0f7f9","chartAxis":"#8ac4cf","chartGrid":"rgba(240, 247, 249, 0.16)"}}},"amethyst":{"name":"Amethyst","description":"Rich purple with a warm luminous edge.","seed":"#8430C6","companion":"#CE49B2","glow":"#9198FF","modes":{"light":{"canvas":"#f9f6fc","surface":"#ffffff","surfaceAlt":"#f4ecfa","text":"#19102b","muted":"#462b68","primary":"#8430C6","onPrimary":"#ffffff","primarySoft":"#e9daf5","onPrimarySoft":"#30174d","outline":"#69478f","decorative":"#8430C6","companion":"#CE49B2","glow":"#9198FF","chartSeries1":"#AD3D9A","chartSeries2":"#C43B15","chartSeries3":"#867000","chartSeries4":"#00884D","chartSeries5":"#007F95","chartSeries6":"#5761D8","chartHeat1":"#F3EDFB","chartOnHeat1":"#19102b","chartHeat2":"#E0D0F4","chartOnHeat2":"#19102b","chartHeat3":"#CDB3ED","chartOnHeat3":"#19102b","chartHeat4":"#BA95E4","chartOnHeat4":"#19102b","chartHeat5":"#A878DB","chartOnHeat5":"#19102b","chartAxis":"#69478f","chartGrid":"rgba(25, 16, 43, 0.12)"},"dark":{"canvas":"#130d22","surface":"#1e162c","surfaceAlt":"#36254e","text":"#f8f3fc","muted":"#dfc9f0","primary":"#cfaee9","onPrimary":"#180f29","primarySoft":"#391b56","onPrimarySoft":"#eee2f7","outline":"#c6a0e5","decorative":"#8e41cb","companion":"#CE49B2","glow":"#9198FF","chartSeries1":"#E773D0","chartSeries2":"#FF7452","chartSeries3":"#C2A200","chartSeries4":"#00C471","chartSeries5":"#00B8D6","chartSeries6":"#8B9BFF","chartHeat1":"#1F1827","chartOnHeat1":"#f8f3fc","chartHeat2":"#302140","chartOnHeat2":"#f8f3fc","chartHeat3":"#422A5A","chartOnHeat3":"#f8f3fc","chartHeat4":"#543375","chartOnHeat4":"#f8f3fc","chartHeat5":"#683B92","chartOnHeat5":"#f8f3fc","chartAxis":"#c6a0e5","chartGrid":"rgba(248, 243, 252, 0.16)"}}},"harbor":{"name":"Harbor","description":"The original palette, mapped to shared roles.","seed":"#4669B2","companion":"#8970B5","glow":"#72C4DF","modes":{"light":{"canvas":"#faf8fe","surface":"#ffffff","surfaceAlt":"#e7e7f1","text":"#30323a","muted":"#5c5f68","primary":"#4b5e8b","onPrimary":"#f9f8ff","primarySoft":"#b8cbff","onPrimarySoft":"#2f436e","outline":"#787a84","decorative":"#4669B2","companion":"#8970B5","glow":"#72C4DF","chartSeries1":"#7955CF","chartSeries2":"#BB367A","chartSeries3":"#AE5600","chartSeries4":"#727800","chartSeries5":"#00856C","chartSeries6":"#007BAA","chartHeat1":"#E9F0FE","chartOnHeat1":"#30323a","chartHeat2":"#B3C5E7","chartOnHeat2":"#30323a","chartHeat3":"#7F9AD0","chartOnHeat3":"#30323a","chartHeat4":"#4E70B7","chartOnHeat4":"#f9f8ff","chartHeat5":"#1F459D","chartOnHeat5":"#f9f8ff","chartAxis":"#787a84","chartGrid":"rgba(48, 50, 58, 0.12)"},"dark":{"canvas":"#0d0e12","surface":"#111318","surfaceAlt":"#1d1f26","text":"#e4e5f0","muted":"#a9aab5","primary":"#b8c6ee","onPrimary":"#314060","primarySoft":"#445274","onPrimarySoft":"#dae3ff","outline":"#73757f","decorative":"#4669B2","companion":"#8970B5","glow":"#72C4DF","contentOwnSurface":"#283c60","chartSeries1":"#AA8EFF","chartSeries2":"#F76EAD","chartSeries3":"#F87E08","chartSeries4":"#A5AE00","chartSeries5":"#00C09D","chartSeries6":"#00B2F3","chartHeat1":"#141C2A","chartOnHeat1":"#e4e5f0","chartHeat2":"#1A2845","chartOnHeat2":"#e4e5f0","chartHeat3":"#203563","chartOnHeat3":"#e4e5f0","chartHeat4":"#254282","chartOnHeat4":"#e4e5f0","chartHeat5":"#2A50A2","chartOnHeat5":"#e4e5f0","chartAxis":"#73757f","chartGrid":"rgba(228, 229, 240, 0.16)"}}}},"status":{"light":{"success":{"ink":"#175D38","surface":"#E5F4EA","symbol":"✓","label":"Ready"},"attention":{"ink":"#714B00","surface":"#FFF0CD","symbol":"△","label":"Review needed"},"danger":{"ink":"#941D36","surface":"#FFE8EC","symbol":"!","label":"Action blocked"},"info":{"ink":"#334155","surface":"#E8EDF4","symbol":"i","label":"Information"}},"dark":{"success":{"ink":"#9BE2B3","surface":"#173525","symbol":"✓","label":"Ready"},"attention":{"ink":"#FFDA8A","surface":"#3D2D0E","symbol":"△","label":"Review needed"},"danger":{"ink":"#FFB2C0","surface":"#481C29","symbol":"!","label":"Action blocked"},"info":{"ink":"#D2DCEC","surface":"#263244","symbol":"i","label":"Information"}}},"material":{"acrylicBlur":40,"acrylicSaturation":125,"glassBlur":20,"glassSaturation":165,"glassOpacity":0.2,"grainOpacity":0.045,"labelVeil":0.55,"labelVeilDark":0.6,"contentOpacity":0.8,"contentFeather":1.95,"stoneFeather":1.95,"mirageColor":"#111525","mirageOpacity":0.38,"mirageBlur":28,"mirageSaturation":165,"mirageBrightness":88,"mirageFallbackOpacity":0.64,"micaInactive":{"light":"#f1f1f3","dark":"#202126"}},"motion":{"press":120,"state":213.33,"spatial":293.33,"exit":160,"easing":{"enter":"cubic-bezier(0.22, 0.65, 0.22, 1)","settle":"cubic-bezier(0.2, 0, 0.2, 1)","exit":"cubic-bezier(0.4, 0, 0.6, 1)"},"distance":{"panel":24,"floating":30,"content":0,"exit":20,"depth":50,"feather":6},"material":1000,"liquid":1400,"flow":1200,"departure":650,"maxDuration":5000,"maxTravel":50,"travelPolicy":{"ordinaryRange":[5,30],"compactGuideline":50,"extended":"Documented large compositions and measured layout may exceed 50px.","stationaryMaterials":["haze","stone"]}},"typography":{"readingSize":16,"readingLeading":24,"family":"Manrope","scale":{"display":{"ratio":2,"leading":1.1,"tracking":"-0.055em"},"title":{"ratio":1.5,"leading":1.2,"tracking":"-0.04em"},"heading":{"ratio":1.25,"leading":1.3,"tracking":"-0.03em"},"subheading":{"ratio":1.0625,"leading":1.45,"tracking":"-0.01em"},"body":{"ratio":1,"leading":1.5,"tracking":"0"},"caption":{"ratio":0.8125,"leading":1.45,"tracking":"0"}}},"component":{"action":{"radius":999,"minTarget":48,"paddingBlock":15,"paddingInline":24,"gap":9,"disabledOpacity":0.55},"scrollbar":{"width":10,"thumbMinLength":32,"inset":2},"scrollArea":{"fadeDepth":24},"layout":{"containerMax":1536,"readingMax":920,"gutterCompact":18,"gutterBase":26,"gutterWide":44,"minCellWidth":240,"sidebarWidth":280},"icon":{"size":20,"action":24},"choice":{"boxSize":26,"boxRadius":9},"switch":{"trackWidth":44,"trackHeight":28},"slider":{"trackHeight":8,"thumbSize":26},"chip":{"height":32},"overlayArrow":{"size":14,"radius":3},"overlay":{"maxWidth":480,"tooltipMaxWidth":352,"tooltipRadius":18},"field":{"wellInset":7},"card":{"radius":28},"focus":{"coreWidth":2,"coreOffset":3},"indicator":{"size":20,"fieldSize":24,"lineWidth":3},"anchor":{"underlineOffset":4},"tree":{"indentStep":20},"haze":{"inset":8},"chart":{"seriesCount":6,"seriesLightness":{"light":0.55,"dark":0.72},"seriesChroma":0.18,"seriesHueOffset":30,"seriesContrast":3,"stroke":2,"hairline":1,"pointMin":6,"pointMax":18,"barRadius":4,"cellGap":2,"ringThickness":0.32,"fillOpacity":0.25,"linkOpacity":0.45,"intensitySteps":5,"gaugeSweep":270},"progress":{"ringStroke":8}},"spacing":{"2xs":4,"xs":8,"sm":12,"md":16,"lg":24,"xl":32,"2xl":48},"schemaNote":"Generated from core/tokens/crystal.tokens.json (W3C DTCG). Edit the DTCG source, not this file.","materials":{"plastic":{"name":"Plastic","role":"Opaque contextual foundation","inspiration":"Microsoft Mica","primitive":".cr-plastic"},"frost":{"name":"Frost","role":"Diffused intermediate surface","inspiration":"Microsoft Acrylic","primitive":".cr-frost"},"resin":{"name":"Resin","role":"Floating optical control surface","inspiration":"Apple Liquid Glass","primitive":".cr-resin"},"haze":{"name":"Haze","role":"Soft content fill","inspiration":"Crystal solid content recipe","primitive":".cr-haze"},"stone":{"name":"Stone","role":"Protected label backing","inspiration":"Crystal protected-label veil","primitive":".cr-stone"},"mirage":{"name":"Mirage","role":"Chromatic diffusion and dark modal separation","inspiration":"Modal smoke/scrim pattern","primitive":".cr-mirage and dialog::backdrop"}}};
|
|
1
|
+
window.CRYSTAL_TOKENS = {"version":"2.0.0","name":"Crystal","basis":"crystal-03-balanced; Meridian Digital design system","default":{"palette":"prism","mode":"light","atmosphere":90,"translucency":35,"elevation":125,"radius":28,"density":"comfortable","reduced":false,"font":"manrope","reduceMotion":false,"motionSpeed":1},"palettes":{"prism":{"name":"Prism","description":"Electric violet, orchid light. The shared signature.","seed":"#7338EF","companion":"#EF48C6","glow":"#52BDF3","modes":{"light":{"canvas":"#f9f6fe","surface":"#ffffff","surfaceAlt":"#f2edfe","text":"#171130","muted":"#402e76","primary":"#7338EF","onPrimary":"#ffffff","primarySoft":"#e6dbfc","onPrimarySoft":"#2b195a","outline":"#624a9f","decorative":"#7338EF","companion":"#EF48C6","glow":"#52BDF3","chartSeries1":"#9D45B2","chartSeries2":"#C43444","chartSeries3":"#956800","chartSeries4":"#298800","chartSeries5":"#008287","chartSeries6":"#286CD8","chartHeat1":"#EFEEFD","chartOnHeat1":"#171130","chartHeat2":"#D6D3F9","chartOnHeat2":"#171130","chartHeat3":"#BEB7F4","chartOnHeat3":"#171130","chartHeat4":"#A79CEE","chartOnHeat4":"#171130","chartHeat5":"#9280E7","chartOnHeat5":"#171130","chartAxis":"#624a9f","chartGrid":"rgba(23, 17, 48, 0.12)"},"dark":{"canvas":"#120d26","surface":"#1d1730","surfaceAlt":"#332756","text":"#f7f3fe","muted":"#dbcbfb","primary":"#c8b1f9","onPrimary":"#16102e","primarySoft":"#331e65","onPrimarySoft":"#ebe3fd","outline":"#bfa3f8","decorative":"#7e48f0","companion":"#EF48C6","glow":"#52BDF3","chartSeries1":"#D57BEA","chartSeries2":"#FF7077","chartSeries3":"#D59800","chartSeries4":"#60BE48","chartSeries5":"#00BBC2","chartSeries6":"#6CA4FF","chartHeat1":"#1B1929","chartOnHeat1":"#f7f3fe","chartHeat2":"#292443","chartOnHeat2":"#f7f3fe","chartHeat3":"#372E60","chartOnHeat3":"#f7f3fe","chartHeat4":"#46387D","chartOnHeat4":"#f7f3fe","chartHeat5":"#56429C","chartOnHeat5":"#f7f3fe","chartAxis":"#bfa3f8","chartGrid":"rgba(247, 243, 254, 0.16)"}}},"fuchsia":{"name":"Fuchsia","description":"Confident magenta for creative products.","seed":"#C01993","companion":"#7C4DFF","glow":"#FF96DA","modes":{"light":{"canvas":"#fcf5fa","surface":"#ffffff","surfaceAlt":"#f9eaf5","text":"#210d25","muted":"#5b2356","primary":"#C01993","onPrimary":"#ffffff","primarySoft":"#f4d6ec","onPrimarySoft":"#440f3d","outline":"#813e7a","decorative":"#C01993","companion":"#7C4DFF","glow":"#FF96DA","chartSeries1":"#C33353","chartSeries2":"#9B6400","chartSeries3":"#4B8300","chartSeries4":"#008380","chartSeries5":"#0071D0","chartSeries6":"#9549BB","chartHeat1":"#FAEBF4","chartOnHeat1":"#210d25","chartHeat2":"#F2CBE1","chartOnHeat2":"#210d25","chartHeat3":"#E8ABCF","chartOnHeat3":"#210d25","chartHeat4":"#DC8ABD","chartOnHeat4":"#210d25","chartHeat5":"#CF69AB","chartOnHeat5":"#210d25","chartAxis":"#813e7a","chartGrid":"rgba(33, 13, 37, 0.12)"},"dark":{"canvas":"#190a1e","surface":"#241427","surfaceAlt":"#422144","text":"#fbf1f9","muted":"#efc3e3","primary":"#e6a5d5","onPrimary":"#1f0d23","primarySoft":"#4e1344","onPrimarySoft":"#f6dff0","outline":"#e295cd","decorative":"#c52b9c","companion":"#7C4DFF","glow":"#FF96DA","chartSeries1":"#FF6D85","chartSeries2":"#DE9200","chartSeries3":"#76BB32","chartSeries4":"#00BCB9","chartSeries5":"#5AA8FF","chartSeries6":"#CB7EF4","chartHeat1":"#26161F","chartOnHeat1":"#fbf1f9","chartHeat2":"#3C1D31","chartOnHeat2":"#fbf1f9","chartHeat3":"#542343","chartOnHeat3":"#fbf1f9","chartHeat4":"#6D2856","chartOnHeat4":"#fbf1f9","chartHeat5":"#862D6A","chartOnHeat5":"#fbf1f9","chartAxis":"#e295cd","chartGrid":"rgba(251, 241, 249, 0.16)"}}},"cobalt":{"name":"Cobalt","description":"Clear blue with a violet undertone.","seed":"#2758E8","companion":"#6D47F2","glow":"#48C6F0","modes":{"light":{"canvas":"#f5f7fe","surface":"#ffffff","surfaceAlt":"#ecf0fd","text":"#0d1530","muted":"#263974","primary":"#2758E8","onPrimary":"#ffffff","primarySoft":"#d8e1fb","onPrimarySoft":"#132458","outline":"#44579c","decorative":"#2758E8","companion":"#6D47F2","glow":"#48C6F0","chartSeries1":"#7C54CD","chartSeries2":"#BC3577","chartSeries3":"#AD5700","chartSeries4":"#707900","chartSeries5":"#00856E","chartSeries6":"#007BAC","chartHeat1":"#EAF0FE","chartOnHeat1":"#0d1530","chartHeat2":"#C7D8FC","chartOnHeat2":"#0d1530","chartHeat3":"#A5C0F8","chartOnHeat3":"#0d1530","chartHeat4":"#84A7F3","chartOnHeat4":"#0d1530","chartHeat5":"#648EED","chartOnHeat5":"#0d1530","chartAxis":"#44579c","chartGrid":"rgba(13, 21, 48, 0.12)"},"dark":{"canvas":"#0b1025","surface":"#151a30","surfaceAlt":"#252d55","text":"#f2f5fe","muted":"#c7d4f9","primary":"#abbef6","onPrimary":"#0d142d","primarySoft":"#182962","onPrimarySoft":"#e1e8fc","outline":"#9cb2f4","decorative":"#3865ea","companion":"#6D47F2","glow":"#48C6F0","chartSeries1":"#AD8DFF","chartSeries2":"#F86DAA","chartSeries3":"#F78000","chartSeries4":"#A3AF00","chartSeries5":"#00C09F","chartSeries6":"#00B2F6","chartHeat1":"#151C2A","chartOnHeat1":"#f2f5fe","chartHeat2":"#1B2846","chartOnHeat2":"#f2f5fe","chartHeat3":"#213563","chartOnHeat3":"#f2f5fe","chartHeat4":"#274282","chartOnHeat4":"#f2f5fe","chartHeat5":"#2E4FA2","chartOnHeat5":"#f2f5fe","chartAxis":"#9cb2f4","chartGrid":"rgba(242, 245, 254, 0.16)"}}},"ion":{"name":"Ion","description":"Vivid cyan and indigo for focused tools.","seed":"#007E97","companion":"#3D45E5","glow":"#36DCD1","modes":{"light":{"canvas":"#f4f9fa","surface":"#ffffff","surfaceAlt":"#e8f3f6","text":"#081a25","muted":"#184757","primary":"#007E97","onPrimary":"#ffffff","primarySoft":"#d1e8ec","onPrimarySoft":"#06303e","outline":"#34667c","decorative":"#007E97","companion":"#3D45E5","glow":"#36DCD1","chartSeries1":"#0075C4","chartSeries2":"#8F4CC0","chartSeries3":"#C2335D","chartSeries4":"#9F6200","chartSeries5":"#588000","chartSeries6":"#00837C","chartHeat1":"#E2F4F9","chartOnHeat1":"#081a25","chartHeat2":"#B2E1EF","chartOnHeat2":"#081a25","chartHeat3":"#7ECEE5","chartOnHeat3":"#081a25","chartHeat4":"#38BADA","chartOnHeat4":"#081a25","chartHeat5":"#00A3C3","chartOnHeat5":"#081a25","chartAxis":"#34667c","chartGrid":"rgba(8, 26, 37, 0.12)"},"dark":{"canvas":"#07141e","surface":"#111e27","surfaceAlt":"#1d3445","text":"#f0f7f9","muted":"#bddde4","primary":"#9ccdd6","onPrimary":"#081924","primarySoft":"#0a3646","onPrimarySoft":"#dbedf0","outline":"#8ac4cf","decorative":"#14889f","companion":"#3D45E5","glow":"#36DCD1","chartSeries1":"#4AAAFF","chartSeries2":"#C481FA","chartSeries3":"#FE6C8F","chartSeries4":"#E48E00","chartSeries5":"#83B81E","chartSeries6":"#00BDB3","chartHeat1":"#091F25","chartOnHeat1":"#f0f7f9","chartHeat2":"#002F3B","chartOnHeat2":"#f0f7f9","chartHeat3":"#003F4D","chartOnHeat3":"#f0f7f9","chartHeat4":"#004F60","chartOnHeat4":"#f0f7f9","chartHeat5":"#006073","chartOnHeat5":"#f0f7f9","chartAxis":"#8ac4cf","chartGrid":"rgba(240, 247, 249, 0.16)"}}},"amethyst":{"name":"Amethyst","description":"Rich purple with a warm luminous edge.","seed":"#8430C6","companion":"#CE49B2","glow":"#9198FF","modes":{"light":{"canvas":"#f9f6fc","surface":"#ffffff","surfaceAlt":"#f4ecfa","text":"#19102b","muted":"#462b68","primary":"#8430C6","onPrimary":"#ffffff","primarySoft":"#e9daf5","onPrimarySoft":"#30174d","outline":"#69478f","decorative":"#8430C6","companion":"#CE49B2","glow":"#9198FF","chartSeries1":"#AD3D9A","chartSeries2":"#C43B15","chartSeries3":"#867000","chartSeries4":"#00884D","chartSeries5":"#007F95","chartSeries6":"#5761D8","chartHeat1":"#F3EDFB","chartOnHeat1":"#19102b","chartHeat2":"#E0D0F4","chartOnHeat2":"#19102b","chartHeat3":"#CDB3ED","chartOnHeat3":"#19102b","chartHeat4":"#BA95E4","chartOnHeat4":"#19102b","chartHeat5":"#A878DB","chartOnHeat5":"#19102b","chartAxis":"#69478f","chartGrid":"rgba(25, 16, 43, 0.12)"},"dark":{"canvas":"#130d22","surface":"#1e162c","surfaceAlt":"#36254e","text":"#f8f3fc","muted":"#dfc9f0","primary":"#cfaee9","onPrimary":"#180f29","primarySoft":"#391b56","onPrimarySoft":"#eee2f7","outline":"#c6a0e5","decorative":"#8e41cb","companion":"#CE49B2","glow":"#9198FF","chartSeries1":"#E773D0","chartSeries2":"#FF7452","chartSeries3":"#C2A200","chartSeries4":"#00C471","chartSeries5":"#00B8D6","chartSeries6":"#8B9BFF","chartHeat1":"#1F1827","chartOnHeat1":"#f8f3fc","chartHeat2":"#302140","chartOnHeat2":"#f8f3fc","chartHeat3":"#422A5A","chartOnHeat3":"#f8f3fc","chartHeat4":"#543375","chartOnHeat4":"#f8f3fc","chartHeat5":"#683B92","chartOnHeat5":"#f8f3fc","chartAxis":"#c6a0e5","chartGrid":"rgba(248, 243, 252, 0.16)"}}},"harbor":{"name":"Harbor","description":"The original palette, mapped to shared roles.","seed":"#4669B2","companion":"#8970B5","glow":"#72C4DF","modes":{"light":{"canvas":"#faf8fe","surface":"#ffffff","surfaceAlt":"#e7e7f1","text":"#30323a","muted":"#5c5f68","primary":"#4b5e8b","onPrimary":"#f9f8ff","primarySoft":"#b8cbff","onPrimarySoft":"#2f436e","outline":"#787a84","decorative":"#4669B2","companion":"#8970B5","glow":"#72C4DF","chartSeries1":"#7955CF","chartSeries2":"#BB367A","chartSeries3":"#AE5600","chartSeries4":"#727800","chartSeries5":"#00856C","chartSeries6":"#007BAA","chartHeat1":"#E9F0FE","chartOnHeat1":"#30323a","chartHeat2":"#B3C5E7","chartOnHeat2":"#30323a","chartHeat3":"#7F9AD0","chartOnHeat3":"#30323a","chartHeat4":"#4E70B7","chartOnHeat4":"#f9f8ff","chartHeat5":"#1F459D","chartOnHeat5":"#f9f8ff","chartAxis":"#787a84","chartGrid":"rgba(48, 50, 58, 0.12)"},"dark":{"canvas":"#0d0e12","surface":"#111318","surfaceAlt":"#1d1f26","text":"#e4e5f0","muted":"#a9aab5","primary":"#b8c6ee","onPrimary":"#314060","primarySoft":"#445274","onPrimarySoft":"#dae3ff","outline":"#73757f","decorative":"#4669B2","companion":"#8970B5","glow":"#72C4DF","contentOwnSurface":"#283c60","chartSeries1":"#AA8EFF","chartSeries2":"#F76EAD","chartSeries3":"#F87E08","chartSeries4":"#A5AE00","chartSeries5":"#00C09D","chartSeries6":"#00B2F3","chartHeat1":"#141C2A","chartOnHeat1":"#e4e5f0","chartHeat2":"#1A2845","chartOnHeat2":"#e4e5f0","chartHeat3":"#203563","chartOnHeat3":"#e4e5f0","chartHeat4":"#254282","chartOnHeat4":"#e4e5f0","chartHeat5":"#2A50A2","chartOnHeat5":"#e4e5f0","chartAxis":"#73757f","chartGrid":"rgba(228, 229, 240, 0.16)"}}}},"status":{"light":{"success":{"ink":"#175D38","surface":"#E5F4EA","symbol":"✓","label":"Ready"},"attention":{"ink":"#714B00","surface":"#FFF0CD","symbol":"△","label":"Review needed"},"danger":{"ink":"#941D36","surface":"#FFE8EC","symbol":"!","label":"Action blocked"},"info":{"ink":"#334155","surface":"#E8EDF4","symbol":"i","label":"Information"}},"dark":{"success":{"ink":"#9BE2B3","surface":"#173525","symbol":"✓","label":"Ready"},"attention":{"ink":"#FFDA8A","surface":"#3D2D0E","symbol":"△","label":"Review needed"},"danger":{"ink":"#FFB2C0","surface":"#481C29","symbol":"!","label":"Action blocked"},"info":{"ink":"#D2DCEC","surface":"#263244","symbol":"i","label":"Information"}}},"material":{"acrylicBlur":40,"acrylicSaturation":125,"glassBlur":20,"glassSaturation":165,"glassOpacity":0.2,"grainOpacity":0.045,"labelVeil":0.55,"labelVeilDark":0.6,"contentOpacity":0.8,"contentFeather":1.95,"stoneFeather":1.95,"mirageColor":"#111525","mirageOpacity":0.38,"mirageBlur":28,"mirageSaturation":165,"mirageBrightness":88,"mirageFallbackOpacity":0.64,"micaInactive":{"light":"#f1f1f3","dark":"#202126"}},"motion":{"press":120,"state":213.33,"spatial":293.33,"exit":160,"easing":{"enter":"cubic-bezier(0.22, 0.65, 0.22, 1)","settle":"cubic-bezier(0.2, 0, 0.2, 1)","exit":"cubic-bezier(0.4, 0, 0.6, 1)"},"distance":{"panel":24,"floating":30,"content":0,"exit":20,"depth":50,"feather":6},"material":1000,"liquid":1400,"flow":1200,"departure":650,"maxDuration":5000,"maxTravel":50,"travelPolicy":{"ordinaryRange":[5,30],"compactGuideline":50,"extended":"Documented large compositions and measured layout may exceed 50px.","stationaryMaterials":["haze","stone"]}},"typography":{"readingSize":16,"readingLeading":25.6,"family":"Manrope","scale":{"display":{"ratio":2,"leading":1.1,"tracking":"-0.055em"},"title":{"ratio":1.5,"leading":1.2,"tracking":"-0.04em"},"heading":{"ratio":1.25,"leading":1.3,"tracking":"-0.03em"},"subheading":{"ratio":1.0625,"leading":1.45,"tracking":"-0.01em"},"body":{"ratio":1,"leading":1.6,"tracking":"0"},"caption":{"ratio":0.8125,"leading":1.45,"tracking":"0"}}},"component":{"action":{"radius":999,"minTarget":48,"paddingBlock":15,"paddingInline":24,"gap":9,"disabledOpacity":0.55},"scrollbar":{"width":10,"thumbMinLength":32,"inset":2},"scrollArea":{"fadeDepth":24},"layout":{"containerMax":1536,"readingMax":920,"gutterCompact":18,"gutterBase":26,"gutterWide":44,"minCellWidth":240,"sidebarWidth":280},"icon":{"size":20,"action":24},"choice":{"boxSize":26,"boxRadius":9},"switch":{"trackWidth":44,"trackHeight":28},"slider":{"trackHeight":8,"thumbSize":26},"chip":{"height":32},"overlayArrow":{"size":14,"radius":3},"overlay":{"maxWidth":480,"tooltipMaxWidth":352,"tooltipRadius":18},"field":{"wellInset":7},"card":{"radius":28},"focus":{"coreWidth":2,"coreOffset":3},"indicator":{"size":20,"fieldSize":24,"lineWidth":3},"anchor":{"underlineOffset":4},"tree":{"indentStep":20},"haze":{"inset":8},"chart":{"seriesCount":6,"seriesLightness":{"light":0.55,"dark":0.72},"seriesChroma":0.18,"seriesHueOffset":30,"seriesContrast":3,"stroke":2,"hairline":1,"pointMin":6,"pointMax":18,"barRadius":4,"cellGap":2,"ringThickness":0.32,"fillOpacity":0.25,"linkOpacity":0.45,"intensitySteps":5,"gaugeSweep":270},"progress":{"ringStroke":8}},"spacing":{"2xs":4,"xs":8,"sm":12,"md":16,"lg":24,"xl":32,"2xl":48},"schemaNote":"Generated from core/tokens/crystal.tokens.json (W3C DTCG). Edit the DTCG source, not this file.","materials":{"plastic":{"name":"Plastic","role":"Opaque contextual foundation","inspiration":"Microsoft Mica","primitive":".cr-plastic"},"frost":{"name":"Frost","role":"Diffused intermediate surface","inspiration":"Microsoft Acrylic","primitive":".cr-frost"},"resin":{"name":"Resin","role":"Floating optical control surface","inspiration":"Apple Liquid Glass","primitive":".cr-resin"},"haze":{"name":"Haze","role":"Soft content fill","inspiration":"Crystal solid content recipe","primitive":".cr-haze"},"stone":{"name":"Stone","role":"Protected label backing","inspiration":"Crystal protected-label veil","primitive":".cr-stone"},"mirage":{"name":"Mirage","role":"Chromatic diffusion and dark modal separation","inspiration":"Modal smoke/scrim pattern","primitive":".cr-mirage and dialog::backdrop"}}};
|
package/docs/accessibility.md
CHANGED
|
@@ -80,7 +80,7 @@ and the defect that led to the rule, are in
|
|
|
80
80
|
|
|
81
81
|
## Reduced motion
|
|
82
82
|
|
|
83
|
-
`prefers-reduced-motion: reduce` is honoured by every one of the
|
|
83
|
+
`prefers-reduced-motion: reduce` is honoured by every one of the 60 motion recipes. Each
|
|
84
84
|
recipe declares its own `reduced` behaviour, and motion is not switched off globally,
|
|
85
85
|
because "no animation" and "no *movement*" are different requirements.
|
|
86
86
|
|