@servicetitan/hammer-token 2.5.0 → 3.0.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 (147) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/README.md +332 -0
  3. package/build/web/core/component-variables.scss +1088 -131
  4. package/build/web/core/component.d.ts +558 -0
  5. package/build/web/core/component.js +6685 -249
  6. package/build/web/core/component.scss +557 -69
  7. package/build/web/core/css-utils/a2-border.css +47 -45
  8. package/build/web/core/css-utils/a2-color.css +443 -227
  9. package/build/web/core/css-utils/a2-font.css +0 -2
  10. package/build/web/core/css-utils/a2-spacing.css +476 -478
  11. package/build/web/core/css-utils/a2-utils.css +992 -772
  12. package/build/web/core/css-utils/border.css +47 -45
  13. package/build/web/core/css-utils/color.css +443 -227
  14. package/build/web/core/css-utils/font.css +0 -2
  15. package/build/web/core/css-utils/spacing.css +476 -478
  16. package/build/web/core/css-utils/utils.css +992 -772
  17. package/build/web/core/index.d.ts +6 -0
  18. package/build/web/core/index.js +1 -1
  19. package/build/web/core/primitive-variables.scss +148 -65
  20. package/build/web/core/primitive.d.ts +209 -0
  21. package/build/web/core/primitive.js +779 -61
  22. package/build/web/core/primitive.scss +207 -124
  23. package/build/web/core/semantic-variables.scss +363 -239
  24. package/build/web/core/semantic.d.ts +221 -0
  25. package/build/web/core/semantic.js +1613 -347
  26. package/build/web/core/semantic.scss +219 -137
  27. package/build/web/index.d.ts +3 -4
  28. package/build/web/index.js +0 -1
  29. package/build/web/types.d.ts +17 -0
  30. package/config.js +121 -497
  31. package/eslint.config.mjs +11 -1
  32. package/package.json +15 -5
  33. package/src/global/primitive/breakpoint.tokens.json +54 -0
  34. package/src/global/primitive/color.tokens.json +1092 -0
  35. package/src/global/primitive/duration.tokens.json +44 -0
  36. package/src/global/primitive/font.tokens.json +151 -0
  37. package/src/global/primitive/radius.tokens.json +94 -0
  38. package/src/global/primitive/size.tokens.json +174 -0
  39. package/src/global/primitive/transition.tokens.json +32 -0
  40. package/src/theme/core/background.tokens.json +1312 -0
  41. package/src/theme/core/border.tokens.json +192 -0
  42. package/src/theme/core/chart.tokens.json +982 -0
  43. package/src/theme/core/component/ai-mark.tokens.json +20 -0
  44. package/src/theme/core/component/alert.tokens.json +261 -0
  45. package/src/theme/core/component/announcement.tokens.json +460 -0
  46. package/src/theme/core/component/avatar.tokens.json +137 -0
  47. package/src/theme/core/component/badge.tokens.json +42 -0
  48. package/src/theme/core/component/breadcrumb.tokens.json +42 -0
  49. package/src/theme/core/component/button-toggle.tokens.json +428 -0
  50. package/src/theme/core/component/button.tokens.json +941 -0
  51. package/src/theme/core/component/calendar.tokens.json +391 -0
  52. package/src/theme/core/component/card.tokens.json +107 -0
  53. package/src/theme/core/component/checkbox.tokens.json +631 -0
  54. package/src/theme/core/component/chip.tokens.json +169 -0
  55. package/src/theme/core/component/combobox.tokens.json +269 -0
  56. package/src/theme/core/component/details.tokens.json +152 -0
  57. package/src/theme/core/component/dialog.tokens.json +87 -0
  58. package/src/theme/core/component/divider.tokens.json +23 -0
  59. package/src/theme/core/component/dnd.tokens.json +208 -0
  60. package/src/theme/core/component/drawer.tokens.json +61 -0
  61. package/src/theme/core/component/drilldown.tokens.json +61 -0
  62. package/src/theme/core/component/edit-card.tokens.json +381 -0
  63. package/src/theme/core/component/field-label.tokens.json +42 -0
  64. package/src/theme/core/component/field-message.tokens.json +74 -0
  65. package/src/theme/core/component/icon.tokens.json +42 -0
  66. package/src/theme/core/component/link.tokens.json +108 -0
  67. package/src/theme/core/component/list-view.tokens.json +82 -0
  68. package/src/theme/core/component/listbox.tokens.json +283 -0
  69. package/src/theme/core/component/menu.tokens.json +230 -0
  70. package/src/theme/core/component/overflow.tokens.json +84 -0
  71. package/src/theme/core/component/page.tokens.json +377 -0
  72. package/src/theme/core/component/pagination.tokens.json +63 -0
  73. package/src/theme/core/component/popover.tokens.json +122 -0
  74. package/src/theme/core/component/progress-bar.tokens.json +133 -0
  75. package/src/theme/core/component/radio.tokens.json +631 -0
  76. package/src/theme/core/component/segmented-control.tokens.json +175 -0
  77. package/src/theme/core/component/select-card.tokens.json +943 -0
  78. package/src/theme/core/component/side-nav.tokens.json +349 -0
  79. package/src/theme/core/component/skeleton.tokens.json +42 -0
  80. package/src/theme/core/component/spinner.tokens.json +96 -0
  81. package/src/theme/core/component/status-icon.tokens.json +164 -0
  82. package/src/theme/core/component/stepper.tokens.json +484 -0
  83. package/src/theme/core/component/switch.tokens.json +285 -0
  84. package/src/theme/core/component/tab.tokens.json +192 -0
  85. package/src/theme/core/component/text-field.tokens.json +160 -0
  86. package/src/theme/core/component/text.tokens.json +59 -0
  87. package/src/theme/core/component/toast.tokens.json +343 -0
  88. package/src/theme/core/component/toolbar.tokens.json +114 -0
  89. package/src/theme/core/component/tooltip.tokens.json +61 -0
  90. package/src/theme/core/focus.tokens.json +56 -0
  91. package/src/theme/core/foreground.tokens.json +416 -0
  92. package/src/theme/core/gradient.tokens.json +41 -0
  93. package/src/theme/core/opacity.tokens.json +25 -0
  94. package/src/theme/core/shadow.tokens.json +81 -0
  95. package/src/theme/core/status.tokens.json +74 -0
  96. package/src/theme/core/typography.tokens.json +163 -0
  97. package/src/utils/__tests__/css-utils-format-utils.test.js +312 -0
  98. package/src/utils/__tests__/sd-build-configs.test.js +306 -0
  99. package/src/utils/__tests__/sd-formats.test.js +950 -0
  100. package/src/utils/__tests__/sd-transforms.test.js +336 -0
  101. package/src/utils/__tests__/token-helpers.test.js +1160 -0
  102. package/src/utils/copy-css-utils-cli.js +13 -1
  103. package/src/utils/css-utils-format-utils.js +105 -176
  104. package/src/utils/figma/__tests__/sync-gradient.test.js +561 -0
  105. package/src/utils/figma/__tests__/token-conversion.test.js +117 -0
  106. package/src/utils/figma/__tests__/token-resolution.test.js +231 -0
  107. package/src/utils/figma/auth.js +355 -0
  108. package/src/utils/figma/constants.js +22 -0
  109. package/src/utils/figma/errors.js +80 -0
  110. package/src/utils/figma/figma-api.js +1069 -0
  111. package/src/utils/figma/get-token.js +348 -0
  112. package/src/utils/figma/sync-components.js +909 -0
  113. package/src/utils/figma/sync-main.js +692 -0
  114. package/src/utils/figma/sync-orchestration.js +683 -0
  115. package/src/utils/figma/sync-primitives.js +230 -0
  116. package/src/utils/figma/sync-semantic.js +1056 -0
  117. package/src/utils/figma/token-conversion.js +340 -0
  118. package/src/utils/figma/token-parsing.js +186 -0
  119. package/src/utils/figma/token-resolution.js +569 -0
  120. package/src/utils/figma/utils.js +199 -0
  121. package/src/utils/sd-build-configs.js +305 -0
  122. package/src/utils/sd-formats.js +965 -0
  123. package/src/utils/sd-transforms.js +165 -0
  124. package/src/utils/token-helpers.js +848 -0
  125. package/tsconfig.json +18 -0
  126. package/vitest.config.js +17 -0
  127. package/.turbo/turbo-build.log +0 -37
  128. package/build/web/core/raw.js +0 -229
  129. package/src/global/primitive/breakpoint.js +0 -19
  130. package/src/global/primitive/color.js +0 -231
  131. package/src/global/primitive/duration.js +0 -16
  132. package/src/global/primitive/font.js +0 -60
  133. package/src/global/primitive/radius.js +0 -31
  134. package/src/global/primitive/size.js +0 -55
  135. package/src/global/primitive/transition.js +0 -16
  136. package/src/theme/core/background.js +0 -170
  137. package/src/theme/core/border.js +0 -103
  138. package/src/theme/core/charts.js +0 -439
  139. package/src/theme/core/component/button.js +0 -708
  140. package/src/theme/core/component/checkbox.js +0 -405
  141. package/src/theme/core/focus.js +0 -35
  142. package/src/theme/core/foreground.js +0 -148
  143. package/src/theme/core/overlay.js +0 -137
  144. package/src/theme/core/shadow.js +0 -29
  145. package/src/theme/core/status.js +0 -49
  146. package/src/theme/core/typography.js +0 -82
  147. package/type/types.ts +0 -341
