@grantcodes/style-dictionary 1.2.1 → 1.3.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 (70) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/css/grantcodes/grantcodes.css +367 -0
  3. package/dist/css/grantcodes/tokens.css +367 -0
  4. package/dist/css/todomap/todomap.css +200 -0
  5. package/dist/css/todomap/tokens.css +200 -0
  6. package/dist/css/wireframe/tokens.css +426 -0
  7. package/dist/css/wireframe/wireframe.css +426 -0
  8. package/dist/js/grantcodes/style-dictionary.d.ts +361 -0
  9. package/dist/js/grantcodes/style-dictionary.js +386 -0
  10. package/dist/js/todomap/style-dictionary.d.ts +202 -0
  11. package/dist/js/todomap/style-dictionary.js +220 -0
  12. package/dist/js/wireframe/style-dictionary.d.ts +414 -0
  13. package/dist/js/wireframe/style-dictionary.js +427 -0
  14. package/dist/json/grantcodes/tokens.json +351 -0
  15. package/dist/json/todomap/tokens.json +200 -0
  16. package/dist/json/wireframe/tokens.json +404 -0
  17. package/package.json +66 -61
  18. package/.turbo/turbo-build.log +0 -45
  19. package/biome.json +0 -9
  20. package/build.js +0 -10
  21. package/config.js +0 -485
  22. package/demo.html +0 -171
  23. package/lib/color-generator.js +0 -13
  24. package/lib/get-style-dictionary-config.js +0 -223
  25. package/lib/get-themes.js +0 -10
  26. package/lib/index.js +0 -3
  27. package/tests/tokens.test.js +0 -87
  28. package/tokens/core/tier-1-definitions/colors.json +0 -175
  29. package/tokens/core/tier-1-definitions/z-index.json +0 -29
  30. package/tokens/grantcodes/tier-1-definitions/animation.json +0 -27
  31. package/tokens/grantcodes/tier-1-definitions/borders.json +0 -36
  32. package/tokens/grantcodes/tier-1-definitions/colors.json +0 -35
  33. package/tokens/grantcodes/tier-1-definitions/shadows.json +0 -39
  34. package/tokens/grantcodes/tier-1-definitions/typography.json +0 -133
  35. package/tokens/grantcodes/tier-2-usage/00-colors-background.json +0 -72
  36. package/tokens/grantcodes/tier-2-usage/00-colors-border.json +0 -42
  37. package/tokens/grantcodes/tier-2-usage/00-colors-content.json +0 -45
  38. package/tokens/grantcodes/tier-2-usage/animation.json +0 -23
  39. package/tokens/grantcodes/tier-2-usage/borders.json +0 -26
  40. package/tokens/grantcodes/tier-2-usage/shadows.json +0 -39
  41. package/tokens/grantcodes/tier-2-usage/typography-usage.json +0 -277
  42. package/tokens/grantcodes/tier-3-components/button.json +0 -94
  43. package/tokens/grantcodes/tier-3-components/focus-ring.json +0 -26
  44. package/tokens/grantcodes/tier-3-components/form.json +0 -69
  45. package/tokens/grantcodes/tier-3-components/link.json +0 -39
  46. package/tokens/todomap/tier-1-definitions/colors.json +0 -92
  47. package/tokens/todomap/tier-1-definitions/typography.json +0 -10
  48. package/tokens/todomap/tier-2-usage/00-colors-background.json +0 -36
  49. package/tokens/todomap/tier-2-usage/00-colors-content.json +0 -33
  50. package/tokens/todomap/tier-2-usage/typography-usage.json +0 -20
  51. package/tokens/todomap/tier-3-components/button.json +0 -141
  52. package/tokens/todomap/tier-3-components/focus-ring.json +0 -26
  53. package/tokens/todomap/tier-3-components/form.json +0 -69
  54. package/tokens/todomap/tier-3-components/link.json +0 -39
  55. package/tokens/wireframe/tier-1-definitions/animation.json +0 -18
  56. package/tokens/wireframe/tier-1-definitions/borders.json +0 -42
  57. package/tokens/wireframe/tier-1-definitions/colors.json +0 -36
  58. package/tokens/wireframe/tier-1-definitions/shadows.json +0 -39
  59. package/tokens/wireframe/tier-1-definitions/typography.json +0 -130
  60. package/tokens/wireframe/tier-2-usage/00-colors-background.json +0 -86
  61. package/tokens/wireframe/tier-2-usage/00-colors-border.json +0 -42
  62. package/tokens/wireframe/tier-2-usage/00-colors-content.json +0 -45
  63. package/tokens/wireframe/tier-2-usage/animation.json +0 -24
  64. package/tokens/wireframe/tier-2-usage/borders.json +0 -33
  65. package/tokens/wireframe/tier-2-usage/shadows.json +0 -39
  66. package/tokens/wireframe/tier-2-usage/typography-usage.json +0 -445
  67. package/tokens/wireframe/tier-3-components/button.json +0 -94
  68. package/tokens/wireframe/tier-3-components/focus-ring.json +0 -26
  69. package/tokens/wireframe/tier-3-components/form.json +0 -69
  70. package/tokens/wireframe/tier-3-components/link.json +0 -39
