@uncinq/design-tokens 1.0.3 → 1.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.
Files changed (39) hide show
  1. package/README.md +6 -6
  2. package/dist/css/index.css +3 -10
  3. package/dist/css/primitive/blur.css +1 -1
  4. package/dist/css/primitive/color.css +60 -60
  5. package/dist/css/primitive/font.css +1 -1
  6. package/dist/css/primitive/shadow.css +1 -1
  7. package/dist/css/primitive/size.css +8 -2
  8. package/dist/css/primitive.css +6 -8
  9. package/dist/css/semantic/blur.css +1 -1
  10. package/dist/css/semantic/border.css +1 -1
  11. package/dist/css/semantic/color.css +1 -17
  12. package/dist/css/semantic/focus.css +1 -1
  13. package/dist/css/semantic/form.css +7 -9
  14. package/dist/css/semantic/grid.css +1 -1
  15. package/dist/css/semantic/icon.css +1 -1
  16. package/dist/css/semantic/motion.css +6 -6
  17. package/dist/css/semantic/opacity.css +1 -1
  18. package/dist/css/semantic/radius.css +1 -1
  19. package/dist/css/semantic/ratio.css +2 -1
  20. package/dist/css/semantic/shadow.css +1 -1
  21. package/dist/css/semantic/size.css +1 -1
  22. package/dist/css/semantic/spacing.css +1 -1
  23. package/dist/css/semantic/typography.css +1 -1
  24. package/dist/css/semantic/z-index.css +1 -1
  25. package/dist/css/semantic.css +17 -19
  26. package/dist/css/themes/dark.css +24 -0
  27. package/package.json +3 -2
  28. package/tokens/primitive/color.json +1471 -211
  29. package/tokens/primitive/size.json +28 -4
  30. package/tokens/semantic/border.json +1 -1
  31. package/tokens/semantic/color.json +11 -22
  32. package/tokens/semantic/focus.json +1 -1
  33. package/tokens/semantic/form.json +38 -17
  34. package/tokens/semantic/grid.json +1 -1
  35. package/tokens/semantic/motion.json +25 -25
  36. package/tokens/semantic/ratio.json +4 -0
  37. package/tokens/semantic/spacing.json +11 -11
  38. package/tokens/semantic/typography.json +16 -16
  39. package/tokens/themes/dark.json +70 -0
@@ -108,10 +108,18 @@
108
108
  "$value": "2rem",
109
109
  "$type": "dimension"
110
110
  },
111
+ "36": {
112
+ "$value": "2.25rem",
113
+ "$type": "dimension"
114
+ },
111
115
  "40": {
112
116
  "$value": "2.5rem",
113
117
  "$type": "dimension"
114
118
  },
119
+ "44": {
120
+ "$value": "2.75rem",
121
+ "$type": "dimension"
122
+ },
115
123
  "48": {
116
124
  "$value": "3rem",
117
125
  "$type": "dimension"
@@ -144,12 +152,12 @@
144
152
  "$value": "4.5rem",
145
153
  "$type": "dimension"
146
154
  },
