@swell/swell-ui 0.0.0-stage → 0.1.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/CHANGELOG.md +16 -0
- package/README.md +165 -2
- package/package.json +135 -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,232 @@
|
|
|
1
|
+
{
|
|
2
|
+
"button": {
|
|
3
|
+
"$description": "Buttons. The appearance lays the palette out: filled uses background, border and foreground; outline uses border and accent; plain uses accent.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"size": ["xsmall", "small", "large", "xlarge"]
|
|
8
|
+
},
|
|
9
|
+
"settings": {
|
|
10
|
+
"appearance": {
|
|
11
|
+
"description": "How primary buttons are drawn when the element has no appearance attribute.",
|
|
12
|
+
"values": ["filled", "outline", "plain"],
|
|
13
|
+
"default": "filled"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"variants": true,
|
|
17
|
+
"states": ["hover"]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"height": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{control.height}",
|
|
23
|
+
"$description": "Height of medium buttons."
|
|
24
|
+
},
|
|
25
|
+
"font": {
|
|
26
|
+
"size": {
|
|
27
|
+
"$type": "dimension",
|
|
28
|
+
"$value": "{control.font.size}",
|
|
29
|
+
"$description": "Font size of medium buttons."
|
|
30
|
+
},
|
|
31
|
+
"tracking": {
|
|
32
|
+
"$type": "number",
|
|
33
|
+
"$value": "{font.tracking}",
|
|
34
|
+
"$description": "Letter spacing of buttons, in em.",
|
|
35
|
+
"$extensions": {
|
|
36
|
+
"is.swell.ui": {
|
|
37
|
+
"unit": "em"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"weight": {
|
|
42
|
+
"$type": "fontWeight",
|
|
43
|
+
"$value": 650,
|
|
44
|
+
"$description": "Font weight of button labels."
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"xsmall": {
|
|
48
|
+
"height": {
|
|
49
|
+
"$type": "dimension",
|
|
50
|
+
"$value": "{control.xsmall.height}",
|
|
51
|
+
"$description": "Height of extra small buttons."
|
|
52
|
+
},
|
|
53
|
+
"font": {
|
|
54
|
+
"size": {
|
|
55
|
+
"$type": "dimension",
|
|
56
|
+
"$value": "{control.xsmall.font.size}",
|
|
57
|
+
"$description": "Font size of extra small buttons."
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"small": {
|
|
62
|
+
"height": {
|
|
63
|
+
"$type": "dimension",
|
|
64
|
+
"$value": "{control.small.height}",
|
|
65
|
+
"$description": "Height of small buttons."
|
|
66
|
+
},
|
|
67
|
+
"font": {
|
|
68
|
+
"size": {
|
|
69
|
+
"$type": "dimension",
|
|
70
|
+
"$value": "{control.small.font.size}",
|
|
71
|
+
"$description": "Font size of small buttons."
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"large": {
|
|
76
|
+
"height": {
|
|
77
|
+
"$type": "dimension",
|
|
78
|
+
"$value": "{control.large.height}",
|
|
79
|
+
"$description": "Height of large buttons."
|
|
80
|
+
},
|
|
81
|
+
"font": {
|
|
82
|
+
"size": {
|
|
83
|
+
"$type": "dimension",
|
|
84
|
+
"$value": "{control.large.font.size}",
|
|
85
|
+
"$description": "Font size of large buttons."
|
|
86
|
+
},
|
|
87
|
+
"tracking": {
|
|
88
|
+
"$type": "number",
|
|
89
|
+
"$value": -0.01,
|
|
90
|
+
"$description": "Letter spacing of large buttons, in em.",
|
|
91
|
+
"$extensions": {
|
|
92
|
+
"is.swell.ui": {
|
|
93
|
+
"unit": "em"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"xlarge": {
|
|
100
|
+
"height": {
|
|
101
|
+
"$type": "dimension",
|
|
102
|
+
"$value": "{control.xlarge.height}",
|
|
103
|
+
"$description": "Height of extra large buttons."
|
|
104
|
+
},
|
|
105
|
+
"font": {
|
|
106
|
+
"size": {
|
|
107
|
+
"$type": "dimension",
|
|
108
|
+
"$value": "{control.xlarge.font.size}",
|
|
109
|
+
"$description": "Font size of extra large buttons."
|
|
110
|
+
},
|
|
111
|
+
"tracking": {
|
|
112
|
+
"$type": "number",
|
|
113
|
+
"$value": -0.01,
|
|
114
|
+
"$description": "Letter spacing of extra large buttons, in em.",
|
|
115
|
+
"$extensions": {
|
|
116
|
+
"is.swell.ui": {
|
|
117
|
+
"unit": "em"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"border": {
|
|
124
|
+
"radius": {
|
|
125
|
+
"$type": "dimension",
|
|
126
|
+
"$value": "{border.radius}",
|
|
127
|
+
"$description": "Corner radius of buttons."
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"color": {
|
|
131
|
+
"accent": {
|
|
132
|
+
"$type": "color",
|
|
133
|
+
"$value": "{color.accent}",
|
|
134
|
+
"$description": "Text and border of outline and plain primary buttons."
|
|
135
|
+
},
|
|
136
|
+
"background": {
|
|
137
|
+
"$type": "color",
|
|
138
|
+
"$value": "{button.color.accent}",
|
|
139
|
+
"$description": "Fill of filled primary buttons."
|
|
140
|
+
},
|
|
141
|
+
"foreground": {
|
|
142
|
+
"$type": "color",
|
|
143
|
+
"$value": "{color.background}",
|
|
144
|
+
"$description": "Text of filled primary buttons."
|
|
145
|
+
},
|
|
146
|
+
"border": {
|
|
147
|
+
"$type": "color",
|
|
148
|
+
"$value": "{button.color.accent}",
|
|
149
|
+
"$description": "Border of filled and outline primary buttons."
|
|
150
|
+
},
|
|
151
|
+
"shadow": {
|
|
152
|
+
"$type": "color",
|
|
153
|
+
"$value": {
|
|
154
|
+
"colorSpace": "srgb",
|
|
155
|
+
"components": [0.2275, 0.4, 0.9608],
|
|
156
|
+
"hex": "#3a66f5",
|
|
157
|
+
"alpha": 0.6
|
|
158
|
+
},
|
|
159
|
+
"$description": "Color of the shadow of filled buttons."
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"secondary": {
|
|
163
|
+
"$extensions": {
|
|
164
|
+
"is.swell.ui": {
|
|
165
|
+
"settings": {
|
|
166
|
+
"appearance": {
|
|
167
|
+
"description": "How secondary buttons are drawn when the element has no appearance attribute.",
|
|
168
|
+
"values": ["filled", "outline", "plain"],
|
|
169
|
+
"default": "outline"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"shadow": {
|
|
176
|
+
"$type": "shadow",
|
|
177
|
+
"$value": {
|
|
178
|
+
"color": "{button.color.shadow}",
|
|
179
|
+
"offsetX": {
|
|
180
|
+
"value": 0,
|
|
181
|
+
"unit": "px"
|
|
182
|
+
},
|
|
183
|
+
"offsetY": {
|
|
184
|
+
"value": 12,
|
|
185
|
+
"unit": "px"
|
|
186
|
+
},
|
|
187
|
+
"blur": {
|
|
188
|
+
"value": 24,
|
|
189
|
+
"unit": "px"
|
|
190
|
+
},
|
|
191
|
+
"spread": {
|
|
192
|
+
"value": -16,
|
|
193
|
+
"unit": "px"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"$description": "Shadow of a filled button, in button.color.shadow; a successful button casts it in color.success."
|
|
197
|
+
},
|
|
198
|
+
"hover": {
|
|
199
|
+
"shadow": {
|
|
200
|
+
"$type": "shadow",
|
|
201
|
+
"$value": {
|
|
202
|
+
"color": "{button.color.shadow}",
|
|
203
|
+
"offsetX": {
|
|
204
|
+
"value": 0,
|
|
205
|
+
"unit": "px"
|
|
206
|
+
},
|
|
207
|
+
"offsetY": {
|
|
208
|
+
"value": 16,
|
|
209
|
+
"unit": "px"
|
|
210
|
+
},
|
|
211
|
+
"blur": {
|
|
212
|
+
"value": 30,
|
|
213
|
+
"unit": "px"
|
|
214
|
+
},
|
|
215
|
+
"spread": {
|
|
216
|
+
"value": -16,
|
|
217
|
+
"unit": "px"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"$description": "Shadow of a filled button under the pointer, in button.color.shadow."
|
|
221
|
+
},
|
|
222
|
+
"offset": {
|
|
223
|
+
"$type": "dimension",
|
|
224
|
+
"$value": {
|
|
225
|
+
"value": -1,
|
|
226
|
+
"unit": "px"
|
|
227
|
+
},
|
|
228
|
+
"$description": "How far a button rises under the pointer; 0 keeps it in place."
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"card": {
|
|
3
|
+
"$description": "Cards: boxes that group content. Outline takes the background and a border; filled takes the quiet background without a border.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"settings": {
|
|
7
|
+
"appearance": {
|
|
8
|
+
"description": "How cards are drawn when the element has no appearance attribute.",
|
|
9
|
+
"values": ["outline", "filled"],
|
|
10
|
+
"default": "outline"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"border": {
|
|
16
|
+
"radius": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{border.radius}",
|
|
19
|
+
"$description": "Corner radius of cards."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"color": {
|
|
23
|
+
"background": {
|
|
24
|
+
"$type": "color",
|
|
25
|
+
"$value": "{color.background}",
|
|
26
|
+
"$description": "Background of outline cards."
|
|
27
|
+
},
|
|
28
|
+
"border": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": "{color.border}",
|
|
31
|
+
"$description": "Border of outline cards."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"checkbox": {
|
|
3
|
+
"$description": "Checkboxes. Their colors come from field and color.",
|
|
4
|
+
"border": {
|
|
5
|
+
"radius": {
|
|
6
|
+
"$type": "dimension",
|
|
7
|
+
"$value": {
|
|
8
|
+
"value": 3,
|
|
9
|
+
"unit": "px"
|
|
10
|
+
},
|
|
11
|
+
"$description": "Corner radius of checkboxes."
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{
|
|
2
|
+
"chip": {
|
|
3
|
+
"$description": "Chips: a short value the shopper can remove, such as an applied discount code. A chip draws its background, border and text, and its remove button in the accent.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"attributes": {
|
|
7
|
+
"size": ["xsmall", "small", "large", "xlarge"]
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"height": {
|
|
12
|
+
"$type": "dimension",
|
|
13
|
+
"$value": {
|
|
14
|
+
"value": 32,
|
|
15
|
+
"unit": "px"
|
|
16
|
+
},
|
|
17
|
+
"$description": "Height of medium chips."
|
|
18
|
+
},
|
|
19
|
+
"font": {
|
|
20
|
+
"size": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{font.caption.size}",
|
|
23
|
+
"$description": "Font size of medium chips."
|
|
24
|
+
},
|
|
25
|
+
"weight": {
|
|
26
|
+
"$type": "fontWeight",
|
|
27
|
+
"$value": "{font.bold.weight}",
|
|
28
|
+
"$description": "Font weight of chips."
|
|
29
|
+
},
|
|
30
|
+
"tracking": {
|
|
31
|
+
"$type": "number",
|
|
32
|
+
"$value": 0.03,
|
|
33
|
+
"$description": "Letter spacing of chips, in em.",
|
|
34
|
+
"$extensions": {
|
|
35
|
+
"is.swell.ui": {
|
|
36
|
+
"unit": "em"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"xsmall": {
|
|
42
|
+
"height": {
|
|
43
|
+
"$type": "dimension",
|
|
44
|
+
"$value": {
|
|
45
|
+
"value": 24,
|
|
46
|
+
"unit": "px"
|
|
47
|
+
},
|
|
48
|
+
"$description": "Height of extra small chips."
|
|
49
|
+
},
|
|
50
|
+
"font": {
|
|
51
|
+
"size": {
|
|
52
|
+
"$type": "dimension",
|
|
53
|
+
"$value": {
|
|
54
|
+
"value": 11,
|
|
55
|
+
"unit": "px"
|
|
56
|
+
},
|
|
57
|
+
"$description": "Font size of extra small chips."
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"small": {
|
|
62
|
+
"height": {
|
|
63
|
+
"$type": "dimension",
|
|
64
|
+
"$value": {
|
|
65
|
+
"value": 28,
|
|
66
|
+
"unit": "px"
|
|
67
|
+
},
|
|
68
|
+
"$description": "Height of small chips."
|
|
69
|
+
},
|
|
70
|
+
"font": {
|
|
71
|
+
"size": {
|
|
72
|
+
"$type": "dimension",
|
|
73
|
+
"$value": {
|
|
74
|
+
"value": 12,
|
|
75
|
+
"unit": "px"
|
|
76
|
+
},
|
|
77
|
+
"$description": "Font size of small chips."
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"large": {
|
|
82
|
+
"height": {
|
|
83
|
+
"$type": "dimension",
|
|
84
|
+
"$value": {
|
|
85
|
+
"value": 36,
|
|
86
|
+
"unit": "px"
|
|
87
|
+
},
|
|
88
|
+
"$description": "Height of large chips."
|
|
89
|
+
},
|
|
90
|
+
"font": {
|
|
91
|
+
"size": {
|
|
92
|
+
"$type": "dimension",
|
|
93
|
+
"$value": {
|
|
94
|
+
"value": 14,
|
|
95
|
+
"unit": "px"
|
|
96
|
+
},
|
|
97
|
+
"$description": "Font size of large chips."
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"xlarge": {
|
|
102
|
+
"height": {
|
|
103
|
+
"$type": "dimension",
|
|
104
|
+
"$value": {
|
|
105
|
+
"value": 40,
|
|
106
|
+
"unit": "px"
|
|
107
|
+
},
|
|
108
|
+
"$description": "Height of extra large chips."
|
|
109
|
+
},
|
|
110
|
+
"font": {
|
|
111
|
+
"size": {
|
|
112
|
+
"$type": "dimension",
|
|
113
|
+
"$value": {
|
|
114
|
+
"value": 16,
|
|
115
|
+
"unit": "px"
|
|
116
|
+
},
|
|
117
|
+
"$description": "Font size of extra large chips."
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"color": {
|
|
122
|
+
"background": {
|
|
123
|
+
"$type": "color",
|
|
124
|
+
"$value": "{color.background}",
|
|
125
|
+
"$description": "Fill of chips."
|
|
126
|
+
},
|
|
127
|
+
"foreground": {
|
|
128
|
+
"$type": "color",
|
|
129
|
+
"$value": "{color.foreground}",
|
|
130
|
+
"$description": "Text of chips."
|
|
131
|
+
},
|
|
132
|
+
"border": {
|
|
133
|
+
"$type": "color",
|
|
134
|
+
"$value": "{color.border}",
|
|
135
|
+
"$description": "Border of chips."
|
|
136
|
+
},
|
|
137
|
+
"accent": {
|
|
138
|
+
"$type": "color",
|
|
139
|
+
"$value": "{color.secondary.foreground}",
|
|
140
|
+
"$description": "The remove button of chips."
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"link": {
|
|
3
|
+
"$description": "Links: underlined in text, and plain ones on their own.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"variants": true
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
"font": {
|
|
10
|
+
"weight": {
|
|
11
|
+
"$type": "fontWeight",
|
|
12
|
+
"$value": "{font.strong.weight}",
|
|
13
|
+
"$description": "Font weight of plain links."
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"color": {
|
|
17
|
+
"accent": {
|
|
18
|
+
"$type": "color",
|
|
19
|
+
"$value": "{color.accent}",
|
|
20
|
+
"$description": "Color of links."
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"radio": {
|
|
3
|
+
"$description": "Dark theme values of radio.",
|
|
4
|
+
"checked": {
|
|
5
|
+
"color": {
|
|
6
|
+
"background": {
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$value": {
|
|
9
|
+
"colorSpace": "srgb",
|
|
10
|
+
"components": [0.098, 0.1216, 0.1765],
|
|
11
|
+
"hex": "#191f2d"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"radio": {
|
|
3
|
+
"$description": "Radio groups and their options. The appearance lays the options out: plain draws the circle and the label; outline puts each option in a frame with the background, border and radius below; segmented, set with the attribute only, puts the options on a track and marks the chosen one with a marker in that background, rounded by border.radius; button, set with the attribute only, draws each option as a button in that background and a 1px border, rounded by border.radius.",
|
|
4
|
+
"$extensions": {
|
|
5
|
+
"is.swell.ui": {
|
|
6
|
+
"settings": {
|
|
7
|
+
"appearance": {
|
|
8
|
+
"description": "How the options of a radio group are drawn when the group has no appearance attribute: plain (the circle and the label) or outline (each option in a frame). Segmented and button are set on a group with its attribute only.",
|
|
9
|
+
"values": ["plain", "outline"],
|
|
10
|
+
"default": "plain"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"states": ["checked"]
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"border": {
|
|
17
|
+
"radius": {
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"$value": "{border.radius}",
|
|
20
|
+
"$description": "Corner radius of outline options and of skeleton cards."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"color": {
|
|
24
|
+
"background": {
|
|
25
|
+
"$type": "color",
|
|
26
|
+
"$value": "{color.background}",
|
|
27
|
+
"$description": "Background of outline and button options and of the marker of a segmented group."
|
|
28
|
+
},
|
|
29
|
+
"border": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": "{color.border}",
|
|
32
|
+
"$description": "Border of outline and button options; decorative: the circle of an outline option and the label of a button option mark the control."
|
|
33
|
+
},
|
|
34
|
+
"shadow": {
|
|
35
|
+
"$type": "color",
|
|
36
|
+
"$value": {
|
|
37
|
+
"colorSpace": "srgb",
|
|
38
|
+
"components": [0, 0, 0],
|
|
39
|
+
"hex": "#000000",
|
|
40
|
+
"alpha": 0.1
|
|
41
|
+
},
|
|
42
|
+
"$description": "Color of the shadow of the marker of a segmented group."
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"indicator": {
|
|
46
|
+
"$description": "The circle that marks the chosen option.",
|
|
47
|
+
"$extensions": {
|
|
48
|
+
"is.swell.ui": {
|
|
49
|
+
"settings": {
|
|
50
|
+
"position": {
|
|
51
|
+
"description": "Where the circle sits in the row of an option: at the start or at the end.",
|
|
52
|
+
"values": ["start", "end"],
|
|
53
|
+
"default": "start"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"checked": {
|
|
60
|
+
"color": {
|
|
61
|
+
"background": {
|
|
62
|
+
"$type": "color",
|
|
63
|
+
"$value": {
|
|
64
|
+
"colorSpace": "srgb",
|
|
65
|
+
"components": [0.9451, 0.9569, 0.9961],
|
|
66
|
+
"hex": "#f1f4fe"
|
|
67
|
+
},
|
|
68
|
+
"$description": "Fill of the chosen option of a group drawn as buttons."
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"shadow": {
|
|
73
|
+
"$type": "shadow",
|
|
74
|
+
"$value": {
|
|
75
|
+
"color": "{radio.color.shadow}",
|
|
76
|
+
"offsetX": {
|
|
77
|
+
"value": 0,
|
|
78
|
+
"unit": "px"
|
|
79
|
+
},
|
|
80
|
+
"offsetY": {
|
|
81
|
+
"value": 1,
|
|
82
|
+
"unit": "px"
|
|
83
|
+
},
|
|
84
|
+
"blur": {
|
|
85
|
+
"value": 3,
|
|
86
|
+
"unit": "px"
|
|
87
|
+
},
|
|
88
|
+
"spread": {
|
|
89
|
+
"value": 0,
|
|
90
|
+
"unit": "px"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"$description": "Shadow of the marker under the chosen option of a segmented group, in radio.color.shadow."
|
|
94
|
+
},
|
|
95
|
+
"gap": {
|
|
96
|
+
"$type": "dimension",
|
|
97
|
+
"$value": {
|
|
98
|
+
"value": 8,
|
|
99
|
+
"unit": "px"
|
|
100
|
+
},
|
|
101
|
+
"$description": "Space between the options of a radio group."
|
|
102
|
+
},
|
|
103
|
+
"button": {
|
|
104
|
+
"gap": {
|
|
105
|
+
"$type": "dimension",
|
|
106
|
+
"$value": {
|
|
107
|
+
"value": 6,
|
|
108
|
+
"unit": "px"
|
|
109
|
+
},
|
|
110
|
+
"$description": "Space between the options of a radio group drawn as buttons."
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": {
|
|
3
|
+
"$description": "Dark theme values of status.",
|
|
4
|
+
"danger": {
|
|
5
|
+
"color": {
|
|
6
|
+
"background": {
|
|
7
|
+
"$type": "color",
|
|
8
|
+
"$value": {
|
|
9
|
+
"colorSpace": "srgb",
|
|
10
|
+
"components": [0.949, 0.3333, 0.3529],
|
|
11
|
+
"hex": "#f2555a",
|
|
12
|
+
"alpha": 0.09
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"border": {
|
|
16
|
+
"$type": "color",
|
|
17
|
+
"$value": {
|
|
18
|
+
"colorSpace": "srgb",
|
|
19
|
+
"components": [0.949, 0.3333, 0.3529],
|
|
20
|
+
"hex": "#f2555a",
|
|
21
|
+
"alpha": 0.35
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"success": {
|
|
27
|
+
"color": {
|
|
28
|
+
"background": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": {
|
|
31
|
+
"colorSpace": "srgb",
|
|
32
|
+
"components": [0.2431, 0.8118, 0.5569],
|
|
33
|
+
"hex": "#3ecf8e",
|
|
34
|
+
"alpha": 0.09
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"border": {
|
|
38
|
+
"$type": "color",
|
|
39
|
+
"$value": {
|
|
40
|
+
"colorSpace": "srgb",
|
|
41
|
+
"components": [0.2431, 0.8118, 0.5569],
|
|
42
|
+
"hex": "#3ecf8e",
|
|
43
|
+
"alpha": 0.35
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"warning": {
|
|
49
|
+
"color": {
|
|
50
|
+
"background": {
|
|
51
|
+
"$type": "color",
|
|
52
|
+
"$value": {
|
|
53
|
+
"colorSpace": "srgb",
|
|
54
|
+
"components": [0.9412, 0.6667, 0.2353],
|
|
55
|
+
"hex": "#f0aa3c",
|
|
56
|
+
"alpha": 0.09
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"border": {
|
|
60
|
+
"$type": "color",
|
|
61
|
+
"$value": {
|
|
62
|
+
"colorSpace": "srgb",
|
|
63
|
+
"components": [0.9412, 0.6667, 0.2353],
|
|
64
|
+
"hex": "#f0aa3c",
|
|
65
|
+
"alpha": 0.35
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|