@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.
- package/CHANGELOG.md +22 -0
- package/README.md +165 -2
- package/custom-elements.json +8274 -0
- package/dist/chunks/badge-Dt6q8Cqa.js +11 -0
- package/dist/chunks/button-C7nCiu-t.js +123 -0
- package/dist/chunks/card-CvSQEug8.js +10 -0
- package/dist/chunks/checkbox-BRI_A1TP.js +99 -0
- package/dist/chunks/chip-BtnufSMG.js +48 -0
- package/dist/chunks/config-C-FYxOaJ.js +588 -0
- package/dist/chunks/define-BlQTa1g4.js +19 -0
- package/dist/chunks/description-BHfQ8meK.js +19 -0
- package/dist/chunks/disclosure-CET8-H6f.js +56 -0
- package/dist/chunks/divider-BfkO0c1j.js +27 -0
- package/dist/chunks/element-B4-_7TLZ.js +138 -0
- package/dist/chunks/input-Uun-ls2_.js +53 -0
- package/dist/chunks/link-8qHFEKQE.js +53 -0
- package/dist/chunks/link-D4NC86oc.js +24 -0
- package/dist/chunks/lookup-5icr_T6o.js +205 -0
- package/dist/chunks/lookup-list-Bw6OJoDS.js +19 -0
- package/dist/chunks/lookup-option-Mn3k8W2M.js +26 -0
- package/dist/chunks/popover-D3Ob6slA.js +92 -0
- package/dist/chunks/popup-Dbh2fchP.js +21 -0
- package/dist/chunks/quantity-h3wqn8tC.js +140 -0
- package/dist/chunks/radio-BhFDL3pO.js +192 -0
- package/dist/chunks/radio-option-hT29S8Zl.js +88 -0
- package/dist/chunks/select-DS1n_htj.js +331 -0
- package/dist/chunks/select-option-DoM9GAe0.js +66 -0
- package/dist/chunks/skeleton-DfPjhls9.js +13 -0
- package/dist/chunks/status-B23JZ5RQ.js +71 -0
- package/dist/chunks/tab-BpjFUbFO.js +107 -0
- package/dist/chunks/tabs-aWKq1Iaz.js +122 -0
- package/dist/chunks/text-ZWPy-iB3.js +26 -0
- package/dist/chunks/text-field-BB_MRt5h.js +158 -0
- package/dist/chunks/textarea-L6_OJ2IN.js +18 -0
- package/dist/chunks/thumbnail-CLe9AsFg.js +21 -0
- package/dist/chunks/toggle-C7-oPgWR.js +22 -0
- package/dist/chunks/ui-HcyMKwzs.js +11 -0
- package/dist/editors/vscode.css-custom-data.json +824 -0
- package/dist/editors/vscode.html-custom-data.json +1156 -0
- package/dist/editors/web-types.json +1706 -0
- package/dist/elements/badge.d.ts +1 -0
- package/dist/elements/badge.js +1 -0
- package/dist/elements/button.d.ts +1 -0
- package/dist/elements/button.js +1 -0
- package/dist/elements/card.d.ts +1 -0
- package/dist/elements/card.js +1 -0
- package/dist/elements/checkbox.d.ts +1 -0
- package/dist/elements/checkbox.js +1 -0
- package/dist/elements/chip.d.ts +1 -0
- package/dist/elements/chip.js +1 -0
- package/dist/elements/disclosure.d.ts +1 -0
- package/dist/elements/disclosure.js +1 -0
- package/dist/elements/divider.d.ts +1 -0
- package/dist/elements/divider.js +1 -0
- package/dist/elements/input.d.ts +1 -0
- package/dist/elements/input.js +1 -0
- package/dist/elements/link.d.ts +1 -0
- package/dist/elements/link.js +1 -0
- package/dist/elements/lookup-list.d.ts +1 -0
- package/dist/elements/lookup-list.js +1 -0
- package/dist/elements/lookup-option.d.ts +1 -0
- package/dist/elements/lookup-option.js +1 -0
- package/dist/elements/lookup.d.ts +1 -0
- package/dist/elements/lookup.js +1 -0
- package/dist/elements/popover.d.ts +1 -0
- package/dist/elements/popover.js +1 -0
- package/dist/elements/quantity.d.ts +1 -0
- package/dist/elements/quantity.js +1 -0
- package/dist/elements/radio-option.d.ts +1 -0
- package/dist/elements/radio-option.js +1 -0
- package/dist/elements/radio.d.ts +1 -0
- package/dist/elements/radio.js +1 -0
- package/dist/elements/select-option.d.ts +1 -0
- package/dist/elements/select-option.js +1 -0
- package/dist/elements/select.d.ts +1 -0
- package/dist/elements/select.js +1 -0
- package/dist/elements/skeleton.d.ts +1 -0
- package/dist/elements/skeleton.js +1 -0
- package/dist/elements/status.d.ts +1 -0
- package/dist/elements/status.js +1 -0
- package/dist/elements/tab.d.ts +1 -0
- package/dist/elements/tab.js +1 -0
- package/dist/elements/tabs.d.ts +1 -0
- package/dist/elements/tabs.js +1 -0
- package/dist/elements/text.d.ts +1 -0
- package/dist/elements/text.js +1 -0
- package/dist/elements/textarea.d.ts +1 -0
- package/dist/elements/textarea.js +1 -0
- package/dist/elements/thumbnail.d.ts +1 -0
- package/dist/elements/thumbnail.js +1 -0
- package/dist/elements/ui.d.ts +1 -0
- package/dist/elements/ui.js +1 -0
- package/dist/frameworks/jsx.d.ts +3589 -0
- package/dist/frameworks/preact.d.ts +9 -0
- package/dist/frameworks/solid.d.ts +7 -0
- package/dist/frameworks/svelte.d.ts +1676 -0
- package/dist/frameworks/vue.d.ts +827 -0
- package/dist/index.js +80 -0
- package/dist/react/badge.d.ts +12 -0
- package/dist/react/badge.js +4 -0
- package/dist/react/button.d.ts +16 -0
- package/dist/react/button.js +4 -0
- package/dist/react/card.d.ts +11 -0
- package/dist/react/card.js +4 -0
- package/dist/react/checkbox.d.ts +14 -0
- package/dist/react/checkbox.js +4 -0
- package/dist/react/chip.d.ts +12 -0
- package/dist/react/chip.js +4 -0
- package/dist/react/create.js +49 -0
- package/dist/react/disclosure.d.ts +11 -0
- package/dist/react/disclosure.js +4 -0
- package/dist/react/divider.d.ts +9 -0
- package/dist/react/divider.js +4 -0
- package/dist/react/index.d.ts +26 -0
- package/dist/react/index.js +26 -0
- package/dist/react/input.d.ts +28 -0
- package/dist/react/input.js +4 -0
- package/dist/react/link.d.ts +15 -0
- package/dist/react/link.js +4 -0
- package/dist/react/lookup-list.d.ts +9 -0
- package/dist/react/lookup-list.js +4 -0
- package/dist/react/lookup-option.d.ts +11 -0
- package/dist/react/lookup-option.js +4 -0
- package/dist/react/lookup.d.ts +28 -0
- package/dist/react/lookup.js +4 -0
- package/dist/react/popover.d.ts +11 -0
- package/dist/react/popover.js +4 -0
- package/dist/react/quantity.d.ts +15 -0
- package/dist/react/quantity.js +4 -0
- package/dist/react/radio-option.d.ts +11 -0
- package/dist/react/radio-option.js +4 -0
- package/dist/react/radio.d.ts +18 -0
- package/dist/react/radio.js +4 -0
- package/dist/react/select-option.d.ts +11 -0
- package/dist/react/select-option.js +4 -0
- package/dist/react/select.d.ts +20 -0
- package/dist/react/select.js +4 -0
- package/dist/react/skeleton.d.ts +11 -0
- package/dist/react/skeleton.js +4 -0
- package/dist/react/status.d.ts +12 -0
- package/dist/react/status.js +4 -0
- package/dist/react/tab.d.ts +10 -0
- package/dist/react/tab.js +4 -0
- package/dist/react/tabs.d.ts +17 -0
- package/dist/react/tabs.js +4 -0
- package/dist/react/text.d.ts +12 -0
- package/dist/react/text.js +4 -0
- package/dist/react/textarea.d.ts +23 -0
- package/dist/react/textarea.js +4 -0
- package/dist/react/thumbnail.d.ts +13 -0
- package/dist/react/thumbnail.js +4 -0
- package/dist/react/ui.d.ts +10 -0
- package/dist/react/ui.js +4 -0
- package/dist/types/components/core/badge/badge.d.ts +25 -0
- package/dist/types/components/core/button/button.d.ts +60 -0
- package/dist/types/components/core/card/card.d.ts +21 -0
- package/dist/types/components/core/checkbox/checkbox.d.ts +46 -0
- package/dist/types/components/core/chip/chip.d.ts +36 -0
- package/dist/types/components/core/disclosure/disclosure.d.ts +37 -0
- package/dist/types/components/core/divider/divider.d.ts +21 -0
- package/dist/types/components/core/index.d.ts +21 -0
- package/dist/types/components/core/input/input.d.ts +57 -0
- package/dist/types/components/core/link/link.d.ts +42 -0
- package/dist/types/components/core/lookup/lookup-list.d.ts +21 -0
- package/dist/types/components/core/lookup/lookup-option.d.ts +27 -0
- package/dist/types/components/core/lookup/lookup.d.ts +32 -0
- package/dist/types/components/core/popover/popover.d.ts +33 -0
- package/dist/types/components/core/quantity/quantity.d.ts +47 -0
- package/dist/types/components/core/radio/radio-option.d.ts +82 -0
- package/dist/types/components/core/radio/radio.d.ts +65 -0
- package/dist/types/components/core/select/select-option.d.ts +69 -0
- package/dist/types/components/core/select/select.d.ts +70 -0
- package/dist/types/components/core/skeleton/skeleton.d.ts +23 -0
- package/dist/types/components/core/status/status.d.ts +38 -0
- package/dist/types/components/core/tabs/tab.d.ts +76 -0
- package/dist/types/components/core/tabs/tabs.d.ts +46 -0
- package/dist/types/components/core/text/text.d.ts +23 -0
- package/dist/types/components/core/textarea/textarea.d.ts +45 -0
- package/dist/types/components/core/thumbnail/thumbnail.d.ts +27 -0
- package/dist/types/components/core/ui/ui.d.ts +16 -0
- package/dist/types/components/elements.d.ts +1 -0
- package/dist/types/react/create.d.ts +8 -0
- package/dist/types/runtime/config.d.ts +25 -0
- package/dist/types/runtime/css.d.ts +12 -0
- package/dist/types/runtime/define.d.ts +4 -0
- package/dist/types/runtime/description.d.ts +12 -0
- package/dist/types/runtime/element.d.ts +61 -0
- package/dist/types/runtime/focus.d.ts +5 -0
- package/dist/types/runtime/form.d.ts +5 -0
- package/dist/types/runtime/index.d.ts +2 -0
- package/dist/types/runtime/link.d.ts +17 -0
- package/dist/types/runtime/loader.d.ts +21 -0
- package/dist/types/runtime/popup.d.ts +8 -0
- package/dist/types/runtime/sheet.d.ts +31 -0
- package/dist/types/runtime/text-field.d.ts +47 -0
- package/dist/types/runtime/toggle.d.ts +8 -0
- package/dist/types/runtime/tokens.generated.d.ts +492 -0
- package/dist/types/runtime/values.d.ts +6 -0
- package/dist/types/runtime/variants.d.ts +4 -0
- package/package.json +136 -4
- package/resolver.json +111 -0
- package/src/components/core/badge/tokens.json +152 -0
- package/src/components/core/button/tokens.dark.json +16 -0
- package/src/components/core/button/tokens.json +232 -0
- package/src/components/core/card/tokens.json +35 -0
- package/src/components/core/checkbox/tokens.json +15 -0
- package/src/components/core/chip/tokens.json +144 -0
- package/src/components/core/link/tokens.json +24 -0
- package/src/components/core/radio/tokens.dark.json +17 -0
- package/src/components/core/radio/tokens.json +114 -0
- package/src/components/core/status/tokens.dark.json +71 -0
- package/src/components/core/status/tokens.json +135 -0
- package/src/components/core/tabs/tokens.json +80 -0
- package/src/components/core/text/tokens.json +222 -0
- package/src/components/core/thumbnail/tokens.json +46 -0
- package/tokens/border.json +38 -0
- package/tokens/color.dark.json +88 -0
- package/tokens/color.json +115 -0
- package/tokens/control.json +115 -0
- package/tokens/field.dark.json +65 -0
- package/tokens/field.json +158 -0
- package/tokens/focus.json +26 -0
- package/tokens/font.json +117 -0
- package/tokens/motion.json +49 -0
- package/tokens/overlay.json +81 -0
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
{
|
|
2
|
+
"text": {
|
|
3
|
+
"$description": "Text: a title, headings, subheadings, strong text, body text, captions, footnotes and eyebrows. `secondary` is quiet text.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"type": [
|
|
8
|
+
"title",
|
|
9
|
+
"heading",
|
|
10
|
+
"subheading",
|
|
11
|
+
"strong",
|
|
12
|
+
"caption",
|
|
13
|
+
"footnote",
|
|
14
|
+
"eyebrow"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"variants": true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"font": {
|
|
21
|
+
"family": {
|
|
22
|
+
"$type": "fontFamily",
|
|
23
|
+
"$value": "{font.family}",
|
|
24
|
+
"$description": "Font family of text."
|
|
25
|
+
},
|
|
26
|
+
"size": {
|
|
27
|
+
"$type": "dimension",
|
|
28
|
+
"$value": "{font.size}",
|
|
29
|
+
"$description": "Font size of body text."
|
|
30
|
+
},
|
|
31
|
+
"weight": {
|
|
32
|
+
"$type": "fontWeight",
|
|
33
|
+
"$value": "{font.weight}",
|
|
34
|
+
"$description": "Font weight of body text."
|
|
35
|
+
},
|
|
36
|
+
"tracking": {
|
|
37
|
+
"$type": "number",
|
|
38
|
+
"$value": "{font.tracking}",
|
|
39
|
+
"$description": "Letter spacing of body text, in em.",
|
|
40
|
+
"$extensions": {
|
|
41
|
+
"is.swell.ui": {
|
|
42
|
+
"unit": "em"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"leading": {
|
|
47
|
+
"$type": "number",
|
|
48
|
+
"$value": "{font.leading}",
|
|
49
|
+
"$description": "Line height of body text, as a multiple of the font size."
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"color": {
|
|
53
|
+
"accent": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "{color.foreground}",
|
|
56
|
+
"$description": "Color of text: text has no fill, so a variant colors it with its accent."
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"title": {
|
|
60
|
+
"font": {
|
|
61
|
+
"family": {
|
|
62
|
+
"$type": "fontFamily",
|
|
63
|
+
"$value": "{font.heading.family}",
|
|
64
|
+
"$description": "Font family of titles."
|
|
65
|
+
},
|
|
66
|
+
"size": {
|
|
67
|
+
"$type": "dimension",
|
|
68
|
+
"$value": {
|
|
69
|
+
"value": 32,
|
|
70
|
+
"unit": "px"
|
|
71
|
+
},
|
|
72
|
+
"$description": "Font size of titles."
|
|
73
|
+
},
|
|
74
|
+
"weight": {
|
|
75
|
+
"$type": "fontWeight",
|
|
76
|
+
"$value": "{font.heading.weight}",
|
|
77
|
+
"$description": "Font weight of titles."
|
|
78
|
+
},
|
|
79
|
+
"tracking": {
|
|
80
|
+
"$type": "number",
|
|
81
|
+
"$value": -0.025,
|
|
82
|
+
"$description": "Letter spacing of titles, in em.",
|
|
83
|
+
"$extensions": {
|
|
84
|
+
"is.swell.ui": {
|
|
85
|
+
"unit": "em"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"leading": {
|
|
90
|
+
"$type": "number",
|
|
91
|
+
"$value": 1.1,
|
|
92
|
+
"$description": "Line height of titles."
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"heading": {
|
|
97
|
+
"font": {
|
|
98
|
+
"family": {
|
|
99
|
+
"$type": "fontFamily",
|
|
100
|
+
"$value": "{font.heading.family}",
|
|
101
|
+
"$description": "Font family of headings."
|
|
102
|
+
},
|
|
103
|
+
"size": {
|
|
104
|
+
"$type": "dimension",
|
|
105
|
+
"$value": {
|
|
106
|
+
"value": 20,
|
|
107
|
+
"unit": "px"
|
|
108
|
+
},
|
|
109
|
+
"$description": "Font size of headings."
|
|
110
|
+
},
|
|
111
|
+
"weight": {
|
|
112
|
+
"$type": "fontWeight",
|
|
113
|
+
"$value": "{font.heading.weight}",
|
|
114
|
+
"$description": "Font weight of headings."
|
|
115
|
+
},
|
|
116
|
+
"tracking": {
|
|
117
|
+
"$type": "number",
|
|
118
|
+
"$value": "{font.heading.tracking}",
|
|
119
|
+
"$description": "Letter spacing of headings, in em.",
|
|
120
|
+
"$extensions": {
|
|
121
|
+
"is.swell.ui": {
|
|
122
|
+
"unit": "em"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"leading": {
|
|
127
|
+
"$type": "number",
|
|
128
|
+
"$value": 1.4,
|
|
129
|
+
"$description": "Line height of headings."
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"subheading": {
|
|
134
|
+
"font": {
|
|
135
|
+
"family": {
|
|
136
|
+
"$type": "fontFamily",
|
|
137
|
+
"$value": "{font.heading.family}",
|
|
138
|
+
"$description": "Font family of subheadings."
|
|
139
|
+
},
|
|
140
|
+
"size": {
|
|
141
|
+
"$type": "dimension",
|
|
142
|
+
"$value": {
|
|
143
|
+
"value": 16,
|
|
144
|
+
"unit": "px"
|
|
145
|
+
},
|
|
146
|
+
"$description": "Font size of subheadings."
|
|
147
|
+
},
|
|
148
|
+
"weight": {
|
|
149
|
+
"$type": "fontWeight",
|
|
150
|
+
"$value": "{font.heading.weight}",
|
|
151
|
+
"$description": "Font weight of subheadings."
|
|
152
|
+
},
|
|
153
|
+
"tracking": {
|
|
154
|
+
"$type": "number",
|
|
155
|
+
"$value": -0.01,
|
|
156
|
+
"$description": "Letter spacing of subheadings, in em.",
|
|
157
|
+
"$extensions": {
|
|
158
|
+
"is.swell.ui": {
|
|
159
|
+
"unit": "em"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"leading": {
|
|
164
|
+
"$type": "number",
|
|
165
|
+
"$value": "{font.leading}",
|
|
166
|
+
"$description": "Line height of subheadings."
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
"strong": {
|
|
171
|
+
"font": {
|
|
172
|
+
"weight": {
|
|
173
|
+
"$type": "fontWeight",
|
|
174
|
+
"$value": "{font.strong.weight}",
|
|
175
|
+
"$description": "Font weight of strong text, such as the title of a group of fields."
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"caption": {
|
|
180
|
+
"font": {
|
|
181
|
+
"size": {
|
|
182
|
+
"$type": "dimension",
|
|
183
|
+
"$value": "{font.caption.size}",
|
|
184
|
+
"$description": "Font size of captions."
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"footnote": {
|
|
189
|
+
"font": {
|
|
190
|
+
"size": {
|
|
191
|
+
"$type": "dimension",
|
|
192
|
+
"$value": "{font.footnote.size}",
|
|
193
|
+
"$description": "Font size of footnotes: legal text, footers and notes."
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"eyebrow": {
|
|
198
|
+
"font": {
|
|
199
|
+
"size": {
|
|
200
|
+
"$type": "dimension",
|
|
201
|
+
"$value": "{font.footnote.size}",
|
|
202
|
+
"$description": "Font size of eyebrows, the short uppercase lines above content."
|
|
203
|
+
},
|
|
204
|
+
"weight": {
|
|
205
|
+
"$type": "fontWeight",
|
|
206
|
+
"$value": "{font.bold.weight}",
|
|
207
|
+
"$description": "Font weight of eyebrows."
|
|
208
|
+
},
|
|
209
|
+
"tracking": {
|
|
210
|
+
"$type": "number",
|
|
211
|
+
"$value": 0.08,
|
|
212
|
+
"$description": "Letter spacing of eyebrows, in em.",
|
|
213
|
+
"$extensions": {
|
|
214
|
+
"is.swell.ui": {
|
|
215
|
+
"unit": "em"
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"thumbnail": {
|
|
3
|
+
"$description": "Thumbnails: a picture, an icon or initials in a small box, such as the photo of a cart line or an avatar. Primary fills the box with the accent; secondary is quiet, with a border.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"variants": true
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"border": {
|
|
10
|
+
"radius": {
|
|
11
|
+
"$type": "dimension",
|
|
12
|
+
"$value": "{border.radius}",
|
|
13
|
+
"$description": "Corner radius of thumbnails that aren't circles."
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"color": {
|
|
17
|
+
"background": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$value": "{color.accent}",
|
|
20
|
+
"$description": "Fill of primary thumbnails, such as an avatar's initials."
|
|
21
|
+
},
|
|
22
|
+
"foreground": {
|
|
23
|
+
"$type": "color",
|
|
24
|
+
"$value": "{color.background}",
|
|
25
|
+
"$description": "Initials and icons of primary thumbnails."
|
|
26
|
+
},
|
|
27
|
+
"border": {
|
|
28
|
+
"$type": "color",
|
|
29
|
+
"$value": {
|
|
30
|
+
"colorSpace": "srgb",
|
|
31
|
+
"components": [0, 0, 0],
|
|
32
|
+
"alpha": 0,
|
|
33
|
+
"hex": "#000000"
|
|
34
|
+
},
|
|
35
|
+
"$description": "Border of primary thumbnails; none by default, also over a photo."
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"font": {
|
|
39
|
+
"weight": {
|
|
40
|
+
"$type": "fontWeight",
|
|
41
|
+
"$value": 650,
|
|
42
|
+
"$description": "Font weight of the initials in a thumbnail."
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"border": {
|
|
3
|
+
"$description": "Borders of every component.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"type": ["strong"]
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"radius": {
|
|
12
|
+
"$type": "dimension",
|
|
13
|
+
"$value": {
|
|
14
|
+
"value": 8,
|
|
15
|
+
"unit": "px"
|
|
16
|
+
},
|
|
17
|
+
"$description": "Base corner radius."
|
|
18
|
+
},
|
|
19
|
+
"width": {
|
|
20
|
+
"$type": "dimension",
|
|
21
|
+
"$value": {
|
|
22
|
+
"value": 1,
|
|
23
|
+
"unit": "px"
|
|
24
|
+
},
|
|
25
|
+
"$description": "Width of a border or a line: the frames of fields, checkboxes, overlays, cards, chips, badges, thumbnails, status messages, quantities and button options, buttons, dividers, the lines between the options of a select, above a lookup's action and under tabs."
|
|
26
|
+
},
|
|
27
|
+
"strong": {
|
|
28
|
+
"width": {
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$value": {
|
|
31
|
+
"value": 1.5,
|
|
32
|
+
"unit": "px"
|
|
33
|
+
},
|
|
34
|
+
"$description": "Width of a border that marks a control: outline buttons, the frames of outline radio options, radio circles, the circles of steps and skeleton cards."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"$description": "Dark theme values of color.",
|
|
4
|
+
"background": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"$value": {
|
|
7
|
+
"colorSpace": "srgb",
|
|
8
|
+
"components": [0.0784, 0.0902, 0.1137],
|
|
9
|
+
"hex": "#14171d"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"foreground": {
|
|
13
|
+
"$type": "color",
|
|
14
|
+
"$value": {
|
|
15
|
+
"colorSpace": "srgb",
|
|
16
|
+
"components": [0.9098, 0.9176, 0.9373],
|
|
17
|
+
"hex": "#e8eaef"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"border": {
|
|
21
|
+
"$type": "color",
|
|
22
|
+
"$value": {
|
|
23
|
+
"colorSpace": "srgb",
|
|
24
|
+
"components": [0.1686, 0.1804, 0.2039],
|
|
25
|
+
"hex": "#2b2e34"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"accent": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": {
|
|
31
|
+
"colorSpace": "srgb",
|
|
32
|
+
"components": [0.3569, 0.549, 1],
|
|
33
|
+
"hex": "#5b8cff"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"danger": {
|
|
37
|
+
"$type": "color",
|
|
38
|
+
"$value": {
|
|
39
|
+
"colorSpace": "srgb",
|
|
40
|
+
"components": [0.949, 0.3333, 0.3529],
|
|
41
|
+
"hex": "#f2555a"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"success": {
|
|
45
|
+
"$type": "color",
|
|
46
|
+
"$value": {
|
|
47
|
+
"colorSpace": "srgb",
|
|
48
|
+
"components": [0.2431, 0.8118, 0.5569],
|
|
49
|
+
"hex": "#3ecf8e"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"warning": {
|
|
53
|
+
"$type": "color",
|
|
54
|
+
"$value": {
|
|
55
|
+
"colorSpace": "srgb",
|
|
56
|
+
"components": [0.9412, 0.6667, 0.2353],
|
|
57
|
+
"hex": "#f0aa3c"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"secondary": {
|
|
61
|
+
"background": {
|
|
62
|
+
"$type": "color",
|
|
63
|
+
"$value": {
|
|
64
|
+
"colorSpace": "srgb",
|
|
65
|
+
"components": [0.1098, 0.1216, 0.1451],
|
|
66
|
+
"hex": "#1c1f25"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"foreground": {
|
|
70
|
+
"$type": "color",
|
|
71
|
+
"$value": {
|
|
72
|
+
"colorSpace": "srgb",
|
|
73
|
+
"components": [0.5922, 0.6039, 0.6235],
|
|
74
|
+
"hex": "#979a9f"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"shadow": {
|
|
78
|
+
"$type": "color",
|
|
79
|
+
"$value": {
|
|
80
|
+
"colorSpace": "srgb",
|
|
81
|
+
"components": [0.1098, 0.1216, 0.1451],
|
|
82
|
+
"hex": "#1c1f25",
|
|
83
|
+
"alpha": 0.6
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"color": {
|
|
3
|
+
"$description": "The global palette. The group level is the primary palette; `secondary` is the quieter one: its background and its text.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"variant": ["secondary"]
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"background": {
|
|
12
|
+
"$type": "color",
|
|
13
|
+
"$value": {
|
|
14
|
+
"colorSpace": "srgb",
|
|
15
|
+
"components": [1, 1, 1],
|
|
16
|
+
"hex": "#ffffff"
|
|
17
|
+
},
|
|
18
|
+
"$description": "Page background."
|
|
19
|
+
},
|
|
20
|
+
"foreground": {
|
|
21
|
+
"$type": "color",
|
|
22
|
+
"$value": {
|
|
23
|
+
"colorSpace": "srgb",
|
|
24
|
+
"components": [0.0549, 0.0667, 0.0902],
|
|
25
|
+
"hex": "#0e1117"
|
|
26
|
+
},
|
|
27
|
+
"$description": "Text and icons on the page background."
|
|
28
|
+
},
|
|
29
|
+
"border": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": {
|
|
32
|
+
"colorSpace": "srgb",
|
|
33
|
+
"components": [0.8941, 0.898, 0.898],
|
|
34
|
+
"hex": "#e4e5e5"
|
|
35
|
+
},
|
|
36
|
+
"$description": "Decorative borders and dividers."
|
|
37
|
+
},
|
|
38
|
+
"accent": {
|
|
39
|
+
"$type": "color",
|
|
40
|
+
"$value": {
|
|
41
|
+
"colorSpace": "srgb",
|
|
42
|
+
"components": [0.2275, 0.4, 0.9608],
|
|
43
|
+
"hex": "#3a66f5"
|
|
44
|
+
},
|
|
45
|
+
"$description": "The brand color: filled buttons, links, checked controls, focus."
|
|
46
|
+
},
|
|
47
|
+
"danger": {
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"$value": {
|
|
50
|
+
"colorSpace": "srgb",
|
|
51
|
+
"components": [0.8431, 0.2157, 0.2392],
|
|
52
|
+
"hex": "#d7373d"
|
|
53
|
+
},
|
|
54
|
+
"$description": "Errors: invalid fields, error messages."
|
|
55
|
+
},
|
|
56
|
+
"success": {
|
|
57
|
+
"$type": "color",
|
|
58
|
+
"$value": {
|
|
59
|
+
"colorSpace": "srgb",
|
|
60
|
+
"components": [0.0706, 0.5804, 0.3686],
|
|
61
|
+
"hex": "#12945e"
|
|
62
|
+
},
|
|
63
|
+
"$description": "Success: success messages and a successful button."
|
|
64
|
+
},
|
|
65
|
+
"warning": {
|
|
66
|
+
"$type": "color",
|
|
67
|
+
"$value": {
|
|
68
|
+
"colorSpace": "srgb",
|
|
69
|
+
"components": [0.7255, 0.4392, 0.0392],
|
|
70
|
+
"hex": "#b9700a"
|
|
71
|
+
},
|
|
72
|
+
"$description": "Warnings: warning messages."
|
|
73
|
+
},
|
|
74
|
+
"secondary": {
|
|
75
|
+
"background": {
|
|
76
|
+
"$type": "color",
|
|
77
|
+
"$value": {
|
|
78
|
+
"colorSpace": "srgb",
|
|
79
|
+
"components": [0.9608, 0.9608, 0.9647],
|
|
80
|
+
"hex": "#f5f5f6"
|
|
81
|
+
},
|
|
82
|
+
"$description": "Quiet areas: secondary buttons, status messages, filled fields."
|
|
83
|
+
},
|
|
84
|
+
"foreground": {
|
|
85
|
+
"$type": "color",
|
|
86
|
+
"$value": {
|
|
87
|
+
"colorSpace": "srgb",
|
|
88
|
+
"components": [0.4157, 0.4196, 0.4353],
|
|
89
|
+
"hex": "#6a6b6f"
|
|
90
|
+
},
|
|
91
|
+
"$description": "Quiet text: hints, captions, placeholders, secondary text."
|
|
92
|
+
},
|
|
93
|
+
"border": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "{color.border}",
|
|
96
|
+
"$description": "Borders of secondary buttons, badges and thumbnails."
|
|
97
|
+
},
|
|
98
|
+
"accent": {
|
|
99
|
+
"$type": "color",
|
|
100
|
+
"$value": "{color.secondary.foreground}",
|
|
101
|
+
"$description": "The quiet color where there is no fill: secondary text and links, and the text of outline and plain secondary buttons and badges."
|
|
102
|
+
},
|
|
103
|
+
"shadow": {
|
|
104
|
+
"$type": "color",
|
|
105
|
+
"$value": {
|
|
106
|
+
"colorSpace": "srgb",
|
|
107
|
+
"components": [0.9608, 0.9608, 0.9647],
|
|
108
|
+
"hex": "#f5f5f6",
|
|
109
|
+
"alpha": 0.6
|
|
110
|
+
},
|
|
111
|
+
"$description": "Color of the shadow of filled secondary buttons."
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"control": {
|
|
3
|
+
"$description": "The control scale: the height and text size of each of the five steps, shared by buttons, fields, selects, lookups, quantities, checkboxes, radio groups, status messages, plain links and skeletons. Every other measure of a sized component follows from these two. The group also holds the opacity of a disabled control.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"size": ["xsmall", "small", "large", "xlarge"]
|
|
8
|
+
},
|
|
9
|
+
"states": ["disabled"]
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"height": {
|
|
13
|
+
"$type": "dimension",
|
|
14
|
+
"$value": {
|
|
15
|
+
"value": 48,
|
|
16
|
+
"unit": "px"
|
|
17
|
+
},
|
|
18
|
+
"$description": "Height of medium controls."
|
|
19
|
+
},
|
|
20
|
+
"font": {
|
|
21
|
+
"size": {
|
|
22
|
+
"$type": "dimension",
|
|
23
|
+
"$value": "{font.size}",
|
|
24
|
+
"$description": "Font size of medium controls."
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"xsmall": {
|
|
28
|
+
"height": {
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$value": {
|
|
31
|
+
"value": 32,
|
|
32
|
+
"unit": "px"
|
|
33
|
+
},
|
|
34
|
+
"$description": "Height of extra small controls, the smallest that holds a 16px line on a touch screen."
|
|
35
|
+
},
|
|
36
|
+
"font": {
|
|
37
|
+
"size": {
|
|
38
|
+
"$type": "dimension",
|
|
39
|
+
"$value": {
|
|
40
|
+
"value": 12,
|
|
41
|
+
"unit": "px"
|
|
42
|
+
},
|
|
43
|
+
"$description": "Font size of extra small controls."
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"small": {
|
|
48
|
+
"height": {
|
|
49
|
+
"$type": "dimension",
|
|
50
|
+
"$value": {
|
|
51
|
+
"value": 40,
|
|
52
|
+
"unit": "px"
|
|
53
|
+
},
|
|
54
|
+
"$description": "Height of small controls."
|
|
55
|
+
},
|
|
56
|
+
"font": {
|
|
57
|
+
"size": {
|
|
58
|
+
"$type": "dimension",
|
|
59
|
+
"$value": {
|
|
60
|
+
"value": 13,
|
|
61
|
+
"unit": "px"
|
|
62
|
+
},
|
|
63
|
+
"$description": "Font size of small controls."
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"large": {
|
|
68
|
+
"height": {
|
|
69
|
+
"$type": "dimension",
|
|
70
|
+
"$value": {
|
|
71
|
+
"value": 56,
|
|
72
|
+
"unit": "px"
|
|
73
|
+
},
|
|
74
|
+
"$description": "Height of large controls."
|
|
75
|
+
},
|
|
76
|
+
"font": {
|
|
77
|
+
"size": {
|
|
78
|
+
"$type": "dimension",
|
|
79
|
+
"$value": {
|
|
80
|
+
"value": 16,
|
|
81
|
+
"unit": "px"
|
|
82
|
+
},
|
|
83
|
+
"$description": "Font size of large controls."
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"xlarge": {
|
|
88
|
+
"height": {
|
|
89
|
+
"$type": "dimension",
|
|
90
|
+
"$value": {
|
|
91
|
+
"value": 64,
|
|
92
|
+
"unit": "px"
|
|
93
|
+
},
|
|
94
|
+
"$description": "Height of extra large controls."
|
|
95
|
+
},
|
|
96
|
+
"font": {
|
|
97
|
+
"size": {
|
|
98
|
+
"$type": "dimension",
|
|
99
|
+
"$value": {
|
|
100
|
+
"value": 18,
|
|
101
|
+
"unit": "px"
|
|
102
|
+
},
|
|
103
|
+
"$description": "Font size of extra large controls."
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"disabled": {
|
|
108
|
+
"opacity": {
|
|
109
|
+
"$type": "number",
|
|
110
|
+
"$value": 0.5,
|
|
111
|
+
"$description": "Opacity of a disabled control, the disabled options of a choice, a busy quantity and the step of a quantity at its limit."
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"field": {
|
|
3
|
+
"$description": "Dark theme values of field.",
|
|
4
|
+
"color": {
|
|
5
|
+
"border": {
|
|
6
|
+
"$type": "color",
|
|
7
|
+
"$value": {
|
|
8
|
+
"colorSpace": "srgb",
|
|
9
|
+
"components": [0.4784, 0.4863, 0.5098],
|
|
10
|
+
"hex": "#7a7c82"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"hover": {
|
|
15
|
+
"color": {
|
|
16
|
+
"border": {
|
|
17
|
+
"$type": "color",
|
|
18
|
+
"$value": {
|
|
19
|
+
"colorSpace": "srgb",
|
|
20
|
+
"components": [0.651, 0.6588, 0.6784],
|
|
21
|
+
"hex": "#a6a8ad"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"focus": {
|
|
27
|
+
"color": {
|
|
28
|
+
"ring": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": {
|
|
31
|
+
"colorSpace": "srgb",
|
|
32
|
+
"components": [0.3569, 0.549, 1.0],
|
|
33
|
+
"hex": "#5b8cff",
|
|
34
|
+
"alpha": 0.16
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"invalid": {
|
|
40
|
+
"color": {
|
|
41
|
+
"ring": {
|
|
42
|
+
"$type": "color",
|
|
43
|
+
"$value": {
|
|
44
|
+
"colorSpace": "srgb",
|
|
45
|
+
"components": [0.949, 0.3333, 0.3529],
|
|
46
|
+
"hex": "#f2555a",
|
|
47
|
+
"alpha": 0.09
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"label": {
|
|
53
|
+
"color": {
|
|
54
|
+
"foreground": {
|
|
55
|
+
"$type": "color",
|
|
56
|
+
"$value": {
|
|
57
|
+
"colorSpace": "srgb",
|
|
58
|
+
"components": [0.7098, 0.7176, 0.7412],
|
|
59
|
+
"hex": "#b5b7bd"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|