@swell/swell-ui 0.0.0-stage → 0.1.1

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 (225) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +165 -2
  3. package/custom-elements.json +8274 -0
  4. package/dist/chunks/badge-Dt6q8Cqa.js +11 -0
  5. package/dist/chunks/button-C7nCiu-t.js +123 -0
  6. package/dist/chunks/card-CvSQEug8.js +10 -0
  7. package/dist/chunks/checkbox-BRI_A1TP.js +99 -0
  8. package/dist/chunks/chip-BtnufSMG.js +48 -0
  9. package/dist/chunks/config-C-FYxOaJ.js +588 -0
  10. package/dist/chunks/define-BlQTa1g4.js +19 -0
  11. package/dist/chunks/description-BHfQ8meK.js +19 -0
  12. package/dist/chunks/disclosure-CET8-H6f.js +56 -0
  13. package/dist/chunks/divider-BfkO0c1j.js +27 -0
  14. package/dist/chunks/element-B4-_7TLZ.js +138 -0
  15. package/dist/chunks/input-Uun-ls2_.js +53 -0
  16. package/dist/chunks/link-8qHFEKQE.js +53 -0
  17. package/dist/chunks/link-D4NC86oc.js +24 -0
  18. package/dist/chunks/lookup-5icr_T6o.js +205 -0
  19. package/dist/chunks/lookup-list-Bw6OJoDS.js +19 -0
  20. package/dist/chunks/lookup-option-Mn3k8W2M.js +26 -0
  21. package/dist/chunks/popover-D3Ob6slA.js +92 -0
  22. package/dist/chunks/popup-Dbh2fchP.js +21 -0
  23. package/dist/chunks/quantity-h3wqn8tC.js +140 -0
  24. package/dist/chunks/radio-BhFDL3pO.js +192 -0
  25. package/dist/chunks/radio-option-hT29S8Zl.js +88 -0
  26. package/dist/chunks/select-DS1n_htj.js +331 -0
  27. package/dist/chunks/select-option-DoM9GAe0.js +66 -0
  28. package/dist/chunks/skeleton-DfPjhls9.js +13 -0
  29. package/dist/chunks/status-B23JZ5RQ.js +71 -0
  30. package/dist/chunks/tab-BpjFUbFO.js +107 -0
  31. package/dist/chunks/tabs-aWKq1Iaz.js +122 -0
  32. package/dist/chunks/text-ZWPy-iB3.js +26 -0
  33. package/dist/chunks/text-field-BB_MRt5h.js +158 -0
  34. package/dist/chunks/textarea-L6_OJ2IN.js +18 -0
  35. package/dist/chunks/thumbnail-CLe9AsFg.js +21 -0
  36. package/dist/chunks/toggle-C7-oPgWR.js +22 -0
  37. package/dist/chunks/ui-HcyMKwzs.js +11 -0
  38. package/dist/editors/vscode.css-custom-data.json +824 -0
  39. package/dist/editors/vscode.html-custom-data.json +1156 -0
  40. package/dist/editors/web-types.json +1706 -0
  41. package/dist/elements/badge.d.ts +1 -0
  42. package/dist/elements/badge.js +1 -0
  43. package/dist/elements/button.d.ts +1 -0
  44. package/dist/elements/button.js +1 -0
  45. package/dist/elements/card.d.ts +1 -0
  46. package/dist/elements/card.js +1 -0
  47. package/dist/elements/checkbox.d.ts +1 -0
  48. package/dist/elements/checkbox.js +1 -0
  49. package/dist/elements/chip.d.ts +1 -0
  50. package/dist/elements/chip.js +1 -0
  51. package/dist/elements/disclosure.d.ts +1 -0
  52. package/dist/elements/disclosure.js +1 -0
  53. package/dist/elements/divider.d.ts +1 -0
  54. package/dist/elements/divider.js +1 -0
  55. package/dist/elements/input.d.ts +1 -0
  56. package/dist/elements/input.js +1 -0
  57. package/dist/elements/link.d.ts +1 -0
  58. package/dist/elements/link.js +1 -0
  59. package/dist/elements/lookup-list.d.ts +1 -0
  60. package/dist/elements/lookup-list.js +1 -0
  61. package/dist/elements/lookup-option.d.ts +1 -0
  62. package/dist/elements/lookup-option.js +1 -0
  63. package/dist/elements/lookup.d.ts +1 -0
  64. package/dist/elements/lookup.js +1 -0
  65. package/dist/elements/popover.d.ts +1 -0
  66. package/dist/elements/popover.js +1 -0
  67. package/dist/elements/quantity.d.ts +1 -0
  68. package/dist/elements/quantity.js +1 -0
  69. package/dist/elements/radio-option.d.ts +1 -0
  70. package/dist/elements/radio-option.js +1 -0
  71. package/dist/elements/radio.d.ts +1 -0
  72. package/dist/elements/radio.js +1 -0
  73. package/dist/elements/select-option.d.ts +1 -0
  74. package/dist/elements/select-option.js +1 -0
  75. package/dist/elements/select.d.ts +1 -0
  76. package/dist/elements/select.js +1 -0
  77. package/dist/elements/skeleton.d.ts +1 -0
  78. package/dist/elements/skeleton.js +1 -0
  79. package/dist/elements/status.d.ts +1 -0
  80. package/dist/elements/status.js +1 -0
  81. package/dist/elements/tab.d.ts +1 -0
  82. package/dist/elements/tab.js +1 -0
  83. package/dist/elements/tabs.d.ts +1 -0
  84. package/dist/elements/tabs.js +1 -0
  85. package/dist/elements/text.d.ts +1 -0
  86. package/dist/elements/text.js +1 -0
  87. package/dist/elements/textarea.d.ts +1 -0
  88. package/dist/elements/textarea.js +1 -0
  89. package/dist/elements/thumbnail.d.ts +1 -0
  90. package/dist/elements/thumbnail.js +1 -0
  91. package/dist/elements/ui.d.ts +1 -0
  92. package/dist/elements/ui.js +1 -0
  93. package/dist/frameworks/jsx.d.ts +3589 -0
  94. package/dist/frameworks/preact.d.ts +9 -0
  95. package/dist/frameworks/solid.d.ts +7 -0
  96. package/dist/frameworks/svelte.d.ts +1676 -0
  97. package/dist/frameworks/vue.d.ts +827 -0
  98. package/dist/index.js +80 -0
  99. package/dist/react/badge.d.ts +12 -0
  100. package/dist/react/badge.js +4 -0
  101. package/dist/react/button.d.ts +16 -0
  102. package/dist/react/button.js +4 -0
  103. package/dist/react/card.d.ts +11 -0
  104. package/dist/react/card.js +4 -0
  105. package/dist/react/checkbox.d.ts +14 -0
  106. package/dist/react/checkbox.js +4 -0
  107. package/dist/react/chip.d.ts +12 -0
  108. package/dist/react/chip.js +4 -0
  109. package/dist/react/create.js +49 -0
  110. package/dist/react/disclosure.d.ts +11 -0
  111. package/dist/react/disclosure.js +4 -0
  112. package/dist/react/divider.d.ts +9 -0
  113. package/dist/react/divider.js +4 -0
  114. package/dist/react/index.d.ts +26 -0
  115. package/dist/react/index.js +26 -0
  116. package/dist/react/input.d.ts +28 -0
  117. package/dist/react/input.js +4 -0
  118. package/dist/react/link.d.ts +15 -0
  119. package/dist/react/link.js +4 -0
  120. package/dist/react/lookup-list.d.ts +9 -0
  121. package/dist/react/lookup-list.js +4 -0
  122. package/dist/react/lookup-option.d.ts +11 -0
  123. package/dist/react/lookup-option.js +4 -0
  124. package/dist/react/lookup.d.ts +28 -0
  125. package/dist/react/lookup.js +4 -0
  126. package/dist/react/popover.d.ts +11 -0
  127. package/dist/react/popover.js +4 -0
  128. package/dist/react/quantity.d.ts +15 -0
  129. package/dist/react/quantity.js +4 -0
  130. package/dist/react/radio-option.d.ts +11 -0
  131. package/dist/react/radio-option.js +4 -0
  132. package/dist/react/radio.d.ts +18 -0
  133. package/dist/react/radio.js +4 -0
  134. package/dist/react/select-option.d.ts +11 -0
  135. package/dist/react/select-option.js +4 -0
  136. package/dist/react/select.d.ts +20 -0
  137. package/dist/react/select.js +4 -0
  138. package/dist/react/skeleton.d.ts +11 -0
  139. package/dist/react/skeleton.js +4 -0
  140. package/dist/react/status.d.ts +12 -0
  141. package/dist/react/status.js +4 -0
  142. package/dist/react/tab.d.ts +10 -0
  143. package/dist/react/tab.js +4 -0
  144. package/dist/react/tabs.d.ts +17 -0
  145. package/dist/react/tabs.js +4 -0
  146. package/dist/react/text.d.ts +12 -0
  147. package/dist/react/text.js +4 -0
  148. package/dist/react/textarea.d.ts +23 -0
  149. package/dist/react/textarea.js +4 -0
  150. package/dist/react/thumbnail.d.ts +13 -0
  151. package/dist/react/thumbnail.js +4 -0
  152. package/dist/react/ui.d.ts +10 -0
  153. package/dist/react/ui.js +4 -0
  154. package/dist/types/components/core/badge/badge.d.ts +25 -0
  155. package/dist/types/components/core/button/button.d.ts +60 -0
  156. package/dist/types/components/core/card/card.d.ts +21 -0
  157. package/dist/types/components/core/checkbox/checkbox.d.ts +46 -0
  158. package/dist/types/components/core/chip/chip.d.ts +36 -0
  159. package/dist/types/components/core/disclosure/disclosure.d.ts +37 -0
  160. package/dist/types/components/core/divider/divider.d.ts +21 -0
  161. package/dist/types/components/core/index.d.ts +21 -0
  162. package/dist/types/components/core/input/input.d.ts +57 -0
  163. package/dist/types/components/core/link/link.d.ts +42 -0
  164. package/dist/types/components/core/lookup/lookup-list.d.ts +21 -0
  165. package/dist/types/components/core/lookup/lookup-option.d.ts +27 -0
  166. package/dist/types/components/core/lookup/lookup.d.ts +32 -0
  167. package/dist/types/components/core/popover/popover.d.ts +33 -0
  168. package/dist/types/components/core/quantity/quantity.d.ts +47 -0
  169. package/dist/types/components/core/radio/radio-option.d.ts +82 -0
  170. package/dist/types/components/core/radio/radio.d.ts +65 -0
  171. package/dist/types/components/core/select/select-option.d.ts +69 -0
  172. package/dist/types/components/core/select/select.d.ts +70 -0
  173. package/dist/types/components/core/skeleton/skeleton.d.ts +23 -0
  174. package/dist/types/components/core/status/status.d.ts +38 -0
  175. package/dist/types/components/core/tabs/tab.d.ts +76 -0
  176. package/dist/types/components/core/tabs/tabs.d.ts +46 -0
  177. package/dist/types/components/core/text/text.d.ts +23 -0
  178. package/dist/types/components/core/textarea/textarea.d.ts +45 -0
  179. package/dist/types/components/core/thumbnail/thumbnail.d.ts +27 -0
  180. package/dist/types/components/core/ui/ui.d.ts +16 -0
  181. package/dist/types/components/elements.d.ts +1 -0
  182. package/dist/types/react/create.d.ts +8 -0
  183. package/dist/types/runtime/config.d.ts +25 -0
  184. package/dist/types/runtime/css.d.ts +12 -0
  185. package/dist/types/runtime/define.d.ts +4 -0
  186. package/dist/types/runtime/description.d.ts +12 -0
  187. package/dist/types/runtime/element.d.ts +61 -0
  188. package/dist/types/runtime/focus.d.ts +5 -0
  189. package/dist/types/runtime/form.d.ts +5 -0
  190. package/dist/types/runtime/index.d.ts +2 -0
  191. package/dist/types/runtime/link.d.ts +17 -0
  192. package/dist/types/runtime/loader.d.ts +21 -0
  193. package/dist/types/runtime/popup.d.ts +8 -0
  194. package/dist/types/runtime/sheet.d.ts +31 -0
  195. package/dist/types/runtime/text-field.d.ts +47 -0
  196. package/dist/types/runtime/toggle.d.ts +8 -0
  197. package/dist/types/runtime/tokens.generated.d.ts +492 -0
  198. package/dist/types/runtime/values.d.ts +6 -0
  199. package/dist/types/runtime/variants.d.ts +4 -0
  200. package/package.json +136 -4
  201. package/resolver.json +111 -0
  202. package/src/components/core/badge/tokens.json +152 -0
  203. package/src/components/core/button/tokens.dark.json +16 -0
  204. package/src/components/core/button/tokens.json +232 -0
  205. package/src/components/core/card/tokens.json +35 -0
  206. package/src/components/core/checkbox/tokens.json +15 -0
  207. package/src/components/core/chip/tokens.json +144 -0
  208. package/src/components/core/link/tokens.json +24 -0
  209. package/src/components/core/radio/tokens.dark.json +17 -0
  210. package/src/components/core/radio/tokens.json +114 -0
  211. package/src/components/core/status/tokens.dark.json +71 -0
  212. package/src/components/core/status/tokens.json +135 -0
  213. package/src/components/core/tabs/tokens.json +80 -0
  214. package/src/components/core/text/tokens.json +222 -0
  215. package/src/components/core/thumbnail/tokens.json +46 -0
  216. package/tokens/border.json +38 -0
  217. package/tokens/color.dark.json +88 -0
  218. package/tokens/color.json +115 -0
  219. package/tokens/control.json +115 -0
  220. package/tokens/field.dark.json +65 -0
  221. package/tokens/field.json +158 -0
  222. package/tokens/focus.json +26 -0
  223. package/tokens/font.json +117 -0
  224. package/tokens/motion.json +49 -0
  225. package/tokens/overlay.json +81 -0
