@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/tokens/catalogue.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$description": "Crystal component catalogue, combined. Generated from core/tokens/catalogue/.",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"surfaces": [
|
|
5
5
|
{
|
|
6
6
|
"id": "plastic",
|
|
@@ -116,13 +116,19 @@
|
|
|
116
116
|
"Stone"
|
|
117
117
|
],
|
|
118
118
|
"class": ".cr-stone",
|
|
119
|
-
"use": "A label over an unknown or moving backdrop: a caption on media, a status bar over a scene. 55% light / 60% dark fill, feathered like Haze, crisp text. `.cr-media-caption` is a caption cue rendered by the library: the Stone backing on a box above the transport, never under it. `::cue` on a `.cr-media` video is the flat fill for the browser's own renderer.",
|
|
119
|
+
"use": "A label over an unknown or moving backdrop: a caption on media, a status bar over a scene. 55% light / 60% dark fill, feathered like Haze, crisp text. `.cr-media-caption` is a caption cue rendered by the library: the Stone backing on a box above the transport, never under it. `.large`, `.larger` and `.solid` are the reader's caption style: a cue 1.25 or 1.5 times the size, and a cue on the opaque surface. `::cue` on a `.cr-media` video is the flat fill for the browser's own renderer, which follows the reader's system caption settings.",
|
|
120
120
|
"also": [
|
|
121
|
-
".cr-media-caption"
|
|
121
|
+
".cr-media-caption",
|
|
122
|
+
".cr-media-caption.large",
|
|
123
|
+
".cr-media-caption.larger",
|
|
124
|
+
".cr-media-caption.solid"
|
|
122
125
|
],
|
|
123
126
|
"partial": {
|
|
124
127
|
".cr-stone": "Stone backs a label and takes the radius of the element it backs.",
|
|
125
|
-
".cr-media-caption": "A part: the outer element positions the cue, and its inner box (`.cr-media-caption > *`) carries the Stone backing and the radius."
|
|
128
|
+
".cr-media-caption": "A part: the outer element positions the cue, and its inner box (`.cr-media-caption > *`) carries the Stone backing and the radius.",
|
|
129
|
+
".cr-media-caption.large": "The reader's caption style, larger: `--cr-caption-scale` multiplies the cue's 15px to 28px range on its inner box. Worn with the cue's own recipe.",
|
|
130
|
+
".cr-media-caption.larger": "The reader's caption style, largest: `--cr-caption-scale` multiplies the cue's 15px to 28px range on its inner box. Worn with the cue's own recipe.",
|
|
131
|
+
".cr-media-caption.solid": "The reader's caption style, solid: the inner box's backing is the opaque surface with no feather, the backing the cue's fallbacks draw. Worn with the cue's own recipe."
|
|
126
132
|
}
|
|
127
133
|
},
|
|
128
134
|
{
|
|
@@ -160,7 +166,7 @@
|
|
|
160
166
|
"Haze"
|
|
161
167
|
],
|
|
162
168
|
"class": ".cr-indicator",
|
|
163
|
-
"use": "A 20px informational circle painting Haze on an isolated layer, or the
|
|
169
|
+
"use": "A 20px informational circle painting Haze on an isolated layer, or, as `.cr-indicator.pill`, the primary fill that travels behind the selected segment of a strip (D-37): tabs, a segmented control, the dock, bottom navigation or a toggle button group. The circle is Haze rather than Resin, because it sits on a surface that is often already translucent. Neither is ever the only mark of a selection: the selected segment keeps its label weight, and the circle never marks one at all."
|
|
164
170
|
},
|
|
165
171
|
{
|
|
166
172
|
"id": "status",
|
|
@@ -690,7 +696,7 @@
|
|
|
690
696
|
"hover",
|
|
691
697
|
"focus"
|
|
692
698
|
],
|
|
693
|
-
"material": "Resin plane, Stone label backing, primary
|
|
699
|
+
"material": "Resin plane, Stone label backing, the primary pill behind the selected destination",
|
|
694
700
|
"surface": [
|
|
695
701
|
"dock"
|
|
696
702
|
],
|
|
@@ -699,7 +705,7 @@
|
|
|
699
705
|
"crystal": "The single shared plane, label weight for the current entry, elevation",
|
|
700
706
|
"product": "Destinations and routing",
|
|
701
707
|
"motion": [
|
|
702
|
-
"selection"
|
|
708
|
+
"selection-travel"
|
|
703
709
|
],
|
|
704
710
|
"parity": [
|
|
705
711
|
"mui:BottomNavigation",
|
|
@@ -745,7 +751,7 @@
|
|
|
745
751
|
"selected",
|
|
746
752
|
"disabled"
|
|
747
753
|
],
|
|
748
|
-
"material": "Resin strip, primary
|
|
754
|
+
"material": "Resin strip, the primary pill behind the selected tab",
|
|
749
755
|
"surface": [
|
|
750
756
|
"dock"
|
|
751
757
|
],
|
|
@@ -754,7 +760,8 @@
|
|
|
754
760
|
"crystal": "Strip material, label weight for the selected tab, focus ring",
|
|
755
761
|
"product": "The roving tabindex implementation and panel content",
|
|
756
762
|
"motion": [
|
|
757
|
-
"tab-in"
|
|
763
|
+
"tab-in",
|
|
764
|
+
"selection-travel"
|
|
758
765
|
],
|
|
759
766
|
"parity": [
|
|
760
767
|
"mantine:Tabs",
|
|
@@ -945,10 +952,10 @@
|
|
|
945
952
|
],
|
|
946
953
|
"geometry": "Pill; targets at least 44px; respects the safe area.",
|
|
947
954
|
"semantics": "role=\"navigation\"; the current destination carries aria-current=\"page\".",
|
|
948
|
-
"crystal": "Material, geometry, selection by label weight, safe-area inset",
|
|
955
|
+
"crystal": "Material, geometry, selection by label weight with the pill behind it, safe-area inset",
|
|
949
956
|
"product": "Destinations and routing",
|
|
950
957
|
"motion": [
|
|
951
|
-
"selection"
|
|
958
|
+
"selection-travel"
|
|
952
959
|
],
|
|
953
960
|
"parity": [
|
|
954
961
|
"mui:BottomNavigation"
|
|
@@ -1143,10 +1150,11 @@
|
|
|
1143
1150
|
],
|
|
1144
1151
|
"geometry": "Pill outer geometry; interior corners square against neighbours",
|
|
1145
1152
|
"semantics": "group role with an accessible name when the buttons are related",
|
|
1146
|
-
"crystal": "The shared plane and interior separation",
|
|
1153
|
+
"crystal": "The shared plane and interior separation; as a toggle set, the pill behind the pressed button",
|
|
1147
1154
|
"product": "Which actions are grouped",
|
|
1148
1155
|
"motion": [
|
|
1149
|
-
"press"
|
|
1156
|
+
"press",
|
|
1157
|
+
"selection-travel"
|
|
1150
1158
|
],
|
|
1151
1159
|
"parity": [
|
|
1152
1160
|
"mantine:Button.Group",
|
|
@@ -1788,7 +1796,7 @@
|
|
|
1788
1796
|
"selected",
|
|
1789
1797
|
"disabled"
|
|
1790
1798
|
],
|
|
1791
|
-
"material": "One Resin plane; primary
|
|
1799
|
+
"material": "One Resin plane; the primary pill behind the selected segment",
|
|
1792
1800
|
"surface": [
|
|
1793
1801
|
"dock"
|
|
1794
1802
|
],
|
|
@@ -1797,7 +1805,7 @@
|
|
|
1797
1805
|
"crystal": "Shared plane, label weight for the selected segment, focus ring",
|
|
1798
1806
|
"product": "Options and change handling",
|
|
1799
1807
|
"motion": [
|
|
1800
|
-
"selection"
|
|
1808
|
+
"selection-travel"
|
|
1801
1809
|
],
|
|
1802
1810
|
"parity": [
|
|
1803
1811
|
"mantine:SegmentedControl",
|
|
@@ -2653,7 +2661,7 @@
|
|
|
2653
2661
|
],
|
|
2654
2662
|
"material": "Resin thumb over the gradient field",
|
|
2655
2663
|
"surface": [
|
|
2656
|
-
"
|
|
2664
|
+
"resin"
|
|
2657
2665
|
],
|
|
2658
2666
|
"geometry": "Thumb reaches 44px including its hit area.",
|
|
2659
2667
|
"semantics": "Two linked sliders; each axis announces its own value and responds to arrow keys.",
|
|
@@ -2676,7 +2684,7 @@
|
|
|
2676
2684
|
],
|
|
2677
2685
|
"material": "Resin thumb on a gradient track",
|
|
2678
2686
|
"surface": [
|
|
2679
|
-
"
|
|
2687
|
+
"resin"
|
|
2680
2688
|
],
|
|
2681
2689
|
"geometry": "Matches the slider contract.",
|
|
2682
2690
|
"semantics": "role=\"slider\" with the channel named and the value in that channel's units.",
|
|
@@ -2699,7 +2707,7 @@
|
|
|
2699
2707
|
],
|
|
2700
2708
|
"material": "Resin thumb on the hue ring",
|
|
2701
2709
|
"surface": [
|
|
2702
|
-
"
|
|
2710
|
+
"resin"
|
|
2703
2711
|
],
|
|
2704
2712
|
"geometry": "Ring thickness is a declared proportion of the radius.",
|
|
2705
2713
|
"semantics": "role=\"slider\" in degrees, wrapping at 360.",
|
|
@@ -4079,7 +4087,8 @@
|
|
|
4079
4087
|
],
|
|
4080
4088
|
"material": "Frost panel with Haze reading fill (R15e)",
|
|
4081
4089
|
"surface": [
|
|
4082
|
-
"frost"
|
|
4090
|
+
"frost",
|
|
4091
|
+
"haze"
|
|
4083
4092
|
],
|
|
4084
4093
|
"geometry": "Content radius; anchored to the trigger",
|
|
4085
4094
|
"semantics": "Focus moves into the popover, returns to the trigger on dismiss, and Escape cancels",
|
|
@@ -4275,7 +4284,8 @@
|
|
|
4275
4284
|
],
|
|
4276
4285
|
"material": "Frost panel with Haze rows (R15e)",
|
|
4277
4286
|
"surface": [
|
|
4278
|
-
"frost"
|
|
4287
|
+
"frost",
|
|
4288
|
+
"haze"
|
|
4279
4289
|
],
|
|
4280
4290
|
"geometry": "Content radius; every row reserves leading room for a check mark, so ticking one does not shift its label",
|
|
4281
4291
|
"semantics": "role=menu with full keyboard navigation, type-ahead and Escape; checkable items use aria-checked",
|
|
@@ -4328,7 +4338,8 @@
|
|
|
4328
4338
|
],
|
|
4329
4339
|
"material": "Frost panel with Haze reading fill (R15e)",
|
|
4330
4340
|
"surface": [
|
|
4331
|
-
"frost"
|
|
4341
|
+
"frost",
|
|
4342
|
+
"haze"
|
|
4332
4343
|
],
|
|
4333
4344
|
"geometry": "Content radius; flips and shifts to stay in view",
|
|
4334
4345
|
"semantics": "The trigger carries aria-expanded and aria-controls; focus moves in for interactive content",
|
|
@@ -5956,7 +5967,7 @@
|
|
|
5956
5967
|
{
|
|
5957
5968
|
"id": "video-player",
|
|
5958
5969
|
"name": "Video player",
|
|
5959
|
-
"anatomy": "A media stage at a set aspect ratio holding the video, a caption cue above the transport, and the transport inset from the stage: play, skip, the scrubber with its two time readouts, mute and volume, then a settings menu (playback speed, subtitles and captions, audio track, quality), picture in picture and full screen.",
|
|
5970
|
+
"anatomy": "A media stage at a set aspect ratio holding the video, a caption cue above the transport, and the transport inset from the stage: play, skip, the scrubber with its two time readouts, mute and volume, then a settings menu (playback speed, subtitles and captions, caption style, audio track, quality), picture in picture and full screen.",
|
|
5960
5971
|
"states": [
|
|
5961
5972
|
"idle",
|
|
5962
5973
|
"playing",
|
|
@@ -5977,7 +5988,7 @@
|
|
|
5977
5988
|
"frost"
|
|
5978
5989
|
],
|
|
5979
5990
|
"geometry": "The stage keeps the content radius and the aspect ratio the product sets (16:9, 4:3, 1:1, 9:16 or the media's own). The transport is a pill inset 12px from the stage, or the safe area in full screen, with 4px block padding around its controls (58px with its rim); every control reaches the 48px action target. Caption cues sit above the transport, never under it. Below 420px the transport wraps its trailing controls onto a second row.",
|
|
5980
|
-
"semantics": "Native video element underneath. Controls are real buttons, captions are supported and their state is announced, and keyboard shortcuts do not trap focus. Speed, subtitle, audio-track and quality choices are menus of radio items (menuitemradio with aria-checked); the selected item is shown by label weight, never a check mark, and each change is announced in words. A choice the engine cannot make (an audio track list where the browser exposes none, picture in picture where it is unsupported) is not offered.",
|
|
5991
|
+
"semantics": "Native video element underneath. Controls are real buttons, captions are supported and their state is announced, and keyboard shortcuts do not trap focus. The caption style (a larger size, 1.25 or 1.5 times, and a solid backing on the opaque surface) is the reader's: it is kept for every player the reader opens and drawn with `.cr-media-caption`'s `.large`, `.larger` and `.solid`. Speed, subtitle, caption-style, audio-track and quality choices are menus of radio items (menuitemradio with aria-checked); the selected item is shown by label weight, never a check mark, and each change is announced in words. A choice the engine cannot make (an audio track list where the browser exposes none, picture in picture where it is unsupported) is not offered.",
|
|
5981
5992
|
"crystal": "Stage, transport and caption materials, transport geometry and insets, the settings menu, the motion of showing and hiding controls",
|
|
5982
5993
|
"product": "Sources, caption and audio tracks, quality renditions and their switching (adaptive streaming), DRM, analytics",
|
|
5983
5994
|
"motion": [
|
package/tokens/crystal.json
CHANGED
|
@@ -584,7 +584,7 @@
|
|
|
584
584
|
},
|
|
585
585
|
"typography": {
|
|
586
586
|
"readingSize": 16,
|
|
587
|
-
"readingLeading":
|
|
587
|
+
"readingLeading": 25.6,
|
|
588
588
|
"family": "Manrope",
|
|
589
589
|
"scale": {
|
|
590
590
|
"display": {
|
|
@@ -609,7 +609,7 @@
|
|
|
609
609
|
},
|
|
610
610
|
"body": {
|
|
611
611
|
"ratio": 1,
|
|
612
|
-
"leading": 1.
|
|
612
|
+
"leading": 1.6,
|
|
613
613
|
"tracking": "0"
|
|
614
614
|
},
|
|
615
615
|
"caption": {
|
|
@@ -1457,7 +1457,7 @@
|
|
|
1457
1457
|
},
|
|
1458
1458
|
"readingLeading": {
|
|
1459
1459
|
"$type": "dimension",
|
|
1460
|
-
"$value": "
|
|
1460
|
+
"$value": "25.6px"
|
|
1461
1461
|
},
|
|
1462
1462
|
"scale": {
|
|
1463
1463
|
"display": {
|
|
@@ -1536,7 +1536,7 @@
|
|
|
1536
1536
|
},
|
|
1537
1537
|
"leading": {
|
|
1538
1538
|
"$type": "number",
|
|
1539
|
-
"$value": 1.
|
|
1539
|
+
"$value": 1.6,
|
|
1540
1540
|
"$description": "body: line height as a multiple of its own size"
|
|
1541
1541
|
},
|
|
1542
1542
|
"tracking": {
|
|
@@ -144,6 +144,53 @@
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
|
+
{
|
|
148
|
+
"id": "selection-travel",
|
|
149
|
+
"category": "Controls",
|
|
150
|
+
"label": "Selection travel",
|
|
151
|
+
"duration": 460,
|
|
152
|
+
"engine": "Motion",
|
|
153
|
+
"keyframes": [
|
|
154
|
+
{
|
|
155
|
+
"transform": "translateX(-96px)",
|
|
156
|
+
"width": "88px",
|
|
157
|
+
"offset": 0
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"transform": "translateX(0px)",
|
|
161
|
+
"width": "112px",
|
|
162
|
+
"offset": 1
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"measured": "The keyframes are a sample: the pill leaving an 88px segment for the 112px segment beside it. A player measures both segments when the choice changes and substitutes the departing segment’s offset from the arriving one, and its size, for the first keyframe; the last keyframe is always the arriving segment where it stands. CrystalMotion.travel() does this on the web.",
|
|
166
|
+
"overshoot": "never",
|
|
167
|
+
"travelException": "The pill crosses its own strip from the segment that was chosen to the one that is; the strip is its bound, and the distance is wherever the two segments stand.",
|
|
168
|
+
"use": "The one .cr-indicator.pill behind the selected segment of tabs, a segmented control, the dock, bottom navigation or a toggle button group, moving to the new segment when the choice changes. Set the selected semantics first; selection stays label weight, so the pill is never the only sign of it. Critically damped: a pill that overshoots stands for a moment on a segment nobody chose.",
|
|
169
|
+
"reduced": "The pill is placed behind the new segment at once; nothing travels.",
|
|
170
|
+
"material": "resin",
|
|
171
|
+
"signature": "meniscus",
|
|
172
|
+
"spring": {
|
|
173
|
+
"stiffness": 773.7214,
|
|
174
|
+
"damping": 55.6317,
|
|
175
|
+
"mass": 1,
|
|
176
|
+
"dampingRatio": 1,
|
|
177
|
+
"platform": {
|
|
178
|
+
"swiftUI": {
|
|
179
|
+
"response": 0.2259,
|
|
180
|
+
"dampingFraction": 1
|
|
181
|
+
},
|
|
182
|
+
"compose": {
|
|
183
|
+
"dampingRatio": 1,
|
|
184
|
+
"stiffness": 773.7214
|
|
185
|
+
},
|
|
186
|
+
"web": {
|
|
187
|
+
"stiffness": 773.7214,
|
|
188
|
+
"damping": 55.6317,
|
|
189
|
+
"mass": 1
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
147
194
|
{
|
|
148
195
|
"id": "switch-on",
|
|
149
196
|
"category": "Controls",
|
|
@@ -1254,7 +1254,7 @@
|
|
|
1254
1254
|
"color": "var(--cr-text)",
|
|
1255
1255
|
"font-size": "var(--cr-text-body-size)",
|
|
1256
1256
|
"line-height": "var(--cr-text-body-leading)",
|
|
1257
|
-
"min-height": "calc(var(--cr-text-body-leading) * 4)",
|
|
1257
|
+
"min-height": "calc(var(--cr-text-body-leading) * 1em * 4 + var(--cr-space) * 2)",
|
|
1258
1258
|
"outline": "none",
|
|
1259
1259
|
"overflow-wrap": "anywhere"
|
|
1260
1260
|
},
|
|
@@ -1681,7 +1681,13 @@
|
|
|
1681
1681
|
"forcedColors": null,
|
|
1682
1682
|
"noBackdropFilter": null
|
|
1683
1683
|
},
|
|
1684
|
-
"conditions": {
|
|
1684
|
+
"conditions": {
|
|
1685
|
+
"@container (max-width:420px)": {
|
|
1686
|
+
"declarations": {
|
|
1687
|
+
"--cr-media-transport": "110px"
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1685
1691
|
"shadowed": [],
|
|
1686
1692
|
"diagnostics": [],
|
|
1687
1693
|
"missing": [
|
|
@@ -1689,6 +1695,142 @@
|
|
|
1689
1695
|
"radius"
|
|
1690
1696
|
],
|
|
1691
1697
|
"why": "A part: the outer element positions the cue, and its inner box (`.cr-media-caption > *`) carries the Stone backing and the radius."
|
|
1698
|
+
},
|
|
1699
|
+
".cr-media-caption.large": {
|
|
1700
|
+
"selector": ".cr-media-caption.large",
|
|
1701
|
+
"fill": null,
|
|
1702
|
+
"blur": null,
|
|
1703
|
+
"saturation": null,
|
|
1704
|
+
"rim": null,
|
|
1705
|
+
"shadow": null,
|
|
1706
|
+
"radius": null,
|
|
1707
|
+
"padding": null,
|
|
1708
|
+
"haze": null,
|
|
1709
|
+
"feather": null,
|
|
1710
|
+
"extras": {
|
|
1711
|
+
"--cr-caption-scale": "1.25",
|
|
1712
|
+
"display": "flex",
|
|
1713
|
+
"inset-block-end": "calc(var(--cr-media-transport, 58px) + var(--cr-spacing-sm) * 2)",
|
|
1714
|
+
"inset-inline": "var(--cr-spacing-lg)",
|
|
1715
|
+
"justify-content": "center",
|
|
1716
|
+
"line-height": "1.35",
|
|
1717
|
+
"pointer-events": "none",
|
|
1718
|
+
"position": "absolute",
|
|
1719
|
+
"text-align": "center",
|
|
1720
|
+
"z-index": "1"
|
|
1721
|
+
},
|
|
1722
|
+
"layers": {},
|
|
1723
|
+
"fallbacks": {
|
|
1724
|
+
"opaque": null,
|
|
1725
|
+
"reducedTransparency": null,
|
|
1726
|
+
"forcedColors": null,
|
|
1727
|
+
"noBackdropFilter": null
|
|
1728
|
+
},
|
|
1729
|
+
"conditions": {
|
|
1730
|
+
"@container (max-width:420px)": {
|
|
1731
|
+
"declarations": {
|
|
1732
|
+
"--cr-media-transport": "110px"
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"shadowed": [],
|
|
1737
|
+
"diagnostics": [],
|
|
1738
|
+
"missing": [
|
|
1739
|
+
"haze",
|
|
1740
|
+
"radius"
|
|
1741
|
+
],
|
|
1742
|
+
"why": "The reader's caption style, larger: `--cr-caption-scale` multiplies the cue's 15px to 28px range on its inner box. Worn with the cue's own recipe."
|
|
1743
|
+
},
|
|
1744
|
+
".cr-media-caption.larger": {
|
|
1745
|
+
"selector": ".cr-media-caption.larger",
|
|
1746
|
+
"fill": null,
|
|
1747
|
+
"blur": null,
|
|
1748
|
+
"saturation": null,
|
|
1749
|
+
"rim": null,
|
|
1750
|
+
"shadow": null,
|
|
1751
|
+
"radius": null,
|
|
1752
|
+
"padding": null,
|
|
1753
|
+
"haze": null,
|
|
1754
|
+
"feather": null,
|
|
1755
|
+
"extras": {
|
|
1756
|
+
"--cr-caption-scale": "1.5",
|
|
1757
|
+
"display": "flex",
|
|
1758
|
+
"inset-block-end": "calc(var(--cr-media-transport, 58px) + var(--cr-spacing-sm) * 2)",
|
|
1759
|
+
"inset-inline": "var(--cr-spacing-lg)",
|
|
1760
|
+
"justify-content": "center",
|
|
1761
|
+
"line-height": "1.35",
|
|
1762
|
+
"pointer-events": "none",
|
|
1763
|
+
"position": "absolute",
|
|
1764
|
+
"text-align": "center",
|
|
1765
|
+
"z-index": "1"
|
|
1766
|
+
},
|
|
1767
|
+
"layers": {},
|
|
1768
|
+
"fallbacks": {
|
|
1769
|
+
"opaque": null,
|
|
1770
|
+
"reducedTransparency": null,
|
|
1771
|
+
"forcedColors": null,
|
|
1772
|
+
"noBackdropFilter": null
|
|
1773
|
+
},
|
|
1774
|
+
"conditions": {
|
|
1775
|
+
"@container (max-width:420px)": {
|
|
1776
|
+
"declarations": {
|
|
1777
|
+
"--cr-media-transport": "110px"
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
"shadowed": [],
|
|
1782
|
+
"diagnostics": [],
|
|
1783
|
+
"missing": [
|
|
1784
|
+
"haze",
|
|
1785
|
+
"radius"
|
|
1786
|
+
],
|
|
1787
|
+
"why": "The reader's caption style, largest: `--cr-caption-scale` multiplies the cue's 15px to 28px range on its inner box. Worn with the cue's own recipe."
|
|
1788
|
+
},
|
|
1789
|
+
".cr-media-caption.solid": {
|
|
1790
|
+
"selector": ".cr-media-caption.solid",
|
|
1791
|
+
"fill": null,
|
|
1792
|
+
"blur": null,
|
|
1793
|
+
"saturation": null,
|
|
1794
|
+
"rim": null,
|
|
1795
|
+
"shadow": null,
|
|
1796
|
+
"radius": null,
|
|
1797
|
+
"padding": null,
|
|
1798
|
+
"haze": null,
|
|
1799
|
+
"feather": null,
|
|
1800
|
+
"extras": {
|
|
1801
|
+
"--cr-caption-backing": "var(--cr-surface)",
|
|
1802
|
+
"--cr-caption-feather": "0px",
|
|
1803
|
+
"display": "flex",
|
|
1804
|
+
"inset-block-end": "calc(var(--cr-media-transport, 58px) + var(--cr-spacing-sm) * 2)",
|
|
1805
|
+
"inset-inline": "var(--cr-spacing-lg)",
|
|
1806
|
+
"justify-content": "center",
|
|
1807
|
+
"line-height": "1.35",
|
|
1808
|
+
"pointer-events": "none",
|
|
1809
|
+
"position": "absolute",
|
|
1810
|
+
"text-align": "center",
|
|
1811
|
+
"z-index": "1"
|
|
1812
|
+
},
|
|
1813
|
+
"layers": {},
|
|
1814
|
+
"fallbacks": {
|
|
1815
|
+
"opaque": null,
|
|
1816
|
+
"reducedTransparency": null,
|
|
1817
|
+
"forcedColors": null,
|
|
1818
|
+
"noBackdropFilter": null
|
|
1819
|
+
},
|
|
1820
|
+
"conditions": {
|
|
1821
|
+
"@container (max-width:420px)": {
|
|
1822
|
+
"declarations": {
|
|
1823
|
+
"--cr-media-transport": "110px"
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
"shadowed": [],
|
|
1828
|
+
"diagnostics": [],
|
|
1829
|
+
"missing": [
|
|
1830
|
+
"haze",
|
|
1831
|
+
"radius"
|
|
1832
|
+
],
|
|
1833
|
+
"why": "The reader's caption style, solid: the inner box's backing is the opaque surface with no feather, the backing the cue's fallbacks draw. Worn with the cue's own recipe."
|
|
1692
1834
|
}
|
|
1693
1835
|
},
|
|
1694
1836
|
"why": "Stone backs a label and takes the radius of the element it backs.",
|
package/tokens/surfaces.json
CHANGED
|
@@ -80,11 +80,14 @@
|
|
|
80
80
|
"name": "Stone label backing",
|
|
81
81
|
"materials": ["Stone"],
|
|
82
82
|
"class": ".cr-stone",
|
|
83
|
-
"use": "A label over an unknown or moving backdrop: a caption on media, a status bar over a scene. 55% light / 60% dark fill, feathered like Haze, crisp text. `.cr-media-caption` is a caption cue rendered by the library: the Stone backing on a box above the transport, never under it. `::cue` on a `.cr-media` video is the flat fill for the browser's own renderer.",
|
|
84
|
-
"also": [".cr-media-caption"],
|
|
83
|
+
"use": "A label over an unknown or moving backdrop: a caption on media, a status bar over a scene. 55% light / 60% dark fill, feathered like Haze, crisp text. `.cr-media-caption` is a caption cue rendered by the library: the Stone backing on a box above the transport, never under it. `.large`, `.larger` and `.solid` are the reader's caption style: a cue 1.25 or 1.5 times the size, and a cue on the opaque surface. `::cue` on a `.cr-media` video is the flat fill for the browser's own renderer, which follows the reader's system caption settings.",
|
|
84
|
+
"also": [".cr-media-caption", ".cr-media-caption.large", ".cr-media-caption.larger", ".cr-media-caption.solid"],
|
|
85
85
|
"partial": {
|
|
86
86
|
".cr-stone": "Stone backs a label and takes the radius of the element it backs.",
|
|
87
|
-
".cr-media-caption": "A part: the outer element positions the cue, and its inner box (`.cr-media-caption > *`) carries the Stone backing and the radius."
|
|
87
|
+
".cr-media-caption": "A part: the outer element positions the cue, and its inner box (`.cr-media-caption > *`) carries the Stone backing and the radius.",
|
|
88
|
+
".cr-media-caption.large": "The reader's caption style, larger: `--cr-caption-scale` multiplies the cue's 15px to 28px range on its inner box. Worn with the cue's own recipe.",
|
|
89
|
+
".cr-media-caption.larger": "The reader's caption style, largest: `--cr-caption-scale` multiplies the cue's 15px to 28px range on its inner box. Worn with the cue's own recipe.",
|
|
90
|
+
".cr-media-caption.solid": "The reader's caption style, solid: the inner box's backing is the opaque surface with no feather, the backing the cue's fallbacks draw. Worn with the cue's own recipe."
|
|
88
91
|
}
|
|
89
92
|
},
|
|
90
93
|
{
|
|
@@ -111,7 +114,7 @@
|
|
|
111
114
|
"name": "Indicator",
|
|
112
115
|
"materials": ["Haze"],
|
|
113
116
|
"class": ".cr-indicator",
|
|
114
|
-
"use": "A 20px informational circle painting Haze on an isolated layer, or the
|
|
117
|
+
"use": "A 20px informational circle painting Haze on an isolated layer, or, as `.cr-indicator.pill`, the primary fill that travels behind the selected segment of a strip (D-37): tabs, a segmented control, the dock, bottom navigation or a toggle button group. The circle is Haze rather than Resin, because it sits on a surface that is often already translucent. Neither is ever the only mark of a selection: the selected segment keeps its label weight, and the circle never marks one at all."
|
|
115
118
|
},
|
|
116
119
|
{
|
|
117
120
|
"id": "status",
|