@primer/primitives 11.7.1 → 11.8.0-rc.036a9e18

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.
@@ -0,0 +1,427 @@
1
+ {
2
+ "motion-duration-long": {
3
+ "key": "{motion.duration.long}",
4
+ "$extensions": {
5
+ "org.primer.llm": {
6
+ "usage": ["complex-animation", "multi-step", "layout-shift", "page-transition"],
7
+ "rules": "Use sparingly for complex animations. NEVER use for simple UI interactions."
8
+ }
9
+ },
10
+ "filePath": "src/tokens/functional/motion/motion.json5",
11
+ "isSource": true,
12
+ "original": {
13
+ "$value": "{base.duration.500}",
14
+ "$type": "duration",
15
+ "$description": "Longer duration for complex multi-step animations or large-scale layout shifts. Use sparingly.",
16
+ "$extensions": {
17
+ "org.primer.llm": {
18
+ "usage": ["complex-animation", "multi-step", "layout-shift", "page-transition"],
19
+ "rules": "Use sparingly for complex animations. NEVER use for simple UI interactions."
20
+ }
21
+ },
22
+ "key": "{motion.duration.long}"
23
+ },
24
+ "name": "motion-duration-long",
25
+ "attributes": {},
26
+ "path": ["motion", "duration", "long"],
27
+ "value": {
28
+ "value": 500,
29
+ "unit": "ms"
30
+ },
31
+ "type": "duration",
32
+ "description": "Longer duration for complex multi-step animations or large-scale layout shifts. Use sparingly."
33
+ },
34
+ "motion-duration-medium": {
35
+ "key": "{motion.duration.medium}",
36
+ "$extensions": {
37
+ "org.primer.llm": {
38
+ "usage": ["modal-open", "dropdown-appear", "tooltip-show", "enter-exit-viewport"],
39
+ "rules": "Use for elements entering or leaving the viewport. Maximum recommended duration for UI interactions."
40
+ }
41
+ },
42
+ "filePath": "src/tokens/functional/motion/motion.json5",
43
+ "isSource": true,
44
+ "original": {
45
+ "$value": "{base.duration.300}",
46
+ "$type": "duration",
47
+ "$description": "Standard duration for elements entering or exiting the viewport, such as modals and dropdowns.",
48
+ "$extensions": {
49
+ "org.primer.llm": {
50
+ "usage": ["modal-open", "dropdown-appear", "tooltip-show", "enter-exit-viewport"],
51
+ "rules": "Use for elements entering or leaving the viewport. Maximum recommended duration for UI interactions."
52
+ }
53
+ },
54
+ "key": "{motion.duration.medium}"
55
+ },
56
+ "name": "motion-duration-medium",
57
+ "attributes": {},
58
+ "path": ["motion", "duration", "medium"],
59
+ "value": {
60
+ "value": 300,
61
+ "unit": "ms"
62
+ },
63
+ "type": "duration",
64
+ "description": "Standard duration for elements entering or exiting the viewport, such as modals and dropdowns."
65
+ },
66
+ "motion-duration-micro": {
67
+ "key": "{motion.duration.micro}",
68
+ "$extensions": {
69
+ "org.primer.llm": {
70
+ "usage": ["hover-transition", "focus-ring", "color-shift", "opacity-change"],
71
+ "rules": "Use for instantaneous feedback on hover and focus states."
72
+ }
73
+ },
74
+ "filePath": "src/tokens/functional/motion/motion.json5",
75
+ "isSource": true,
76
+ "original": {
77
+ "$value": "{base.duration.100}",
78
+ "$type": "duration",
79
+ "$description": "Fast micro-interactions like hover, focus ring, and color shifts.",
80
+ "$extensions": {
81
+ "org.primer.llm": {
82
+ "usage": ["hover-transition", "focus-ring", "color-shift", "opacity-change"],
83
+ "rules": "Use for instantaneous feedback on hover and focus states."
84
+ }
85
+ },
86
+ "key": "{motion.duration.micro}"
87
+ },
88
+ "name": "motion-duration-micro",
89
+ "attributes": {},
90
+ "path": ["motion", "duration", "micro"],
91
+ "value": {
92
+ "value": 100,
93
+ "unit": "ms"
94
+ },
95
+ "type": "duration",
96
+ "description": "Fast micro-interactions like hover, focus ring, and color shifts."
97
+ },
98
+ "motion-duration-short": {
99
+ "key": "{motion.duration.short}",
100
+ "$extensions": {
101
+ "org.primer.llm": {
102
+ "usage": ["expand-collapse", "toggle", "visibility-change", "state-transition"],
103
+ "rules": "Use for interactive state changes that need to feel responsive."
104
+ }
105
+ },
106
+ "filePath": "src/tokens/functional/motion/motion.json5",
107
+ "isSource": true,
108
+ "original": {
109
+ "$value": "{base.duration.200}",
110
+ "$type": "duration",
111
+ "$description": "Quick transitions for state changes like expand/collapse, toggles, and visibility changes.",
112
+ "$extensions": {
113
+ "org.primer.llm": {
114
+ "usage": ["expand-collapse", "toggle", "visibility-change", "state-transition"],
115
+ "rules": "Use for interactive state changes that need to feel responsive."
116
+ }
117
+ },
118
+ "key": "{motion.duration.short}"
119
+ },
120
+ "name": "motion-duration-short",
121
+ "attributes": {},
122
+ "path": ["motion", "duration", "short"],
123
+ "value": {
124
+ "value": 200,
125
+ "unit": "ms"
126
+ },
127
+ "type": "duration",
128
+ "description": "Quick transitions for state changes like expand/collapse, toggles, and visibility changes."
129
+ },
130
+ "motion-easing-enter": {
131
+ "key": "{motion.easing.enter}",
132
+ "$extensions": {
133
+ "org.primer.llm": {
134
+ "usage": ["enter-animation", "element-appearing", "modal-open", "dropdown-open", "tooltip-appear"],
135
+ "rules": "RECOMMENDED default for enter animations. Element decelerates into its final position."
136
+ }
137
+ },
138
+ "filePath": "src/tokens/functional/motion/motion.json5",
139
+ "isSource": true,
140
+ "original": {
141
+ "$value": "{base.easing.easeOut}",
142
+ "$type": "cubicBezier",
143
+ "$description": "Decelerating easing for elements entering the viewport or appearing on screen.",
144
+ "$extensions": {
145
+ "org.primer.llm": {
146
+ "usage": ["enter-animation", "element-appearing", "modal-open", "dropdown-open", "tooltip-appear"],
147
+ "rules": "RECOMMENDED default for enter animations. Element decelerates into its final position."
148
+ }
149
+ },
150
+ "key": "{motion.easing.enter}"
151
+ },
152
+ "name": "motion-easing-enter",
153
+ "attributes": {},
154
+ "path": ["motion", "easing", "enter"],
155
+ "value": [0.3, 0.8, 0.6, 1],
156
+ "type": "cubicBezier",
157
+ "description": "Decelerating easing for elements entering the viewport or appearing on screen."
158
+ },
159
+ "motion-easing-exit": {
160
+ "key": "{motion.easing.exit}",
161
+ "$extensions": {
162
+ "org.primer.llm": {
163
+ "usage": ["exit-animation", "element-leaving", "modal-close", "dismiss"],
164
+ "rules": "Use for elements leaving the viewport. Element accelerates away."
165
+ }
166
+ },
167
+ "filePath": "src/tokens/functional/motion/motion.json5",
168
+ "isSource": true,
169
+ "original": {
170
+ "$value": "{base.easing.easeIn}",
171
+ "$type": "cubicBezier",
172
+ "$description": "Accelerating easing for elements exiting the viewport or leaving the screen.",
173
+ "$extensions": {
174
+ "org.primer.llm": {
175
+ "usage": ["exit-animation", "element-leaving", "modal-close", "dismiss"],
176
+ "rules": "Use for elements leaving the viewport. Element accelerates away."
177
+ }
178
+ },
179
+ "key": "{motion.easing.exit}"
180
+ },
181
+ "name": "motion-easing-exit",
182
+ "attributes": {},
183
+ "path": ["motion", "easing", "exit"],
184
+ "value": [0.7, 0.1, 0.75, 0.9],
185
+ "type": "cubicBezier",
186
+ "description": "Accelerating easing for elements exiting the viewport or leaving the screen."
187
+ },
188
+ "motion-easing-hover": {
189
+ "key": "{motion.easing.hover}",
190
+ "$extensions": {
191
+ "org.primer.llm": {
192
+ "usage": ["hover-state", "micro-interaction", "button-hover", "link-hover"],
193
+ "rules": "Use for hover state changes."
194
+ }
195
+ },
196
+ "filePath": "src/tokens/functional/motion/motion.json5",
197
+ "isSource": true,
198
+ "original": {
199
+ "$value": "{base.easing.ease}",
200
+ "$type": "cubicBezier",
201
+ "$description": "Easing for hover state changes and micro-interactions.",
202
+ "$extensions": {
203
+ "org.primer.llm": {
204
+ "usage": ["hover-state", "micro-interaction", "button-hover", "link-hover"],
205
+ "rules": "Use for hover state changes."
206
+ }
207
+ },
208
+ "key": "{motion.easing.hover}"
209
+ },
210
+ "name": "motion-easing-hover",
211
+ "attributes": {},
212
+ "path": ["motion", "easing", "hover"],
213
+ "value": [0.25, 0.1, 0.25, 1],
214
+ "type": "cubicBezier",
215
+ "description": "Easing for hover state changes and micro-interactions."
216
+ },
217
+ "motion-easing-linear": {
218
+ "key": "{motion.easing.linear}",
219
+ "$extensions": {
220
+ "org.primer.llm": {
221
+ "usage": ["progress-bar", "loader", "continuous-animation", "scrolling"],
222
+ "rules": "Use only for constant, uninterrupted motion."
223
+ }
224
+ },
225
+ "filePath": "src/tokens/functional/motion/motion.json5",
226
+ "isSource": true,
227
+ "original": {
228
+ "$value": "{base.easing.linear}",
229
+ "$type": "cubicBezier",
230
+ "$description": "Constant motion with no acceleration. Use for continuous animations like progress bars or loaders.",
231
+ "$extensions": {
232
+ "org.primer.llm": {
233
+ "usage": ["progress-bar", "loader", "continuous-animation", "scrolling"],
234
+ "rules": "Use only for constant, uninterrupted motion."
235
+ }
236
+ },
237
+ "key": "{motion.easing.linear}"
238
+ },
239
+ "name": "motion-easing-linear",
240
+ "attributes": {},
241
+ "path": ["motion", "easing", "linear"],
242
+ "value": [0, 0, 1, 1],
243
+ "type": "cubicBezier",
244
+ "description": "Constant motion with no acceleration. Use for continuous animations like progress bars or loaders."
245
+ },
246
+ "motion-easing-move": {
247
+ "key": "{motion.easing.move}",
248
+ "$extensions": {
249
+ "org.primer.llm": {
250
+ "usage": ["position-change", "size-change", "morph-animation", "expand-collapse", "slide-transition"],
251
+ "rules": "Use for elements that move or change shape on screen."
252
+ }
253
+ },
254
+ "filePath": "src/tokens/functional/motion/motion.json5",
255
+ "isSource": true,
256
+ "original": {
257
+ "$value": "{base.easing.easeInOut}",
258
+ "$type": "cubicBezier",
259
+ "$description": "Smooth easing for elements moving or morphing within the viewport.",
260
+ "$extensions": {
261
+ "org.primer.llm": {
262
+ "usage": ["position-change", "size-change", "morph-animation", "expand-collapse", "slide-transition"],
263
+ "rules": "Use for elements that move or change shape on screen."
264
+ }
265
+ },
266
+ "key": "{motion.easing.move}"
267
+ },
268
+ "name": "motion-easing-move",
269
+ "attributes": {},
270
+ "path": ["motion", "easing", "move"],
271
+ "value": [0.6, 0, 0.2, 1],
272
+ "type": "cubicBezier",
273
+ "description": "Smooth easing for elements moving or morphing within the viewport."
274
+ },
275
+ "motion-transition-enter": {
276
+ "key": "{motion.transition.enter}",
277
+ "$extensions": {
278
+ "org.primer.llm": {
279
+ "usage": ["modal-open", "dropdown-appear", "tooltip-show", "popover-enter", "overlay-appear"],
280
+ "rules": "Use for elements appearing on screen. Element decelerates into final position."
281
+ }
282
+ },
283
+ "filePath": "src/tokens/functional/motion/motion.json5",
284
+ "isSource": true,
285
+ "original": {
286
+ "$value": {
287
+ "duration": "{motion.duration.medium}",
288
+ "timingFunction": "{motion.easing.enter}"
289
+ },
290
+ "$type": "transition",
291
+ "$description": "Transition for elements entering the viewport, such as modals, dropdowns, and tooltips.",
292
+ "$extensions": {
293
+ "org.primer.llm": {
294
+ "usage": ["modal-open", "dropdown-appear", "tooltip-show", "popover-enter", "overlay-appear"],
295
+ "rules": "Use for elements appearing on screen. Element decelerates into final position."
296
+ }
297
+ },
298
+ "key": "{motion.transition.enter}"
299
+ },
300
+ "name": "motion-transition-enter",
301
+ "attributes": {},
302
+ "path": ["motion", "transition", "enter"],
303
+ "value": {
304
+ "duration": {
305
+ "value": 300,
306
+ "unit": "ms"
307
+ },
308
+ "timingFunction": [0.3, 0.8, 0.6, 1]
309
+ },
310
+ "type": "transition",
311
+ "description": "Transition for elements entering the viewport, such as modals, dropdowns, and tooltips."
312
+ },
313
+ "motion-transition-exit": {
314
+ "key": "{motion.transition.exit}",
315
+ "$extensions": {
316
+ "org.primer.llm": {
317
+ "usage": ["modal-close", "dropdown-dismiss", "tooltip-hide", "popover-exit", "overlay-dismiss"],
318
+ "rules": "Use for elements leaving the screen. Shorter than enter to feel snappy."
319
+ }
320
+ },
321
+ "filePath": "src/tokens/functional/motion/motion.json5",
322
+ "isSource": true,
323
+ "original": {
324
+ "$value": {
325
+ "duration": "{motion.duration.short}",
326
+ "timingFunction": "{motion.easing.exit}"
327
+ },
328
+ "$type": "transition",
329
+ "$description": "Transition for elements exiting the viewport, such as closing modals and dismissing dropdowns.",
330
+ "$extensions": {
331
+ "org.primer.llm": {
332
+ "usage": ["modal-close", "dropdown-dismiss", "tooltip-hide", "popover-exit", "overlay-dismiss"],
333
+ "rules": "Use for elements leaving the screen. Shorter than enter to feel snappy."
334
+ }
335
+ },
336
+ "key": "{motion.transition.exit}"
337
+ },
338
+ "name": "motion-transition-exit",
339
+ "attributes": {},
340
+ "path": ["motion", "transition", "exit"],
341
+ "value": {
342
+ "duration": {
343
+ "value": 200,
344
+ "unit": "ms"
345
+ },
346
+ "timingFunction": [0.7, 0.1, 0.75, 0.9]
347
+ },
348
+ "type": "transition",
349
+ "description": "Transition for elements exiting the viewport, such as closing modals and dismissing dropdowns."
350
+ },
351
+ "motion-transition-hover": {
352
+ "key": "{motion.transition.hover}",
353
+ "$extensions": {
354
+ "org.primer.llm": {
355
+ "usage": ["button-hover", "link-hover", "interactive-hover", "color-transition"],
356
+ "rules": "Use for all hover state transitions. Keeps interactions feeling instantaneous."
357
+ }
358
+ },
359
+ "filePath": "src/tokens/functional/motion/motion.json5",
360
+ "isSource": true,
361
+ "original": {
362
+ "$value": {
363
+ "duration": "{motion.duration.micro}",
364
+ "timingFunction": "{motion.easing.hover}"
365
+ },
366
+ "$type": "transition",
367
+ "$description": "Transition for hover state changes on interactive elements like buttons and links.",
368
+ "$extensions": {
369
+ "org.primer.llm": {
370
+ "usage": ["button-hover", "link-hover", "interactive-hover", "color-transition"],
371
+ "rules": "Use for all hover state transitions. Keeps interactions feeling instantaneous."
372
+ }
373
+ },
374
+ "key": "{motion.transition.hover}"
375
+ },
376
+ "name": "motion-transition-hover",
377
+ "attributes": {},
378
+ "path": ["motion", "transition", "hover"],
379
+ "value": {
380
+ "duration": {
381
+ "value": 100,
382
+ "unit": "ms"
383
+ },
384
+ "timingFunction": [0.25, 0.1, 0.25, 1]
385
+ },
386
+ "type": "transition",
387
+ "description": "Transition for hover state changes on interactive elements like buttons and links."
388
+ },
389
+ "motion-transition-stateChange": {
390
+ "key": "{motion.transition.stateChange}",
391
+ "$extensions": {
392
+ "org.primer.llm": {
393
+ "usage": ["toggle", "expand-collapse", "accordion", "tab-switch", "visibility-change"],
394
+ "rules": "Use for interactive elements that change between states."
395
+ }
396
+ },
397
+ "filePath": "src/tokens/functional/motion/motion.json5",
398
+ "isSource": true,
399
+ "original": {
400
+ "$value": {
401
+ "duration": "{motion.duration.short}",
402
+ "timingFunction": "{motion.easing.move}"
403
+ },
404
+ "$type": "transition",
405
+ "$description": "Transition for state changes like toggles, expand/collapse, and visibility changes.",
406
+ "$extensions": {
407
+ "org.primer.llm": {
408
+ "usage": ["toggle", "expand-collapse", "accordion", "tab-switch", "visibility-change"],
409
+ "rules": "Use for interactive elements that change between states."
410
+ }
411
+ },
412
+ "key": "{motion.transition.stateChange}"
413
+ },
414
+ "name": "motion-transition-stateChange",
415
+ "attributes": {},
416
+ "path": ["motion", "transition", "stateChange"],
417
+ "value": {
418
+ "duration": {
419
+ "value": 200,
420
+ "unit": "ms"
421
+ },
422
+ "timingFunction": [0.6, 0, 0.2, 1]
423
+ },
424
+ "type": "transition",
425
+ "description": "Transition for state changes like toggles, expand/collapse, and visibility changes."
426
+ }
427
+ }
@@ -0,0 +1,224 @@
1
+ {
2
+ "space-lg": {
3
+ "key": "{space.lg}",
4
+ "$extensions": {
5
+ "org.primer.llm": {
6
+ "usage": ["gap", "padding", "margin", "section-gap", "container-margin"],
7
+ "rules": "Spacious (16px). Use for major layout divisions, visual separation between content blocks, and primary container margins."
8
+ },
9
+ "org.primer.figma": {
10
+ "collection": "functional/size",
11
+ "scopes": ["gap"]
12
+ }
13
+ },
14
+ "filePath": "src/tokens/functional/spacing/space.json5",
15
+ "isSource": true,
16
+ "original": {
17
+ "$value": "{base.size.16}",
18
+ "$type": "dimension",
19
+ "$description": "Spacious spacing for major layout divisions and visual separation between content blocks.",
20
+ "$extensions": {
21
+ "org.primer.llm": {
22
+ "usage": ["gap", "padding", "margin", "section-gap", "container-margin"],
23
+ "rules": "Spacious (16px). Use for major layout divisions, visual separation between content blocks, and primary container margins."
24
+ },
25
+ "org.primer.figma": {
26
+ "collection": "functional/size",
27
+ "scopes": ["gap"]
28
+ }
29
+ },
30
+ "key": "{space.lg}"
31
+ },
32
+ "name": "space-lg",
33
+ "attributes": {},
34
+ "path": ["space", "lg"],
35
+ "value": "1rem",
36
+ "type": "dimension",
37
+ "description": "Spacious spacing for major layout divisions and visual separation between content blocks."
38
+ },
39
+ "space-md": {
40
+ "key": "{space.md}",
41
+ "$extensions": {
42
+ "org.primer.llm": {
43
+ "usage": ["gap", "padding", "margin", "panel-padding", "section-separation"],
44
+ "rules": "Relaxed (12px). Use for comfortable container padding, relaxed layouts, section separators, and breathing room in dense layouts."
45
+ },
46
+ "org.primer.figma": {
47
+ "collection": "functional/size",
48
+ "scopes": ["gap"]
49
+ }
50
+ },
51
+ "filePath": "src/tokens/functional/spacing/space.json5",
52
+ "isSource": true,
53
+ "original": {
54
+ "$value": "{base.size.12}",
55
+ "$type": "dimension",
56
+ "$description": "Relaxed spacing for breathing room and comfortable internal container space.",
57
+ "$extensions": {
58
+ "org.primer.llm": {
59
+ "usage": ["gap", "padding", "margin", "panel-padding", "section-separation"],
60
+ "rules": "Relaxed (12px). Use for comfortable container padding, relaxed layouts, section separators, and breathing room in dense layouts."
61
+ },
62
+ "org.primer.figma": {
63
+ "collection": "functional/size",
64
+ "scopes": ["gap"]
65
+ }
66
+ },
67
+ "key": "{space.md}"
68
+ },
69
+ "name": "space-md",
70
+ "attributes": {},
71
+ "path": ["space", "md"],
72
+ "value": "0.75rem",
73
+ "type": "dimension",
74
+ "description": "Relaxed spacing for breathing room and comfortable internal container space."
75
+ },
76
+ "space-sm": {
77
+ "key": "{space.sm}",
78
+ "$extensions": {
79
+ "org.primer.llm": {
80
+ "usage": ["gap", "padding", "margin", "flex-gap", "grid-gap", "card-padding"],
81
+ "rules": "Default (8px). Use for standard component spacing, flex/grid item separation, container padding, and most element margins."
82
+ },
83
+ "org.primer.figma": {
84
+ "collection": "functional/size",
85
+ "scopes": ["gap"]
86
+ }
87
+ },
88
+ "filePath": "src/tokens/functional/spacing/space.json5",
89
+ "isSource": true,
90
+ "original": {
91
+ "$value": "{base.size.8}",
92
+ "$type": "dimension",
93
+ "$description": "Default spacing for most UI elements. Comfortable visual density for standard component layouts.",
94
+ "$extensions": {
95
+ "org.primer.llm": {
96
+ "usage": ["gap", "padding", "margin", "flex-gap", "grid-gap", "card-padding"],
97
+ "rules": "Default (8px). Use for standard component spacing, flex/grid item separation, container padding, and most element margins."
98
+ },
99
+ "org.primer.figma": {
100
+ "collection": "functional/size",
101
+ "scopes": ["gap"]
102
+ }
103
+ },
104
+ "key": "{space.sm}"
105
+ },
106
+ "name": "space-sm",
107
+ "attributes": {},
108
+ "path": ["space", "sm"],
109
+ "value": "0.5rem",
110
+ "type": "dimension",
111
+ "description": "Default spacing for most UI elements. Comfortable visual density for standard component layouts."
112
+ },
113
+ "space-xl": {
114
+ "key": "{space.xl}",
115
+ "$extensions": {
116
+ "org.primer.llm": {
117
+ "usage": ["gap", "padding", "margin", "page-sections", "major-divisions"],
118
+ "rules": "Expansive (24px). Use for large section separation, top-level layout structure, major page divisions, and expansive breathing room."
119
+ },
120
+ "org.primer.figma": {
121
+ "collection": "functional/size",
122
+ "scopes": ["gap"]
123
+ }
124
+ },
125
+ "filePath": "src/tokens/functional/spacing/space.json5",
126
+ "isSource": true,
127
+ "original": {
128
+ "$value": "{base.size.24}",
129
+ "$type": "dimension",
130
+ "$description": "Expansive spacing for large sections and top-level structure separation.",
131
+ "$extensions": {
132
+ "org.primer.llm": {
133
+ "usage": ["gap", "padding", "margin", "page-sections", "major-divisions"],
134
+ "rules": "Expansive (24px). Use for large section separation, top-level layout structure, major page divisions, and expansive breathing room."
135
+ },
136
+ "org.primer.figma": {
137
+ "collection": "functional/size",
138
+ "scopes": ["gap"]
139
+ }
140
+ },
141
+ "key": "{space.xl}"
142
+ },
143
+ "name": "space-xl",
144
+ "attributes": {},
145
+ "path": ["space", "xl"],
146
+ "value": "1.5rem",
147
+ "type": "dimension",
148
+ "description": "Expansive spacing for large sections and top-level structure separation."
149
+ },
150
+ "space-xs": {
151
+ "key": "{space.xs}",
152
+ "$extensions": {
153
+ "org.primer.llm": {
154
+ "usage": ["gap", "padding", "margin", "badge-spacing", "list-items"],
155
+ "rules": "Compact (4px). Use for small component spacing, tight list separations, badge padding, and minimal internal margins."
156
+ },
157
+ "org.primer.figma": {
158
+ "collection": "functional/size",
159
+ "scopes": ["gap"]
160
+ }
161
+ },
162
+ "filePath": "src/tokens/functional/spacing/space.json5",
163
+ "isSource": true,
164
+ "original": {
165
+ "$value": "{base.size.4}",
166
+ "$type": "dimension",
167
+ "$description": "Compact spacing for small badges, tight internal spacing, and minimal breathing room.",
168
+ "$extensions": {
169
+ "org.primer.llm": {
170
+ "usage": ["gap", "padding", "margin", "badge-spacing", "list-items"],
171
+ "rules": "Compact (4px). Use for small component spacing, tight list separations, badge padding, and minimal internal margins."
172
+ },
173
+ "org.primer.figma": {
174
+ "collection": "functional/size",
175
+ "scopes": ["gap"]
176
+ }
177
+ },
178
+ "key": "{space.xs}"
179
+ },
180
+ "name": "space-xs",
181
+ "attributes": {},
182
+ "path": ["space", "xs"],
183
+ "value": "0.25rem",
184
+ "type": "dimension",
185
+ "description": "Compact spacing for small badges, tight internal spacing, and minimal breathing room."
186
+ },
187
+ "space-xxs": {
188
+ "key": "{space.xxs}",
189
+ "$extensions": {
190
+ "org.primer.llm": {
191
+ "usage": ["gap", "padding", "margin", "form-separators"],
192
+ "rules": "Ultra-compact (2px). Use for form field separators, tight dividers, and minimal breathing room between small elements."
193
+ },
194
+ "org.primer.figma": {
195
+ "collection": "functional/size",
196
+ "scopes": ["gap"]
197
+ }
198
+ },
199
+ "filePath": "src/tokens/functional/spacing/space.json5",
200
+ "isSource": true,
201
+ "original": {
202
+ "$value": "{base.size.2}",
203
+ "$type": "dimension",
204
+ "$description": "Ultra-compact spacing for form field separators and tight visual divisions.",
205
+ "$extensions": {
206
+ "org.primer.llm": {
207
+ "usage": ["gap", "padding", "margin", "form-separators"],
208
+ "rules": "Ultra-compact (2px). Use for form field separators, tight dividers, and minimal breathing room between small elements."
209
+ },
210
+ "org.primer.figma": {
211
+ "collection": "functional/size",
212
+ "scopes": ["gap"]
213
+ }
214
+ },
215
+ "key": "{space.xxs}"
216
+ },
217
+ "name": "space-xxs",
218
+ "attributes": {},
219
+ "path": ["space", "xxs"],
220
+ "value": "0.125rem",
221
+ "type": "dimension",
222
+ "description": "Ultra-compact spacing for form field separators and tight visual divisions."
223
+ }
224
+ }