@@ -0,0 +1,158 @@
1
+ {
2
+ "field": {
3
+ "$description": "The look of text fields: input, textarea, select and lookup. Checkboxes and radios take its border, and a radio group takes its label.",
4
+ "$extensions": {
5
+ "is.swell.ui": {
6
+ "settings": {
7
+ "appearance": {
8
+ "description": "How text fields are drawn when the element has no appearance attribute: outline (border on all sides), filled (fill and a bottom border), underline (bottom border).",
9
+ "values": ["outline", "filled", "underline"],
10
+ "default": "outline"
11
+ }
12
+ },
13
+ "states": ["hover", "focus", "invalid"]
14
+ }
15
+ },
16
+ "color": {
17
+ "background": {
18
+ "$type": "color",
19
+ "$value": "{color.secondary.background}",
20
+ "$description": "Fill of filled fields."
21
+ },
22
+ "foreground": {
23
+ "$type": "color",
24
+ "$value": "{color.foreground}",
25
+ "$description": "Text of fields."
26
+ },
27
+ "border": {
28
+ "$type": "color",
29
+ "$value": {
30
+ "colorSpace": "srgb",
31
+ "components": [0.5451, 0.5529, 0.5647],
32
+ "hex": "#8b8d90"
33
+ },
34
+ "$description": "Border of fields, checkboxes and radio circles, at 3:1 against the background."
35
+ }
36
+ },
37
+ "hover": {
38
+ "color": {
39
+ "border": {
40
+ "$type": "color",
41
+ "$value": {
42
+ "colorSpace": "srgb",
43
+ "components": [0.349, 0.3569, 0.3725],
44
+ "hex": "#595b5f"
45
+ },
46
+ "$description": "Border of fields, checkboxes and radio circles under the pointer."
47
+ }
48
+ }
49
+ },
50
+ "focus": {
51
+ "color": {
52
+ "ring": {
53
+ "$type": "color",
54
+ "$value": {
55
+ "colorSpace": "srgb",
56
+ "components": [0.2275, 0.4, 0.9608],
57
+ "hex": "#3a66f5",
58
+ "alpha": 0.16
59
+ },
60
+ "$description": "Soft ring around a focused outline field, outside its border in focus.color."
61
+ }
62
+ }
63
+ },
64
+ "invalid": {
65
+ "color": {
66
+ "ring": {
67
+ "$type": "color",
68
+ "$value": {
69
+ "colorSpace": "srgb",
70
+ "components": [0.8431, 0.2157, 0.2392],
71
+ "hex": "#d7373d",
72
+ "alpha": 0.09
73
+ },
74
+ "$description": "Soft ring around an invalid outline field, outside its border in color.danger."
75
+ }
76
+ }
77
+ },
78
+ "label": {
79
+ "$description": "Labels above fields and radio groups. Their size follows the text of the field's size, one step smaller and at least 12px.",
80
+ "$extensions": {
81
+ "is.swell.ui": {
82
+ "settings": {
83
+ "position": {
84
+ "description": "Where the label of a text field sits: above it, or floating inside it.",
85
+ "values": ["above", "floating"],
86
+ "default": "floating"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "font": {
92
+ "family": {
93
+ "$type": "fontFamily",
94
+ "$value": "{font.family}",
95
+ "$description": "Font family of field labels."
96
+ },
97
+ "weight": {
98
+ "$type": "fontWeight",
99
+ "$value": "{font.strong.weight}",
100
+ "$description": "Font weight of labels above fields; a floating label takes the base font weight at rest and font.medium.weight raised."
101
+ },
102
+ "tracking": {
103
+ "$type": "number",
104
+ "$value": "{font.tracking}",
105
+ "$description": "Letter spacing of field labels, in em.",
106
+ "$extensions": {
107
+ "is.swell.ui": {
108
+ "unit": "em"
109
+ }
110
+ }
111
+ }
112
+ },
113
+ "color": {
114
+ "foreground": {
115
+ "$type": "color",
116
+ "$value": {
117
+ "colorSpace": "srgb",
118
+ "components": [0.2824, 0.2902, 0.3098],
119
+ "hex": "#484a4f"
120
+ },
121
+ "$description": "Color of labels above fields; a floating label takes color.secondary.foreground."
122
+ }
123
+ }
124
+ },
125
+ "ring": {
126
+ "width": {
127
+ "$type": "dimension",
128
+ "$value": {
129
+ "value": 3,
130
+ "unit": "px"
131
+ },
132
+ "$description": "Width of the ring around a focused or invalid outline field, and of the ring around the current step."
133
+ }
134
+ },
135
+ "gap": {
136
+ "$type": "dimension",
137
+ "$value": {
138
+ "value": 6,
139
+ "unit": "px"
140
+ },
141
+ "$description": "Space between the label, the field and the hint or error of a field, a checkbox and a radio group."
142
+ },
143
+ "outline": {
144
+ "color": {
145
+ "background": {
146
+ "$type": "color",
147
+ "$value": {
148
+ "colorSpace": "srgb",
149
+ "components": [0, 0, 0],
150
+ "alpha": 0,
151
+ "hex": "#000000"
152
+ },
153
+ "$description": "Fill of outline fields, such as a raised surface on a dark page or a field in an area of its own; transparent by default."
154
+ }
155
+ }
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "focus": {
3
+ "$description": "The focus outline, the same on every interactive component.",
4
+ "color": {
5
+ "$type": "color",
6
+ "$value": "{color.accent}",
7
+ "$description": "Color of the focus outline."
8
+ },
9
+ "width": {
10
+ "$type": "dimension",
11
+ "$value": {
12
+ "value": 2,
13
+ "unit": "px"
14
+ },
15
+ "$description": "Width of the focus outline."
16
+ },
17
+ "offset": {
18
+ "$type": "dimension",
19
+ "$value": {
20
+ "value": 2,
21
+ "unit": "px"
22
+ },
23
+ "$description": "Gap between a component and its focus outline."
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,117 @@
1
+ {
2
+ "font": {
3
+ "$description": "What every text shares, and the two small sizes that captions, footnotes, badges and chips share.",
4
+ "$extensions": {
5
+ "is.swell.ui": {
6
+ "attributes": {
7
+ "type": ["caption", "footnote", "heading", "medium", "strong", "bold"]
8
+ }
9
+ }
10
+ },
11
+ "family": {
12
+ "$type": "fontFamily",
13
+ "$value": [
14
+ "-apple-system",
15
+ "BlinkMacSystemFont",
16
+ "Inter",
17
+ "Segoe UI",
18
+ "Roboto",
19
+ "Helvetica",
20
+ "Arial",
21
+ "sans-serif"
22
+ ],
23
+ "$description": "Font family."
24
+ },
25
+ "size": {
26
+ "$type": "dimension",
27
+ "$value": {
28
+ "value": 14,
29
+ "unit": "px"
30
+ },
31
+ "$description": "Base font size."
32
+ },
33
+ "weight": {
34
+ "$type": "fontWeight",
35
+ "$value": 400,
36
+ "$description": "Base font weight."
37
+ },
38
+ "tracking": {
39
+ "$type": "number",
40
+ "$value": 0,
41
+ "$description": "Base letter spacing, in em.",
42
+ "$extensions": {
43
+ "is.swell.ui": {
44
+ "unit": "em"
45
+ }
46
+ }
47
+ },
48
+ "leading": {
49
+ "$type": "number",
50
+ "$value": 1.5,
51
+ "$description": "Base line height, as a multiple of the font size."
52
+ },
53
+ "caption": {
54
+ "size": {
55
+ "$type": "dimension",
56
+ "$value": {
57
+ "value": 13,
58
+ "unit": "px"
59
+ },
60
+ "$description": "Small font size: captions, divider labels and medium chips."
61
+ }
62
+ },
63
+ "footnote": {
64
+ "size": {
65
+ "$type": "dimension",
66
+ "$value": {
67
+ "value": 12,
68
+ "unit": "px"
69
+ },
70
+ "$description": "Smallest font size: footnotes, eyebrows and medium badges."
71
+ }
72
+ },
73
+ "heading": {
74
+ "family": {
75
+ "$type": "fontFamily",
76
+ "$value": "{font.family}",
77
+ "$description": "Font family of titles, headings, subheadings and the labels of vertical steps."
78
+ },
79
+ "weight": {
80
+ "$type": "fontWeight",
81
+ "$value": 650,
82
+ "$description": "Font weight of titles, headings, subheadings and the labels of vertical steps."
83
+ },
84
+ "tracking": {
85
+ "$type": "number",
86
+ "$value": -0.015,
87
+ "$description": "Letter spacing of headings and the labels of vertical steps, in em.",
88
+ "$extensions": {
89
+ "is.swell.ui": {
90
+ "unit": "em"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "medium": {
96
+ "weight": {
97
+ "$type": "fontWeight",
98
+ "$value": 500,
99
+ "$description": "A medium weight: a raised field label and the label of a button option."
100
+ }
101
+ },
102
+ "strong": {
103
+ "weight": {
104
+ "$type": "fontWeight",
105
+ "$value": 600,
106
+ "$description": "A strong weight: field labels, errors, plain status messages and links, tabs, the labels of outline and segmented options, badges and strong text."
107
+ }
108
+ },
109
+ "bold": {
110
+ "weight": {
111
+ "$type": "fontWeight",
112
+ "$value": 700,
113
+ "$description": "A bold weight: the count of a quantity, the numbers of steps, the chosen button option, chips, small badges and eyebrows."
114
+ }
115
+ }
116
+ }
117
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "motion": {
3
+ "$description": "Durations and easing of every transition. With reduced motion in the system settings, components change state without movement.",
4
+ "duration": {
5
+ "fast": {
6
+ "$type": "duration",
7
+ "$value": {
8
+ "value": 200,
9
+ "unit": "ms"
10
+ },
11
+ "$description": "Color changes on hover and focus."
12
+ },
13
+ "base": {
14
+ "$type": "duration",
15
+ "$value": {
16
+ "value": 250,
17
+ "unit": "ms"
18
+ },
19
+ "$description": "Presses, small moves and pops: a check, a rising label, a list or an error appearing."
20
+ },
21
+ "slow": {
22
+ "$type": "duration",
23
+ "$value": {
24
+ "value": 450,
25
+ "unit": "ms"
26
+ },
27
+ "$description": "Large moves: a sliding marker, expanding content, a message appearing, a shake, a chip popping in."
28
+ },
29
+ "loop": {
30
+ "$type": "duration",
31
+ "$value": {
32
+ "value": 1350,
33
+ "unit": "ms"
34
+ },
35
+ "$description": "Period of a continuous motion: the shimmer of a skeleton; the spinner of a loading button turns in two thirds of it."
36
+ }
37
+ },
38
+ "easing": {
39
+ "$type": "cubicBezier",
40
+ "$value": [0.2, 0.8, 0.2, 1],
41
+ "$description": "Easing of every transition that doesn't overshoot."
42
+ },
43
+ "spring": {
44
+ "$type": "cubicBezier",
45
+ "$value": [0.34, 1.56, 0.64, 1],
46
+ "$description": "Easing of pops that overshoot: checks and chips."
47
+ }
48
+ }
49
+ }
@@ -0,0 +1,81 @@
1
+ {
2
+ "overlay": {
3
+ "$description": "Surfaces that float above the page: the lists of a select and a lookup, and the panel of a popover.",
4
+ "border": {
5
+ "radius": {
6
+ "$type": "dimension",
7
+ "$value": "{border.radius}",
8
+ "$description": "Corner radius of a floating surface."
9
+ }
10
+ },
11
+ "color": {
12
+ "background": {
13
+ "$type": "color",
14
+ "$value": "{color.background}",
15
+ "$description": "Background of a floating surface."
16
+ },
17
+ "border": {
18
+ "$type": "color",
19
+ "$value": "{color.border}",
20
+ "$description": "Border of a floating surface, and the dividers between its rows."
21
+ },
22
+ "shadow": {
23
+ "$type": "color",
24
+ "$value": {
25
+ "colorSpace": "srgb",
26
+ "components": [0, 0, 0],
27
+ "hex": "#000000",
28
+ "alpha": 0.35
29
+ },
30
+ "$description": "Color of the shadow of surfaces that float above the page."
31
+ }
32
+ },
33
+ "shadow": {
34
+ "$type": "shadow",
35
+ "$value": {
36
+ "color": "{overlay.color.shadow}",
37
+ "offsetX": {
38
+ "value": 0,
39
+ "unit": "px"
40
+ },
41
+ "offsetY": {
42
+ "value": 20,
43
+ "unit": "px"
44
+ },
45
+ "blur": {
46
+ "value": 40,
47
+ "unit": "px"
48
+ },
49
+ "spread": {
50
+ "value": -18,
51
+ "unit": "px"
52
+ }
53
+ },
54
+ "$description": "Shadow of the lists of selects and lookups and the panels of popovers, in overlay.color.shadow."
55
+ },
56
+ "padding": {
57
+ "$type": "dimension",
58
+ "$value": {
59
+ "value": 16,
60
+ "unit": "px"
61
+ },
62
+ "$description": "Padding of the panel of a popover."
63
+ },
64
+ "offset": {
65
+ "$type": "dimension",
66
+ "$value": {
67
+ "value": 12,
68
+ "unit": "px"
69
+ },
70
+ "$description": "Space between a field or a trigger and the list or panel it opens."
71
+ },
72
+ "height": {
73
+ "$type": "dimension",
74
+ "$value": {
75
+ "value": 320,
76
+ "unit": "px"
77
+ },
78
+ "$description": "The tallest a list or a panel grows before it scrolls."
79
+ }
80
+ }
81
+ }