147
- "80": {
148
- "$value": "5rem",
155
+ "76": {
156
+ "$value": "4.75rem",
149
157
  "$type": "dimension"
150
158
  },
151
- "88": {
152
- "$value": "5.5rem",
159
+ "80": {
160
+ "$value": "5rem",
153
161
  "$type": "dimension"
154
162
  },
155
163
  "96": {
@@ -160,10 +168,26 @@
160
168
  "$value": "6.25rem",
161
169
  "$type": "dimension"
162
170
  },
171
+ "112": {
172
+ "$value": "7rem",
173
+ "$type": "dimension"
174
+ },
175
+ "128": {
176
+ "$value": "8rem",
177
+ "$type": "dimension"
178
+ },
179
+ "144": {
180
+ "$value": "9rem",
181
+ "$type": "dimension"
182
+ },
163
183
  "150": {
164
184
  "$value": "9.375rem",
165
185
  "$type": "dimension"
166
186
  },
187
+ "160": {
188
+ "$value": "10rem",
189
+ "$type": "dimension"
190
+ },
167
191
  "768": {
168
192
  "$value": "48rem",
169
193
  "$type": "dimension"
@@ -3,7 +3,7 @@
3
3
  "style": {
4
4
  "normal": {
5
5
  "$value": "solid",
6
- "$type": "string"
6
+ "$type": "strokeStyle"
7
7
  }
8
8
  },
9
9
  "width": {
@@ -29,8 +29,7 @@
29
29
  "background": {
30
30
  "default": {
31
31
  "$value": "{color.white}",
32
- "$type": "color",
33
- "$mods": { "dark": "{color.gray.950}" }
32
+ "$type": "color"
34
33
  },
35
34
  "accent": {
36
35
  "$value": "{color.accent.default}",
@@ -42,19 +41,16 @@
42
41
  },
43
42
  "media": {
44
43
  "$value": "{color.gray.200}",
45
- "$type": "color",
46
- "$mods": { "dark": "{color.gray.800}" }
44
+ "$type": "color"
47
45
  },
48
46
  "muted": {
49
47
  "default": {
50
48
  "$value": "{color.gray.100}",
51
- "$type": "color",
52
- "$mods": { "dark": "{color.gray.900}" }
49
+ "$type": "color"
53
50
  },
54
51
  "hover": {
55
52
  "$value": "{color.gray.200}",
56
- "$type": "color",
57
- "$mods": { "dark": "{color.gray.800}" }
53
+ "$type": "color"
58
54
  }
59
55
  },
60
56
  "surface": {
@@ -65,8 +61,7 @@
65
61
  "border": {
66
62
  "default": {
67
63
  "$value": "{color.gray.200}",
68
- "$type": "color",
69
- "$mods": { "dark": "{color.gray.800}" }
64
+ "$type": "color"
70
65
  },
71
66
  "hover": {
72
67
  "$value": "{color.gray.500}",
@@ -137,8 +132,7 @@
137
132
  },
138
133
  "heading": {
139
134
  "$value": "{color.black}",
140
- "$type": "color",
141
- "$mods": { "dark": "{color.white}" }
135
+ "$type": "color"
142
136
  },
143
137
  "info": {
144
138
  "default": {
@@ -229,8 +223,7 @@
229
223
  "shadow": {
230
224
  "default": {
231
225
  "$value": "{color.black}",
232
- "$type": "color",
233
- "$mods": { "dark": "{color.white}" }
226
+ "$type": "color"
234
227
  },
235
228
  "normal": {
236
229
  "$value": "oklch(from {color.shadow.default} l c h / {opacity.shadow})",
@@ -258,23 +251,19 @@
258
251
  "text": {
259
252
  "default": {
260
253
  "$value": "{color.gray.900}",
261
- "$type": "color",
262
- "$mods": { "dark": "{color.gray.200}" }
254
+ "$type": "color"
263
255
  },
264
256
  "disabled": {
265
257
  "$value": "{color.gray.300}",
266
- "$type": "color",
267
- "$mods": { "dark": "{color.gray.600}" }
258
+ "$type": "color"
268
259
  },
269
260
  "hover": {
270
261
  "$value": "{color.gray.700}",
271
- "$type": "color",
272
- "$mods": { "dark": "{color.gray.300}" }
262
+ "$type": "color"
273
263
  },
274
264
  "muted": {
275
265
  "$value": "{color.gray.500}",
276
- "$type": "color",
277
- "$mods": { "dark": "{color.gray.400}" }
266
+ "$type": "color"
278
267
  },
279
268
  "onAccent": {
280
269
  "$value": "{color.white}",
@@ -13,7 +13,7 @@
13
13
  },
14
14
  "style": {
15
15
  "$value": "solid",
16
- "$type": "string"
16
+ "$type": "strokeStyle"
17
17
  },
18
18
  "width": {
19
19
  "$value": "1px",
@@ -12,13 +12,22 @@
12
12
  },
13
13
  "color": {
14
14
  "accent": {
15
- "$value": "{color.black}",
16
- "$type": "color"
15
+ "default": {
16
+ "$value": "{color.accent.default}",
17
+ "$type": "color"
18
+ },
19
+ "hover": {
20
+ "$value": "{color.accent.hover}",
21
+ "$type": "color"
22
+ },
23
+ "muted": {
24
+ "$value": "{color.accent.muted}",
25
+ "$type": "color"
26
+ }
17
27
  },
18
28
  "background": {
19
29
  "$value": "{color.white}",
20
- "$type": "color",
21
- "$mods": { "dark": "{color.gray.900}" }
30
+ "$type": "color"
22
31
  },
23
32
  "border": {
24
33
  "default": {
@@ -31,8 +40,14 @@
31
40
  }
32
41
  },
33
42
  "text": {
34
- "$value": "{color.text.default}",
35
- "$type": "color"
43
+ "default": {
44
+ "$value": "{color.text.default}",
45
+ "$type": "color"
46
+ },
47
+ "onAccent": {
48
+ "$value": "{color.text.onAccent}",
49
+ "$type": "color"
50
+ }
36
51
  }
37
52
  },
38
53
  "padding": {
@@ -90,7 +105,7 @@
90
105
  },
91
106
 
92
107
  "text": {
93
- "$value": "{form.color.text}",
108
+ "$value": "{form.color.text.default}",
94
109
  "$type": "color"
95
110
  }
96
111
  },
@@ -111,8 +126,14 @@
111
126
  },
112
127
 
113
128
  "padding": {
114
- "$value": "{size.8} {size.12}",
115
- "$type": "string"
129
+ "block": {
130
+ "$value": "{size.6}",
131
+ "$type": "dimension"
132
+ },
133
+ "inline": {
134
+ "$value": "{size.10}",
135
+ "$type": "dimension"
136
+ }
116
137
  }
117
138
  }
118
139
  },
@@ -153,7 +174,7 @@
153
174
  },
154
175
 
155
176
  "text": {
156
- "$value": "{form.color.text}",
177
+ "$value": "{form.color.text.default}",
157
178
  "$type": "color"
158
179
  }
159
180
  },
@@ -205,7 +226,7 @@
205
226
  },
206
227
 
207
228
  "text": {
208
- "$value": "{form.color.text}",
229
+ "$value": "{form.color.text.default}",
209
230
  "$type": "color"
210
231
  }
211
232
  },
@@ -234,7 +255,7 @@
234
255
  "label": {
235
256
  "color": {
236
257
  "text": {
237
- "$value": "{form.color.text}",
258
+ "$value": "{form.color.text.default}",
238
259
  "$type": "color"
239
260
  }
240
261
  },
@@ -262,7 +283,7 @@
262
283
 
263
284
  "textTransform": {
264
285
  "$value": "uppercase",
265
- "$type": "string"
286
+ "$type": "textCase"
266
287
  }
267
288
  },
268
289
 
@@ -292,7 +313,7 @@
292
313
 
293
314
  "checkable": {
294
315
  "color": {
295
- "$value": "{form.color.accent}",
316
+ "$value": "{form.color.accent.default}",
296
317
  "$type": "color"
297
318
  },
298
319
 
@@ -454,7 +475,7 @@
454
475
  },
455
476
 
456
477
  "color": {
457
- "$value": "{form.color.accent}",
478
+ "$value": "{form.color.accent.default}",
458
479
  "$type": "color"
459
480
  },
460
481
 
@@ -514,7 +535,7 @@
514
535
  "thumb": {
515
536
  "color": {
516
537
  "default": {
517
- "$value": "{form.color.accent}",
538
+ "$value": "{form.color.accent.default}",
518
539
  "$type": "color"
519
540
  },
520
541
  "checked": {
@@ -536,7 +557,7 @@
536
557
  "$type": "color"
537
558
  },
538
559
  "checked": {
539
- "$value": "{form.color.accent}",
560
+ "$value": "{form.color.accent.default}",
540
561
  "$type": "color"
541
562
  }
542
563
  }
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "gap": {
7
7
  "$value": "{spacing.md}",
8
- "$type": "string"
8
+ "$type": "dimension"
9
9
  },
10
10
  "span": {
11
11
  "full": {
@@ -14,41 +14,41 @@
14
14
  }
15
15
  },
16
16
  "easing": {
17
- "linear": {
18
- "$value": "linear",
19
- "$type": "string"
20
- },
21
17
  "default": {
22
- "$value": "ease-in-out",
23
- "$type": "string"
18
+ "$value": "{easing.inOut}",
19
+ "$type": "cubicBezier"
20
+ },
21
+ "linear": {
22
+ "$value": [0, 0, 1, 1],
23
+ "$type": "cubicBezier"
24
24
  },
25
25
  "in": {
26
- "$value": "ease-in",
27
- "$type": "string"
26
+ "$value": [0.42, 0, 1, 1],
27
+ "$type": "cubicBezier"
28
28
  },
29
29
  "out": {
30
- "$value": "ease-out",
31
- "$type": "string"
30
+ "$value": [0, 0, 0.58, 1],
31
+ "$type": "cubicBezier"
32
32
  },
33
- "out-circ": {
34
- "$value": "cubic-bezier(0, 0.55, 0.45, 1)",
35
- "$type": "string"
33
+ "inOut": {
34
+ "$value": [0.42, 0, 0.58, 1],
35
+ "$type": "cubicBezier"
36
36
  },
37
- "out-expo": {
38
- "$value": "cubic-bezier(0.16, 1, 0.3, 1)",
39
- "$type": "string"
37
+ "outCirc": {
38
+ "$value": [0, 0.55, 0.45, 1],
39
+ "$type": "cubicBezier"
40
40
  },
41
- "out-back": {
42
- "$value": "cubic-bezier(0.34, 1.56, 0.64, 1)",
43
- "$type": "string"
41
+ "outExpo": {
42
+ "$value": [0.16, 1, 0.3, 1],
43
+ "$type": "cubicBezier"
44
44
  },
45
- "bounce": {
46
- "$value": "cubic-bezier(0.165, 0.84, 0.44, 1)",
47
- "$type": "string"
45
+ "outBack": {
46
+ "$value": [0.34, 1.56, 0.64, 1],
47
+ "$type": "cubicBezier"
48
48
  },
49
- "spring": {
50
- "$value": "linear(0, 0.006, 0.025 2.8%, 0.101, 0.197, 0.325, 0.474, 0.638, 0.806, 0.962, 1.065, 1.12, 1.14, 1.12 30.9%, 1.034, 0.997, 0.986, 0.998, 1)",
51
- "$type": "string"
49
+ "bounce": {
50
+ "$value": [0.165, 0.84, 0.44, 1],
51
+ "$type": "cubicBezier"
52
52
  }
53
53
  },
54
54
  "transition": {
@@ -24,6 +24,10 @@
24
24
  "$type": "string",
25
25
  "$value": "5 / 4"
26
26
  },
27
+ "social": {
28
+ "$type": "string",
29
+ "$value": "4 / 5"
30
+ },
27
31
  "square": {
28
32
  "$type": "string",
29
33
  "$value": "1 / 1"
@@ -35,31 +35,31 @@
35
35
  "fluid": {
36
36
  "2xs": {
37
37
  "$value": "clamp(0.3125rem, 0.2232rem + 0.4464vw, 0.625rem)",
38
- "$type": "string"
38
+ "$type": "dimension"
39
39
  },
40
40
  "xs": {
41
41
  "$value": "clamp(0.625rem, 0.4464rem + 0.8929vw, 1.25rem)",
42
- "$type": "string"
42
+ "$type": "dimension"
43
43
  },
44
44
  "sm": {
45
45
  "$value": "clamp(1.25rem, 0.8929rem + 1.7857vw, 2.5rem)",
46
- "$type": "string"
46
+ "$type": "dimension"
47
47
  },
48
48
  "md": {
49
49
  "$value": "clamp(1.875rem, 1.3393rem + 2.6786vw, 3.75rem)",
50
- "$type": "string"
50
+ "$type": "dimension"
51
51
  },
52
52
  "lg": {
53
53
  "$value": "clamp(2.5rem, 1.7857rem + 3.5714vw, 5rem)",
54
- "$type": "string"
54
+ "$type": "dimension"
55
55
  },
56
56
  "xl": {
57
57
  "$value": "clamp(3.125rem, 2.2321rem + 4.4643vw, 6.25rem)",
58
- "$type": "string"
58
+ "$type": "dimension"
59
59
  },
60
60
  "2xl": {
61
61
  "$value": "clamp(3.75rem, 2.6786rem + 5.3571vw, 7.5rem)",
62
- "$type": "string"
62
+ "$type": "dimension"
63
63
  }
64
64
  },
65
65
  "card": {
@@ -72,19 +72,19 @@
72
72
  },
73
73
  "heading": {
74
74
  "$value": "{spacing.fluid.sm}",
75
- "$type": "string"
75
+ "$type": "dimension"
76
76
  },
77
77
  "section": {
78
78
  "$value": "{spacing.fluid.2xl}",
79
- "$type": "string"
79
+ "$type": "dimension"
80
80
  },
81
81
  "surface": {
82
82
  "$value": "{spacing.fluid.sm}",
83
- "$type": "string"
83
+ "$type": "dimension"
84
84
  },
85
85
  "typography": {
86
86
  "$value": "{spacing.fluid.xs}",
87
- "$type": "string"
87
+ "$type": "dimension"
88
88
  }
89
89
  }
90
90
  }
@@ -48,70 +48,70 @@
48
48
  },
49
49
  "fluid": {
50
50
  "2xs": {
51
- "$type": "string",
51
+ "$type": "dimension",
52
52
  "$value": "clamp(0.625rem, 0.5893rem + 0.1786vw, 0.75rem)"
53
53
  },
54
54
  "xs": {
55
- "$type": "string",
55
+ "$type": "dimension",
56
56
  "$value": "clamp(0.75rem, 0.7143rem + 0.1786vw, 0.875rem)"
57
57
  },
58
58
  "sm": {
59
- "$type": "string",
59
+ "$type": "dimension",
60
60
  "$value": "clamp(0.875rem, 0.8393rem + 0.1786vw, 1rem)"
61
61
  },
62
62
  "md": {
63
- "$type": "string",
63
+ "$type": "dimension",
64
64
  "$value": "clamp(1rem, 0.9643rem + 0.1786vw, 1.125rem)"
65
65
  },
66
66
  "lg": {
67
- "$type": "string",
67
+ "$type": "dimension",
68
68
  "$value": "clamp(1.125rem, 1.0179rem + 0.5357vw, 1.5rem)"
69
69
  },
70
70
  "xl": {
71
- "$type": "string",
71
+ "$type": "dimension",
72
72
  "$value": "clamp(1.5rem, 1.0714rem + 2.1429vw, 3rem)"
73
73
  },
74
74
  "2xl": {
75
- "$type": "string",
75
+ "$type": "dimension",
76
76
  "$value": "clamp(3rem, 2.7143rem + 1.4286vw, 4rem)"
77
77
  },
78
78
  "display": {
79
- "$type": "string",
79
+ "$type": "dimension",
80
80
  "$value": "clamp(4rem, 3.4286rem + 2.8571vw, 6rem)"
81
81
  }
82
82
  },
83
83
  "heading": {
84
84
  "01": {
85
- "$type": "string",
85
+ "$type": "dimension",
86
86
  "$value": "{fontSize.fluid.xl}"
87
87
  },
88
88
  "02": {
89
- "$type": "string",
89
+ "$type": "dimension",
90
90
  "$value": "{fontSize.fluid.lg}"
91
91
  },
92
92
  "03": {
93
- "$type": "string",
93
+ "$type": "dimension",
94
94
  "$value": "{fontSize.fluid.md}"
95
95
  },
96
96
  "04": {
97
- "$type": "string",
97
+ "$type": "dimension",
98
98
  "$value": "{fontSize.fluid.sm}"
99
99
  },
100
100
  "05": {
101
- "$type": "string",
101
+ "$type": "dimension",
102
102
  "$value": "{fontSize.fluid.sm}"
103
103
  },
104
104
  "06": {
105
- "$type": "string",
105
+ "$type": "dimension",
106
106
  "$value": "{fontSize.fluid.sm}"
107
107
  }
108
108
  },
109
109
  "small": {
110
- "$type": "string",
110
+ "$type": "dimension",
111
111
  "$value": "{fontSize.fluid.sm}"
112
112
  },
113
113
  "text": {
114
- "$type": "string",
114
+ "$type": "dimension",
115
115
  "$value": "{fontSize.fluid.md}"
116
116
  }
117
117
  },
@@ -0,0 +1,70 @@
1
+ {
2
+ "color": {
3
+ "background": {
4
+ "default": {
5
+ "$value": "{color.gray.950}",
6
+ "$type": "color"
7
+ },
8
+ "disabled": {
9
+ "$value": "{color.gray.900}",
10
+ "$type": "color"
11
+ },
12
+ "media": {
13
+ "$value": "{color.gray.800}",
14
+ "$type": "color"
15
+ },
16
+ "muted": {
17
+ "default": {
18
+ "$value": "{color.gray.900}",
19
+ "$type": "color"
20
+ },
21
+ "hover": {
22
+ "$value": "{color.gray.800}",
23
+ "$type": "color"
24
+ }
25
+ }
26
+ },
27
+ "border": {
28
+ "default": {
29
+ "$value": "{color.gray.800}",
30
+ "$type": "color"
31
+ }
32
+ },
33
+ "heading": {
34
+ "$value": "{color.white}",
35
+ "$type": "color"
36
+ },
37
+ "shadow": {
38
+ "default": {
39
+ "$value": "{color.white}",
40
+ "$type": "color"
41
+ }
42
+ },
43
+ "text": {
44
+ "default": {
45
+ "$value": "{color.gray.200}",
46
+ "$type": "color"
47
+ },
48
+ "disabled": {
49
+ "$value": "{color.gray.600}",
50
+ "$type": "color"
51
+ },
52
+ "hover": {
53
+ "$value": "{color.gray.300}",
54
+ "$type": "color"
55
+ },
56
+ "muted": {
57
+ "$value": "{color.gray.400}",
58
+ "$type": "color"
59
+ }
60
+ }
61
+ },
62
+ "form": {
63
+ "color": {
64
+ "background": {
65
+ "$value": "{color.gray.900}",
66
+ "$type": "color"
67
+ }
68
+ }
69
+ }
70
+ }