@@ -1,133 +0,0 @@
1
- {
2
- "typography": {
3
- "font-family": {
4
- "system": {
5
- "value": "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif"
6
- },
7
- "greycliff": {
8
- "value": "Greycliff, {typography.font-family.system}"
9
- }
10
- },
11
- "font-weight": {
12
- "400": {
13
- "value": "400"
14
- },
15
- "600": {
16
- "value": "600"
17
- },
18
- "700": {
19
- "value": "700"
20
- }
21
- },
22
- "font-size": {
23
- "12": {
24
- "value": "12px"
25
- },
26
- "14": {
27
- "value": "14px"
28
- },
29
- "16": {
30
- "value": "16px"
31
- },
32
- "18": {
33
- "value": "18px"
34
- },
35
- "20": {
36
- "value": "20px"
37
- },
38
- "24": {
39
- "value": "24px"
40
- },
41
- "28": {
42
- "value": "28px"
43
- },
44
- "32": {
45
- "value": "32px"
46
- },
47
- "40": {
48
- "value": "40px"
49
- },
50
- "48": {
51
- "value": "48px"
52
- },
53
- "56": {
54
- "value": "56px"
55
- },
56
- "64": {
57
- "value": "64px"
58
- },
59
- "100": {
60
- "value": "100px"
61
- }
62
- },
63
- "line-height": {
64
- "16": {
65
- "value": "16px"
66
- },
67
- "20": {
68
- "value": "20px"
69
- },
70
- "24": {
71
- "value": "24px"
72
- },
73
- "28": {
74
- "value": "28px"
75
- },
76
- "32": {
77
- "value": "32px"
78
- },
79
- "36": {
80
- "value": "36px"
81
- },
82
- "40": {
83
- "value": "40px"
84
- },
85
- "48": {
86
- "value": "48px"
87
- },
88
- "56": {
89
- "value": "56px"
90
- },
91
- "64": {
92
- "value": "64px"
93
- },
94
- "72": {
95
- "value": "72px"
96
- },
97
- "110": {
98
- "value": "110px"
99
- }
100
- },
101
- "letter-spacing": {
102
- "0": {
103
- "value": "0px"
104
- },
105
- "2": {
106
- "value": "2px"
107
- },
108
- "minus-2": {
109
- "value": "-2px"
110
- },
111
- "minus-1-half": {
112
- "value": "-1.5px"
113
- },
114
- "minus-1": {
115
- "value": "-1px"
116
- },
117
- "minus-half": {
118
- "value": "-0.5px"
119
- },
120
- "half": {
121
- "value": "0.5px"
122
- }
123
- },
124
- "text-transform": {
125
- "none": {
126
- "value": "none"
127
- },
128
- "uppercase": {
129
- "value": "uppercase"
130
- }
131
- }
132
- }
133
- }
@@ -1,72 +0,0 @@
1
- {
2
- "color": {
3
- "background": {
4
- "default": {
5
- "value": "{color.neutral.white}"
6
- },
7
- "default-hover": {
8
- "value": "{color.neutral.300}"
9
- },
10
- "subtle": {
11
- "value": "{color.neutral.100}"
12
- },
13
- "subtle-hover": {
14
- "value": "{color.neutral.200}"
15
- },
16
- "knockout": {
17
- "value": "{color.neutral.black}"
18
- },
19
- "brand": {
20
- "value": "{color.brand.purple.100}"
21
- },
22
- "brand-hover": {
23
- "value": "{color.brand.purple.200}"
24
- },
25
- "brand-disabled": {
26
- "value": "{color.neutral.200}"
27
- },
28
- "brand-knockout": {
29
- "value": "{color.brand.purple.800}"
30
- },
31
- "brand-knockout-hover": {
32
- "value": "{color.brand.purple.700}"
33
- },
34
- "utility": {
35
- "error": {
36
- "value": "{color.utility.red.100}"
37
- },
38
- "error-knockout": {
39
- "value": "{color.utility.red.600}"
40
- },
41
- "warning": {
42
- "value": "{color.utility.yellow.100}"
43
- },
44
- "warning-knockout": {
45
- "value": "{color.utility.yellow.600}"
46
- },
47
- "success": {
48
- "value": "{color.utility.green.100}"
49
- },
50
- "success-knockout": {
51
- "value": "{color.utility.green.600}"
52
- },
53
- "info": {
54
- "value": "{color.utility.blue.100}"
55
- },
56
- "info-knockout": {
57
- "value": "{color.utility.blue.600}"
58
- }
59
- },
60
- "disabled": {
61
- "value": "{color.neutral.200}"
62
- },
63
- "transparent": {
64
- "value": "{color.transparent.25}"
65
- },
66
- "transparent-strong": {
67
- "value": "{color.transparent.90}"
68
- }
69
- }
70
- }
71
- }
72
-
@@ -1,42 +0,0 @@
1
- {
2
- "color": {
3
- "border": {
4
- "default": {
5
- "value": "{color.neutral.300}"
6
- },
7
- "default-hover": {
8
- "value": "{color.neutral.500}"
9
- },
10
- "subtle": {
11
- "value": "{color.neutral.200}"
12
- },
13
- "strong": {
14
- "value": "{color.neutral.900}"
15
- },
16
- "knockout": {
17
- "value": "{color.neutral.400}"
18
- },
19
- "brand": {
20
- "value": "{color.brand.purple.700}"
21
- },
22
- "utility": {
23
- "error": {
24
- "value": "{color.utility.red.700}"
25
- },
26
- "warning": {
27
- "value": "{color.utility.yellow.700}"
28
- },
29
- "success": {
30
- "value": "{color.utility.green.700}"
31
- },
32
- "info": {
33
- "value": "{color.utility.blue.700}"
34
- }
35
- },
36
- "disabled": {
37
- "value": "{color.neutral.200}"
38
- }
39
- }
40
- }
41
- }
42
-
@@ -1,45 +0,0 @@
1
- {
2
- "color": {
3
- "content": {
4
- "default": {
5
- "value": "{color.neutral.900}"
6
- },
7
- "default-hover": {
8
- "value": "{color.neutral.black}"
9
- },
10
- "subtle": {
11
- "value": "{color.neutral.500}"
12
- },
13
- "knockout": {
14
- "value": "{color.neutral.white}"
15
- },
16
- "brand": {
17
- "value": "{color.brand.purple.600}"
18
- },
19
- "brand-hover": {
20
- "value": "{color.brand.purple.900}"
21
- },
22
- "brand-knockout": {
23
- "value": "{color.brand.purple.100}"
24
- },
25
- "disabled": {
26
- "value": "{color.neutral.600}"
27
- },
28
- "utility": {
29
- "error": {
30
- "value": "{color.utility.red.600}"
31
- },
32
- "warning": {
33
- "value": "{color.utility.yellow.600}"
34
- },
35
- "success": {
36
- "value": "{color.utility.green.600}"
37
- },
38
- "info": {
39
- "value": "{color.utility.blue.600}"
40
- }
41
- }
42
- }
43
- }
44
- }
45
-
@@ -1,23 +0,0 @@
1
- {
2
- "animation": {
3
- "fade": {
4
- "quick": {
5
- "value": "{animation.duration.10}"
6
- },
7
- "long": {
8
- "value": "{animation.duration.40}"
9
- }
10
- },
11
- "move": {
12
- "quick": {
13
- "value": "{animation.duration.20}"
14
- },
15
- "long": {
16
- "value": "{animation.duration.40}"
17
- }
18
- },
19
- "ease": {
20
- "value": "{animation.timing-function.ease}"
21
- }
22
- }
23
- }
@@ -1,26 +0,0 @@
1
- {
2
- "border": {
3
- "radius": {
4
- "sm": {
5
- "value": "{border.radius.125}"
6
- },
7
- "md": {
8
- "value": "{border.radius.500}"
9
- },
10
- "lg": {
11
- "value": "{border.radius.1000}"
12
- }
13
- },
14
- "width": {
15
- "sm": {
16
- "value": "{border.width.1}"
17
- },
18
- "md": {
19
- "value": "{border.width.2}"
20
- },
21
- "lg": {
22
- "value": "{border.width.4}"
23
- }
24
- }
25
- }
26
- }
@@ -1,39 +0,0 @@
1
- {
2
- "box-shadow": {
3
- "sm": {
4
- "x": {
5
- "value": "{shadow.sm.x}"
6
- },
7
- "y": {
8
- "value": "{shadow.sm.y}"
9
- },
10
- "blur": {
11
- "value": "{shadow.sm.blur}"
12
- },
13
- "spread": {
14
- "value": "{shadow.sm.spread}"
15
- },
16
- "color": {
17
- "value": "{shadow.sm.color}"
18
- }
19
- },
20
- "md": {
21
- "x": {
22
- "value": "{shadow.md.x}"
23
- },
24
- "y": {
25
- "value": "{shadow.md.y}"
26
- },
27
- "blur": {
28
- "value": "{shadow.md.blur}"
29
- },
30
- "spread": {
31
- "value": "{shadow.md.spread}"
32
- },
33
- "color": {
34
- "value": "{shadow.md.color}"
35
- }
36
- }
37
- }
38
- }
39
-
@@ -1,277 +0,0 @@
1
- {
2
- "typography": {
3
- "display-default": {
4
- "font-family": {
5
- "value": "{typography.font-family.greycliff}"
6
- },
7
- "font-weight": {
8
- "value": "{typography.font-weight.600}"
9
- },
10
- "font-size": {
11
- "value": "{typography.font-size.100}"
12
- },
13
- "line-height": {
14
- "value": "{typography.line-height.110}"
15
- },
16
- "letter-spacing": {
17
- "value": "{typography.letter-spacing.0}"
18
- }
19
- },
20
- "display-sm": {
21
- "font-family": {
22
- "value": "{typography.font-family.greycliff}"
23
- },
24
- "font-weight": {
25
- "value": "{typography.font-weight.600}"
26
- },
27
- "font-size": {
28
- "value": "{typography.font-size.100}"
29
- },
30
- "line-height": {
31
- "value": "{typography.line-height.110}"
32
- },
33
- "letter-spacing": {
34
- "value": "{typography.letter-spacing.0}"
35
- }
36
- },
37
- "headline-lg": {
38
- "font-family": {
39
- "value": "{typography.font-family.greycliff}"
40
- },
41
- "font-weight": {
42
- "value": "{typography.font-weight.600}"
43
- },
44
- "font-size": {
45
- "value": "{typography.font-size.48}"
46
- },
47
- "line-height": {
48
- "value": "{typography.line-height.56}"
49
- },
50
- "letter-spacing": {
51
- "value": "{typography.letter-spacing.half}"
52
- }
53
- },
54
- "headline-default": {
55
- "font-family": {
56
- "value": "{typography.font-family.greycliff}"
57
- },
58
- "font-weight": {
59
- "value": "{typography.font-weight.600}"
60
- },
61
- "font-size": {
62
- "value": "{typography.font-size.40}"
63
- },
64
- "line-height": {
65
- "value": "{typography.line-height.48}"
66
- },
67
- "letter-spacing": {
68
- "value": "{typography.letter-spacing.half}"
69
- }
70
- },
71
- "headline-sm": {
72
- "font-family": {
73
- "value": "{typography.font-family.greycliff}"
74
- },
75
- "font-weight": {
76
- "value": "{typography.font-weight.600}"
77
- },
78
- "font-size": {
79
- "value": "{typography.font-size.32}"
80
- },
81
- "line-height": {
82
- "value": "{typography.line-height.40}"
83
- },
84
- "letter-spacing": {
85
- "value": "{typography.letter-spacing.half}"
86
- }
87
- },
88
- "title-lg": {
89
- "font-family": {
90
- "value": "{typography.font-family.system}"
91
- },
92
- "font-weight": {
93
- "value": "{typography.font-weight.600}"
94
- },
95
- "font-size": {
96
- "value": "{typography.font-size.32}"
97
- },
98
- "line-height": {
99
- "value": "{typography.line-height.40}"
100
- },
101
- "letter-spacing": {
102
- "value": "{typography.letter-spacing.half}"
103
- }
104
- },
105
- "title-default": {
106
- "font-family": {
107
- "value": "{typography.font-family.system}"
108
- },
109
- "font-weight": {
110
- "value": "{typography.font-weight.600}"
111
- },
112
- "font-size": {
113
- "value": "{typography.font-size.28}"
114
- },
115
- "line-height": {
116
- "value": "{typography.line-height.36}"
117
- },
118
- "letter-spacing": {
119
- "value": "{typography.letter-spacing.half}"
120
- }
121
- },
122
- "title-sm": {
123
- "font-family": {
124
- "value": "{typography.font-family.system}"
125
- },
126
- "font-weight": {
127
- "value": "{typography.font-weight.600}"
128
- },
129
- "font-size": {
130
- "value": "{typography.font-size.24}"
131
- },
132
- "line-height": {
133
- "value": "{typography.line-height.32}"
134
- },
135
- "letter-spacing": {
136
- "value": "{typography.letter-spacing.half}"
137
- }
138
- },
139
- "label-lg": {
140
- "font-family": {
141
- "value": "{typography.font-family.system}"
142
- },
143
- "font-weight": {
144
- "value": "{typography.font-weight.600}"
145
- },
146
- "font-size": {
147
- "value": "{typography.font-size.20}"
148
- },
149
- "line-height": {
150
- "value": "{typography.line-height.28}"
151
- },
152
- "letter-spacing": {
153
- "value": "{typography.letter-spacing.0}"
154
- }
155
- },
156
- "label-default": {
157
- "font-family": {
158
- "value": "{typography.font-family.system}"
159
- },
160
- "font-weight": {
161
- "value": "{typography.font-weight.600}"
162
- },
163
- "font-size": {
164
- "value": "{typography.font-size.16}"
165
- },
166
- "line-height": {
167
- "value": "{typography.line-height.24}"
168
- },
169
- "letter-spacing": {
170
- "value": "{typography.letter-spacing.0}"
171
- }
172
- },
173
- "label-sm": {
174
- "font-family": {
175
- "value": "{typography.font-family.system}"
176
- },
177
- "font-weight": {
178
- "value": "{typography.font-weight.600}"
179
- },
180
- "font-size": {
181
- "value": "{typography.font-size.14}"
182
- },
183
- "line-height": {
184
- "value": "{typography.line-height.20}"
185
- },
186
- "letter-spacing": {
187
- "value": "{typography.letter-spacing.0}"
188
- }
189
- },
190
- "body-lg": {
191
- "font-family": {
192
- "value": "{typography.font-family.system}"
193
- },
194
- "font-weight": {
195
- "value": "{typography.font-weight.400}"
196
- },
197
- "font-size": {
198
- "value": "{typography.font-size.20}"
199
- },
200
- "line-height": {
201
- "value": "{typography.line-height.28}"
202
- },
203
- "letter-spacing": {
204
- "value": "{typography.letter-spacing.0}"
205
- }
206
- },
207
- "body-default": {
208
- "font-family": {
209
- "value": "{typography.font-family.system}"
210
- },
211
- "font-weight": {
212
- "value": "{typography.font-weight.400}"
213
- },
214
- "font-size": {
215
- "value": "{typography.font-size.16}"
216
- },
217
- "line-height": {
218
- "value": "{typography.line-height.24}"
219
- },
220
- "letter-spacing": {
221
- "value": "{typography.letter-spacing.0}"
222
- }
223
- },
224
- "body-sm": {
225
- "font-family": {
226
- "value": "{typography.font-family.system}"
227
- },
228
- "font-weight": {
229
- "value": "{typography.font-weight.400}"
230
- },
231
- "font-size": {
232
- "value": "{typography.font-size.14}"
233
- },
234
- "line-height": {
235
- "value": "{typography.line-height.20}"
236
- },
237
- "letter-spacing": {
238
- "value": "{typography.letter-spacing.0}"
239
- }
240
- },
241
- "meta-default": {
242
- "font-family": {
243
- "value": "{typography.font-family.system}"
244
- },
245
- "font-weight": {
246
- "value": "{typography.font-weight.600}"
247
- },
248
- "font-size": {
249
- "value": "{typography.font-size.14}"
250
- },
251
- "line-height": {
252
- "value": "{typography.line-height.20}"
253
- },
254
- "letter-spacing": {
255
- "value": "{typography.letter-spacing.2}"
256
- }
257
- },
258
- "meta-sm": {
259
- "font-family": {
260
- "value": "{typography.font-family.system}"
261
- },
262
- "font-weight": {
263
- "value": "{typography.font-weight.600}"
264
- },
265
- "font-size": {
266
- "value": "{typography.font-size.12}"
267
- },
268
- "line-height": {
269
- "value": "{typography.line-height.16}"
270
- },
271
- "letter-spacing": {
272
- "value": "{typography.letter-spacing.2}"
273
- }
274
- }
275
- }
276
- }
277
-