@@ -0,0 +1,381 @@
1
+ {
2
+ "edit-card": {
3
+ "indicator": {
4
+ "border": {
5
+ "style": {
6
+ "$type": "string",
7
+ "$value": "solid",
8
+ "$extensions": {
9
+ "com.figma.scopes": []
10
+ }
11
+ },
12
+ "width": {
13
+ "$type": "dimension",
14
+ "$value": "{size.quarter}",
15
+ "$extensions": {
16
+ "com.figma.scopes": []
17
+ }
18
+ }
19
+ },
20
+ "size": {
21
+ "$type": "dimension",
22
+ "$value": "{size.4}",
23
+ "$extensions": {
24
+ "com.figma.scopes": []
25
+ }
26
+ }
27
+ },
28
+ "default": {
29
+ "border": {
30
+ "inline": {
31
+ "start": {
32
+ "color": {
33
+ "$type": "color",
34
+ "$value": "{border.color.subdued}",
35
+ "$extensions": {
36
+ "appearance": {
37
+ "light": {
38
+ "$type": "color",
39
+ "$value": "{border.color.subdued}"
40
+ },
41
+ "dark": {
42
+ "$type": "color",
43
+ "$value": "{border.color.subdued}"
44
+ }
45
+ },
46
+ "com.figma.scopes": []
47
+ }
48
+ },
49
+ "width": {
50
+ "$type": "dimension",
51
+ "$value": "{size.quarter}",
52
+ "$extensions": {
53
+ "com.figma.scopes": []
54
+ }
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "indicator": {
60
+ "background": {
61
+ "color": {
62
+ "$type": "color",
63
+ "$value": "{background.color.default}",
64
+ "$extensions": {
65
+ "appearance": {
66
+ "light": {
67
+ "$type": "color",
68
+ "$value": "{background.color.default}"
69
+ },
70
+ "dark": {
71
+ "$type": "color",
72
+ "$value": "{background.color.default}"
73
+ }
74
+ },
75
+ "com.figma.scopes": ["SHAPE_FILL", "FRAME_FILL", "STROKE_COLOR"]
76
+ }
77
+ }
78
+ },
79
+ "border": {
80
+ "color": {
81
+ "$type": "color",
82
+ "$value": "{background.color.strongest}",
83
+ "$extensions": {
84
+ "appearance": {
85
+ "light": {
86
+ "$type": "color",
87
+ "$value": "{background.color.strongest}"
88
+ },
89
+ "dark": {
90
+ "$type": "color",
91
+ "$value": "{background.color.strongest}"
92
+ }
93
+ },
94
+ "com.figma.scopes": ["STROKE_COLOR", "SHAPE_FILL", "FRAME_FILL"]
95
+ }
96
+ },
97
+ "style": {
98
+ "$type": "string",
99
+ "$value": "dashed",
100
+ "$extensions": {
101
+ "com.figma.scopes": []
102
+ }
103
+ }
104
+ },
105
+ "icon": {
106
+ "color": {
107
+ "$type": "color",
108
+ "$value": "transparent",
109
+ "$extensions": {
110
+ "appearance": {
111
+ "light": {
112
+ "$type": "color",
113
+ "$value": "transparent"
114
+ },
115
+ "dark": {
116
+ "$type": "color",
117
+ "$value": "transparent"
118
+ }
119
+ },
120
+ "com.figma.scopes": []
121
+ }
122
+ }
123
+ }
124
+ }
125
+ },
126
+ "in-progress": {
127
+ "border": {
128
+ "inline": {
129
+ "start": {
130
+ "color": {
131
+ "$type": "color",
132
+ "$value": "{status.color.info}",
133
+ "$extensions": {
134
+ "appearance": {
135
+ "light": {
136
+ "$type": "color",
137
+ "$value": "{status.color.info}"
138
+ },
139
+ "dark": {
140
+ "$type": "color",
141
+ "$value": "{status.color.info}"
142
+ }
143
+ },
144
+ "com.figma.scopes": []
145
+ }
146
+ },
147
+ "width": {
148
+ "$type": "dimension",
149
+ "$value": "0.375rem",
150
+ "$extensions": {
151
+ "com.figma.scopes": []
152
+ }
153
+ }
154
+ }
155
+ }
156
+ },
157
+ "indicator": {
158
+ "border": {
159
+ "color": {
160
+ "$type": "color",
161
+ "$value": "{status.color.info}",
162
+ "$extensions": {
163
+ "appearance": {
164
+ "light": {
165
+ "$type": "color",
166
+ "$value": "{status.color.info}"
167
+ },
168
+ "dark": {
169
+ "$type": "color",
170
+ "$value": "{status.color.info}"
171
+ }
172
+ },
173
+ "com.figma.scopes": ["STROKE_COLOR", "SHAPE_FILL", "FRAME_FILL"]
174
+ }
175
+ }
176
+ },
177
+ "icon": {
178
+ "color": {
179
+ "$type": "color",
180
+ "$value": "{status.color.info}",
181
+ "$extensions": {
182
+ "appearance": {
183
+ "light": {
184
+ "$type": "color",
185
+ "$value": "{status.color.info}"
186
+ },
187
+ "dark": {
188
+ "$type": "color",
189
+ "$value": "{status.color.info}"
190
+ }
191
+ },
192
+ "com.figma.scopes": []
193
+ }
194
+ }
195
+ }
196
+ }
197
+ },
198
+ "complete": {
199
+ "border": {
200
+ "inline": {
201
+ "start": {
202
+ "color": {
203
+ "$type": "color",
204
+ "$value": "{status.color.info}",
205
+ "$extensions": {
206
+ "appearance": {
207
+ "light": {
208
+ "$type": "color",
209
+ "$value": "{status.color.info}"
210
+ },
211
+ "dark": {
212
+ "$type": "color",
213
+ "$value": "{status.color.info}"
214
+ }
215
+ },
216
+ "com.figma.scopes": []
217
+ }
218
+ },
219
+ "width": {
220
+ "$type": "dimension",
221
+ "$value": "0.375rem",
222
+ "$extensions": {
223
+ "com.figma.scopes": []
224
+ }
225
+ }
226
+ }
227
+ }
228
+ },
229
+ "indicator": {
230
+ "background": {
231
+ "color": {
232
+ "$type": "color",
233
+ "$value": "{status.color.info}",
234
+ "$extensions": {
235
+ "appearance": {
236
+ "light": {
237
+ "$type": "color",
238
+ "$value": "{status.color.info}"
239
+ },
240
+ "dark": {
241
+ "$type": "color",
242
+ "$value": "{status.color.info}"
243
+ }
244
+ },
245
+ "com.figma.scopes": ["SHAPE_FILL", "FRAME_FILL", "STROKE_COLOR"]
246
+ }
247
+ }
248
+ },
249
+ "border": {
250
+ "color": {
251
+ "$type": "color",
252
+ "$value": "{status.color.info}",
253
+ "$extensions": {
254
+ "appearance": {
255
+ "light": {
256
+ "$type": "color",
257
+ "$value": "{status.color.info}"
258
+ },
259
+ "dark": {
260
+ "$type": "color",
261
+ "$value": "{status.color.info}"
262
+ }
263
+ },
264
+ "com.figma.scopes": ["STROKE_COLOR", "SHAPE_FILL", "FRAME_FILL"]
265
+ }
266
+ }
267
+ },
268
+ "icon": {
269
+ "color": {
270
+ "$type": "color",
271
+ "$value": "{foreground.color.on.primary}",
272
+ "$extensions": {
273
+ "appearance": {
274
+ "light": {
275
+ "$type": "color",
276
+ "$value": "{foreground.color.on.primary}"
277
+ },
278
+ "dark": {
279
+ "$type": "color",
280
+ "$value": "{foreground.color.on.primary}"
281
+ }
282
+ },
283
+ "com.figma.scopes": []
284
+ }
285
+ }
286
+ }
287
+ }
288
+ },
289
+ "error": {
290
+ "border": {
291
+ "inline": {
292
+ "start": {
293
+ "color": {
294
+ "$type": "color",
295
+ "$value": "{status.color.danger}",
296
+ "$extensions": {
297
+ "appearance": {
298
+ "light": {
299
+ "$type": "color",
300
+ "$value": "{status.color.danger}"
301
+ },
302
+ "dark": {
303
+ "$type": "color",
304
+ "$value": "{status.color.danger}"
305
+ }
306
+ },
307
+ "com.figma.scopes": []
308
+ }
309
+ },
310
+ "width": {
311
+ "$type": "dimension",
312
+ "$value": "0.375rem",
313
+ "$extensions": {
314
+ "com.figma.scopes": []
315
+ }
316
+ }
317
+ }
318
+ }
319
+ },
320
+ "indicator": {
321
+ "background": {
322
+ "color": {
323
+ "$type": "color",
324
+ "$value": "{status.color.danger}",
325
+ "$extensions": {
326
+ "appearance": {
327
+ "light": {
328
+ "$type": "color",
329
+ "$value": "{status.color.danger}"
330
+ },
331
+ "dark": {
332
+ "$type": "color",
333
+ "$value": "{status.color.danger}"
334
+ }
335
+ },
336
+ "com.figma.scopes": ["SHAPE_FILL", "FRAME_FILL", "STROKE_COLOR"]
337
+ }
338
+ }
339
+ },
340
+ "border": {
341
+ "color": {
342
+ "$type": "color",
343
+ "$value": "{status.color.danger}",
344
+ "$extensions": {
345
+ "appearance": {
346
+ "light": {
347
+ "$type": "color",
348
+ "$value": "{status.color.danger}"
349
+ },
350
+ "dark": {
351
+ "$type": "color",
352
+ "$value": "{status.color.danger}"
353
+ }
354
+ },
355
+ "com.figma.scopes": ["STROKE_COLOR", "SHAPE_FILL", "FRAME_FILL"]
356
+ }
357
+ }
358
+ },
359
+ "icon": {
360
+ "color": {
361
+ "$type": "color",
362
+ "$value": "{foreground.color.on.danger}",
363
+ "$extensions": {
364
+ "appearance": {
365
+ "light": {
366
+ "$type": "color",
367
+ "$value": "{foreground.color.on.danger}"
368
+ },
369
+ "dark": {
370
+ "$type": "color",
371
+ "$value": "{foreground.color.on.danger}"
372
+ }
373
+ },
374
+ "com.figma.scopes": []
375
+ }
376
+ }
377
+ }
378
+ }
379
+ }
380
+ }
381
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "field-label": {
3
+ "foreground": {
4
+ "color": {
5
+ "$type": "color",
6
+ "$value": "{foreground.color.default}",
7
+ "$extensions": {
8
+ "appearance": {
9
+ "light": {
10
+ "$type": "color",
11
+ "$value": "{foreground.color.default}"
12
+ },
13
+ "dark": {
14
+ "$type": "color",
15
+ "$value": "{foreground.color.default}"
16
+ }
17
+ },
18
+ "com.figma.scopes": ["TEXT_FILL", "SHAPE_FILL"]
19
+ }
20
+ }
21
+ },
22
+ "required": {
23
+ "color": {
24
+ "$type": "color",
25
+ "$value": "{foreground.color.danger}",
26
+ "$extensions": {
27
+ "appearance": {
28
+ "light": {
29
+ "$type": "color",
30
+ "$value": "{foreground.color.danger}"
31
+ },
32
+ "dark": {
33
+ "$type": "color",
34
+ "$value": "{foreground.color.danger}"
35
+ }
36
+ },
37
+ "com.figma.scopes": []
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,74 @@
1
+ {
2
+ "field-message": {
3
+ "foreground": {
4
+ "color": {
5
+ "$type": "color",
6
+ "$value": "{foreground.color.subdued}",
7
+ "$extensions": {
8
+ "appearance": {
9
+ "light": {
10
+ "$type": "color",
11
+ "$value": "{foreground.color.subdued}"
12
+ },
13
+ "dark": {
14
+ "$type": "color",
15
+ "$value": "{foreground.color.subdued}"
16
+ }
17
+ },
18
+ "com.figma.scopes": [
19
+ "TEXT_FILL",
20
+ "SHAPE_FILL"
21
+ ]
22
+ }
23
+ }
24
+ },
25
+ "error": {
26
+ "foreground": {
27
+ "color": {
28
+ "$type": "color",
29
+ "$value": "{foreground.color.danger}",
30
+ "$extensions": {
31
+ "appearance": {
32
+ "light": {
33
+ "$type": "color",
34
+ "$value": "{foreground.color.danger}"
35
+ },
36
+ "dark": {
37
+ "$type": "color",
38
+ "$value": "{foreground.color.danger}"
39
+ }
40
+ },
41
+ "com.figma.scopes": [
42
+ "TEXT_FILL",
43
+ "SHAPE_FILL"
44
+ ]
45
+ }
46
+ }
47
+ }
48
+ },
49
+ "warning": {
50
+ "foreground": {
51
+ "color": {
52
+ "$type": "color",
53
+ "$value": "{foreground.color.subdued}",
54
+ "$extensions": {
55
+ "appearance": {
56
+ "light": {
57
+ "$type": "color",
58
+ "$value": "{foreground.color.subdued}"
59
+ },
60
+ "dark": {
61
+ "$type": "color",
62
+ "$value": "{foreground.color.subdued}"
63
+ }
64
+ },
65
+ "com.figma.scopes": [
66
+ "TEXT_FILL",
67
+ "SHAPE_FILL"
68
+ ]
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,42 @@
1
+ {
2
+ "icon": {
3
+ "foreground": {
4
+ "color": {
5
+ "$type": "color",
6
+ "$value": "{foreground.color.default}",
7
+ "$extensions": {
8
+ "appearance": {
9
+ "light": {
10
+ "$type": "color",
11
+ "$value": "{foreground.color.default}"
12
+ },
13
+ "dark": {
14
+ "$type": "color",
15
+ "$value": "{foreground.color.default}"
16
+ }
17
+ },
18
+ "com.figma.scopes": ["TEXT_FILL", "SHAPE_FILL"]
19
+ }
20
+ }
21
+ },
22
+ "focus-ring": {
23
+ "color": {
24
+ "$type": "color",
25
+ "$value": "{focus.ring.color.default}",
26
+ "$extensions": {
27
+ "appearance": {
28
+ "light": {
29
+ "$type": "color",
30
+ "$value": "{focus.ring.color.default}"
31
+ },
32
+ "dark": {
33
+ "$type": "color",
34
+ "$value": "{focus.ring.color.default}"
35
+ }
36
+ },
37
+ "com.figma.scopes": ["STROKE_COLOR"]
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "link": {
3
+ "primary": {
4
+ "foreground": {
5
+ "color": {
6
+ "$type": "color",
7
+ "$value": "{foreground.color.primary}",
8
+ "$extensions": {
9
+ "appearance": {
10
+ "light": {
11
+ "$type": "color",
12
+ "$value": "{foreground.color.primary}"
13
+ },
14
+ "dark": {
15
+ "$type": "color",
16
+ "$value": "{foreground.color.primary}"
17
+ }
18
+ },
19
+ "com.figma.scopes": ["TEXT_FILL", "SHAPE_FILL"]
20
+ }
21
+ },
22
+ "color-hover": {
23
+ "$type": "color",
24
+ "$value": "{foreground.color.primary-hover}",
25
+ "$extensions": {
26
+ "appearance": {
27
+ "light": {
28
+ "$type": "color",
29
+ "$value": "{foreground.color.primary-hover}"
30
+ },
31
+ "dark": {
32
+ "$type": "color",
33
+ "$value": "{foreground.color.primary-hover}"
34
+ }
35
+ },
36
+ "com.figma.scopes": ["TEXT_FILL", "SHAPE_FILL"]
37
+ }
38
+ }
39
+ }
40
+ },
41
+ "secondary": {
42
+ "foreground": {
43
+ "color": {
44
+ "$type": "color",
45
+ "$value": "{foreground.color.default}",
46
+ "$extensions": {
47
+ "appearance": {
48
+ "light": {
49
+ "$type": "color",
50
+ "$value": "{foreground.color.default}"
51
+ },
52
+ "dark": {
53
+ "$type": "color",
54
+ "$value": "{foreground.color.default}"
55
+ }
56
+ },
57
+ "com.figma.scopes": ["TEXT_FILL", "SHAPE_FILL"]
58
+ }
59
+ },
60
+ "color-hover": {
61
+ "$type": "color",
62
+ "$value": {
63
+ "color": "{foreground.color.default}",
64
+ "alpha": 0.8
65
+ },
66
+ "$extensions": {
67
+ "appearance": {
68
+ "light": {
69
+ "$type": "color",
70
+ "$value": {
71
+ "color": "{foreground.color.default}",
72
+ "alpha": 0.8
73
+ }
74
+ },
75
+ "dark": {
76
+ "$type": "color",
77
+ "$value": {
78
+ "color": "{foreground.color.default}",
79
+ "alpha": 0.8
80
+ }
81
+ }
82
+ },
83
+ "com.figma.scopes": ["TEXT_FILL", "SHAPE_FILL"]
84
+ }
85
+ }
86
+ }
87
+ },
88
+ "focus-ring": {
89
+ "color": {
90
+ "$type": "color",
91
+ "$value": "{focus.ring.color.default}",
92
+ "$extensions": {
93
+ "appearance": {
94
+ "light": {
95
+ "$type": "color",
96
+ "$value": "{focus.ring.color.default}"
97
+ },
98
+ "dark": {
99
+ "$type": "color",
100
+ "$value": "{focus.ring.color.default}"
101
+ }
102
+ },
103
+ "com.figma.scopes": ["STROKE_COLOR"]
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }