@primer/primitives 11.7.0-rc.9e55ef3b → 11.7.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 (80) hide show
  1. package/DESIGN_TOKENS_SPEC.md +6 -10
  2. package/dist/build/platforms/css.js +1 -0
  3. package/dist/css/functional/size/border.css +4 -2
  4. package/dist/css/functional/themes/dark-colorblind-high-contrast.css +6 -4
  5. package/dist/css/functional/themes/dark-colorblind.css +6 -4
  6. package/dist/css/functional/themes/dark-dimmed-high-contrast.css +6 -4
  7. package/dist/css/functional/themes/dark-dimmed.css +6 -4
  8. package/dist/css/functional/themes/dark-high-contrast.css +6 -4
  9. package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +6 -4
  10. package/dist/css/functional/themes/dark-tritanopia.css +6 -4
  11. package/dist/css/functional/themes/dark.css +6 -4
  12. package/dist/css/functional/themes/light-colorblind-high-contrast.css +6 -4
  13. package/dist/css/functional/themes/light-colorblind.css +6 -4
  14. package/dist/css/functional/themes/light-high-contrast.css +6 -4
  15. package/dist/css/functional/themes/light-tritanopia-high-contrast.css +6 -4
  16. package/dist/css/functional/themes/light-tritanopia.css +6 -4
  17. package/dist/css/functional/themes/light.css +6 -4
  18. package/dist/docs/functional/size/border.json +74 -12
  19. package/dist/docs/functional/themes/dark-colorblind-high-contrast.json +41 -11
  20. package/dist/docs/functional/themes/dark-colorblind.json +41 -11
  21. package/dist/docs/functional/themes/dark-dimmed-high-contrast.json +41 -11
  22. package/dist/docs/functional/themes/dark-dimmed.json +41 -11
  23. package/dist/docs/functional/themes/dark-high-contrast.json +41 -11
  24. package/dist/docs/functional/themes/dark-tritanopia-high-contrast.json +41 -11
  25. package/dist/docs/functional/themes/dark-tritanopia.json +41 -11
  26. package/dist/docs/functional/themes/dark.json +41 -11
  27. package/dist/docs/functional/themes/light-colorblind-high-contrast.json +41 -11
  28. package/dist/docs/functional/themes/light-colorblind.json +41 -11
  29. package/dist/docs/functional/themes/light-high-contrast.json +41 -11
  30. package/dist/docs/functional/themes/light-tritanopia-high-contrast.json +41 -11
  31. package/dist/docs/functional/themes/light-tritanopia.json +41 -11
  32. package/dist/docs/functional/themes/light.json +41 -11
  33. package/dist/fallbacks/color-fallbacks.json +1 -0
  34. package/dist/fallbacks/functional/size/border.json +2 -0
  35. package/dist/figma/dimension/dimension.json +46 -22
  36. package/dist/figma/figma.json +1 -1
  37. package/dist/figma/themes/dark-colorblind.json +34 -17
  38. package/dist/figma/themes/dark-dimmed.json +34 -17
  39. package/dist/figma/themes/dark-high-contrast.json +34 -17
  40. package/dist/figma/themes/dark-tritanopia.json +34 -17
  41. package/dist/figma/themes/dark.json +34 -17
  42. package/dist/figma/themes/light-colorblind.json +34 -17
  43. package/dist/figma/themes/light-high-contrast.json +34 -17
  44. package/dist/figma/themes/light-tritanopia.json +34 -17
  45. package/dist/figma/themes/light.json +34 -17
  46. package/dist/internalCss/dark-colorblind-high-contrast.css +12 -22
  47. package/dist/internalCss/dark-colorblind.css +12 -22
  48. package/dist/internalCss/dark-dimmed-high-contrast.css +12 -22
  49. package/dist/internalCss/dark-dimmed.css +12 -22
  50. package/dist/internalCss/dark-high-contrast.css +12 -22
  51. package/dist/internalCss/dark-tritanopia-high-contrast.css +12 -22
  52. package/dist/internalCss/dark-tritanopia.css +12 -22
  53. package/dist/internalCss/dark.css +12 -22
  54. package/dist/internalCss/light-colorblind-high-contrast.css +12 -22
  55. package/dist/internalCss/light-colorblind.css +12 -22
  56. package/dist/internalCss/light-high-contrast.css +12 -22
  57. package/dist/internalCss/light-tritanopia-high-contrast.css +12 -22
  58. package/dist/internalCss/light-tritanopia.css +12 -22
  59. package/dist/internalCss/light.css +12 -22
  60. package/dist/styleLint/functional/size/border.json +75 -13
  61. package/dist/styleLint/functional/themes/dark-colorblind-high-contrast.json +44 -10
  62. package/dist/styleLint/functional/themes/dark-colorblind.json +44 -10
  63. package/dist/styleLint/functional/themes/dark-dimmed-high-contrast.json +44 -10
  64. package/dist/styleLint/functional/themes/dark-dimmed.json +44 -10
  65. package/dist/styleLint/functional/themes/dark-high-contrast.json +44 -10
  66. package/dist/styleLint/functional/themes/dark-tritanopia-high-contrast.json +44 -10
  67. package/dist/styleLint/functional/themes/dark-tritanopia.json +44 -10
  68. package/dist/styleLint/functional/themes/dark.json +44 -10
  69. package/dist/styleLint/functional/themes/light-colorblind-high-contrast.json +44 -10
  70. package/dist/styleLint/functional/themes/light-colorblind.json +44 -10
  71. package/dist/styleLint/functional/themes/light-high-contrast.json +44 -10
  72. package/dist/styleLint/functional/themes/light-tritanopia-high-contrast.json +44 -10
  73. package/dist/styleLint/functional/themes/light-tritanopia.json +44 -10
  74. package/dist/styleLint/functional/themes/light.json +44 -10
  75. package/package.json +2 -2
  76. package/src/tokens/component/focus.json5 +104 -0
  77. package/src/tokens/fallback/color-fallbacks.json +1 -0
  78. package/src/tokens/functional/border/border.json5 +0 -20
  79. package/src/tokens/functional/size/border.json5 +0 -30
  80. package/src/tokens/functional/color/focus.json5 +0 -20
@@ -183,40 +183,40 @@
183
183
  "type": "custom-string",
184
184
  "description": "Thin shadow used instead of a border to prevent layout shift"
185
185
  },
186
- "outline-focus-offset": {
187
- "key": "{outline.focus.offset}",
186
+ "focus-outline-offset": {
187
+ "key": "{focus.outline-offset}",
188
188
  "$extensions": {
189
189
  "org.primer.figma": {
190
190
  "collection": "functional/size",
191
191
  "scopes": ["borderWidth", "effectFloat"]
192
192
  }
193
193
  },
194
- "filePath": "src/tokens/functional/size/border.json5",
194
+ "filePath": "src/tokens/component/focus.json5",
195
195
  "isSource": true,
196
196
  "original": {
197
197
  "$value": {
198
198
  "value": -2,
199
199
  "unit": "px"
200
200
  },
201
- "$description": "Focus outline offset (-2px). Negative value creates an inset outline for keyboard focus indicators, ensuring the focus ring stays within the element bounds",
202
201
  "$type": "dimension",
202
+ "$description": "Focus outline offset (-2px). Negative value creates an inset outline for keyboard focus indicators, ensuring the focus ring stays within the element bounds",
203
203
  "$extensions": {
204
204
  "org.primer.figma": {
205
205
  "collection": "functional/size",
206
206
  "scopes": ["borderWidth", "effectFloat"]
207
207
  }
208
208
  },
209
- "key": "{outline.focus.offset}"
209
+ "key": "{focus.outline-offset}"
210
210
  },
211
- "name": "outline-focus-offset",
211
+ "name": "focus-outline-offset",
212
212
  "attributes": {},
213
- "path": ["outline", "focus", "offset"],
213
+ "path": ["focus", "outline-offset"],
214
214
  "value": "-0.125rem",
215
215
  "type": "dimension",
216
216
  "description": "Focus outline offset (-2px). Negative value creates an inset outline for keyboard focus indicators, ensuring the focus ring stays within the element bounds"
217
217
  },
218
- "outline-focus-width": {
219
- "key": "{outline.focus.width}",
218
+ "focus-outline-width": {
219
+ "key": "{focus.outline-width}",
220
220
  "$extensions": {
221
221
  "org.primer.figma": {
222
222
  "collection": "functional/size",
@@ -227,15 +227,15 @@
227
227
  "rules": "MUST use for all keyboard focus indicators. Required for WCAG 2.4.7 compliance."
228
228
  }
229
229
  },
230
- "filePath": "src/tokens/functional/size/border.json5",
230
+ "filePath": "src/tokens/component/focus.json5",
231
231
  "isSource": true,
232
232
  "original": {
233
233
  "$value": {
234
234
  "value": 2,
235
235
  "unit": "px"
236
236
  },
237
- "$description": "Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements",
238
237
  "$type": "dimension",
238
+ "$description": "Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements",
239
239
  "$extensions": {
240
240
  "org.primer.figma": {
241
241
  "collection": "functional/size",
@@ -246,6 +246,68 @@
246
246
  "rules": "MUST use for all keyboard focus indicators. Required for WCAG 2.4.7 compliance."
247
247
  }
248
248
  },
249
+ "key": "{focus.outline-width}"
250
+ },
251
+ "name": "focus-outline-width",
252
+ "attributes": {},
253
+ "path": ["focus", "outline-width"],
254
+ "value": "0.125rem",
255
+ "type": "dimension",
256
+ "description": "Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements"
257
+ },
258
+ "outline-focus-offset": {
259
+ "key": "{outline.focus.offset}",
260
+ "$deprecated": "-0.125rem",
261
+ "$extensions": {
262
+ "org.primer.figma": {
263
+ "collection": "functional/size",
264
+ "scopes": ["borderWidth", "effectFloat"]
265
+ }
266
+ },
267
+ "filePath": "src/tokens/component/focus.json5",
268
+ "isSource": true,
269
+ "original": {
270
+ "$value": "{focus.outline-offset}",
271
+ "$type": "dimension",
272
+ "$deprecated": "{focus.outline-offset}",
273
+ "$description": "Deprecated. Use focus.outline-offset instead.",
274
+ "$extensions": {
275
+ "org.primer.figma": {
276
+ "collection": "functional/size",
277
+ "scopes": ["borderWidth", "effectFloat"]
278
+ }
279
+ },
280
+ "key": "{outline.focus.offset}"
281
+ },
282
+ "name": "outline-focus-offset",
283
+ "attributes": {},
284
+ "path": ["outline", "focus", "offset"],
285
+ "value": "-0.125rem",
286
+ "type": "dimension",
287
+ "description": "Deprecated. Use focus.outline-offset instead."
288
+ },
289
+ "outline-focus-width": {
290
+ "key": "{outline.focus.width}",
291
+ "$deprecated": "0.125rem",
292
+ "$extensions": {
293
+ "org.primer.figma": {
294
+ "collection": "functional/size",
295
+ "scopes": ["borderWidth", "effectFloat"]
296
+ }
297
+ },
298
+ "filePath": "src/tokens/component/focus.json5",
299
+ "isSource": true,
300
+ "original": {
301
+ "$value": "{focus.outline-width}",
302
+ "$type": "dimension",
303
+ "$deprecated": "{focus.outline-width}",
304
+ "$description": "Deprecated. Use focus.outline-width instead.",
305
+ "$extensions": {
306
+ "org.primer.figma": {
307
+ "collection": "functional/size",
308
+ "scopes": ["borderWidth", "effectFloat"]
309
+ }
310
+ },
249
311
  "key": "{outline.focus.width}"
250
312
  },
251
313
  "name": "outline-focus-width",
@@ -253,6 +315,6 @@
253
315
  "path": ["outline", "focus", "width"],
254
316
  "value": "0.125rem",
255
317
  "type": "dimension",
256
- "description": "Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements"
318
+ "description": "Deprecated. Use focus.outline-width instead."
257
319
  }
258
320
  }
@@ -39505,16 +39505,13 @@
39505
39505
  "rules": "Always ensure focus states are visible. Do not override with custom focus styles that reduce visibility. Use for interactive elements like buttons, links, and form controls."
39506
39506
  }
39507
39507
  },
39508
- "filePath": "src/tokens/functional/border/border.json5",
39508
+ "filePath": "src/tokens/component/focus.json5",
39509
39509
  "isSource": true,
39510
39510
  "original": {
39511
39511
  "$value": {
39512
- "color": "{focus.outlineColor}",
39512
+ "color": "{focus.outline-color}",
39513
39513
  "style": "solid",
39514
- "width": {
39515
- "value": 2,
39516
- "unit": "px"
39517
- }
39514
+ "width": "{focus.outline-width}"
39518
39515
  },
39519
39516
  "$type": "border",
39520
39517
  "$description": "Focus ring outline for keyboard navigation and accessibility.",
@@ -39529,12 +39526,12 @@
39529
39526
  "name": "focus-outline",
39530
39527
  "attributes": {},
39531
39528
  "path": ["focus", "outline"],
39532
- "value": "2px solid #409eff",
39529
+ "value": "0.125rem solid #409eff",
39533
39530
  "type": "border",
39534
39531
  "description": "Focus ring outline for keyboard navigation and accessibility."
39535
39532
  },
39536
- "focus-outlineColor": {
39537
- "key": "{focus.outlineColor}",
39533
+ "focus-outline-color": {
39534
+ "key": "{focus.outline-color}",
39538
39535
  "$extensions": {
39539
39536
  "org.primer.figma": {
39540
39537
  "collection": "mode",
@@ -39546,7 +39543,7 @@
39546
39543
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39547
39544
  }
39548
39545
  },
39549
- "filePath": "src/tokens/functional/color/focus.json5",
39546
+ "filePath": "src/tokens/component/focus.json5",
39550
39547
  "isSource": true,
39551
39548
  "original": {
39552
39549
  "$value": "{borderColor.accent.emphasis}",
@@ -39563,6 +39560,39 @@
39563
39560
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39564
39561
  }
39565
39562
  },
39563
+ "key": "{focus.outline-color}"
39564
+ },
39565
+ "name": "focus-outline-color",
39566
+ "attributes": {},
39567
+ "path": ["focus", "outline-color"],
39568
+ "value": "#409eff",
39569
+ "type": "color",
39570
+ "description": "Outline color for focus states on interactive elements"
39571
+ },
39572
+ "focus-outlineColor": {
39573
+ "key": "{focus.outlineColor}",
39574
+ "$deprecated": "#409eff",
39575
+ "$extensions": {
39576
+ "org.primer.figma": {
39577
+ "collection": "mode",
39578
+ "group": "component (internal)",
39579
+ "scopes": ["borderColor", "effectColor"]
39580
+ }
39581
+ },
39582
+ "filePath": "src/tokens/component/focus.json5",
39583
+ "isSource": true,
39584
+ "original": {
39585
+ "$value": "{focus.outline-color}",
39586
+ "$type": "color",
39587
+ "$deprecated": "{focus.outline-color}",
39588
+ "$description": "Deprecated. Use focus.outline-color instead.",
39589
+ "$extensions": {
39590
+ "org.primer.figma": {
39591
+ "collection": "mode",
39592
+ "group": "component (internal)",
39593
+ "scopes": ["borderColor", "effectColor"]
39594
+ }
39595
+ },
39566
39596
  "key": "{focus.outlineColor}"
39567
39597
  },
39568
39598
  "name": "focus-outlineColor",
@@ -39570,7 +39600,7 @@
39570
39600
  "path": ["focus", "outlineColor"],
39571
39601
  "value": "#409eff",
39572
39602
  "type": "color",
39573
- "description": "Outline color for focus states on interactive elements"
39603
+ "description": "Deprecated. Use focus.outline-color instead."
39574
39604
  },
39575
39605
  "header-bgColor": {
39576
39606
  "key": "{header.bgColor}",
@@ -39497,16 +39497,13 @@
39497
39497
  "rules": "Always ensure focus states are visible. Do not override with custom focus styles that reduce visibility. Use for interactive elements like buttons, links, and form controls."
39498
39498
  }
39499
39499
  },
39500
- "filePath": "src/tokens/functional/border/border.json5",
39500
+ "filePath": "src/tokens/component/focus.json5",
39501
39501
  "isSource": true,
39502
39502
  "original": {
39503
39503
  "$value": {
39504
- "color": "{focus.outlineColor}",
39504
+ "color": "{focus.outline-color}",
39505
39505
  "style": "solid",
39506
- "width": {
39507
- "value": 2,
39508
- "unit": "px"
39509
- }
39506
+ "width": "{focus.outline-width}"
39510
39507
  },
39511
39508
  "$type": "border",
39512
39509
  "$description": "Focus ring outline for keyboard navigation and accessibility.",
@@ -39521,12 +39518,12 @@
39521
39518
  "name": "focus-outline",
39522
39519
  "attributes": {},
39523
39520
  "path": ["focus", "outline"],
39524
- "value": "2px solid #1f6feb",
39521
+ "value": "0.125rem solid #1f6feb",
39525
39522
  "type": "border",
39526
39523
  "description": "Focus ring outline for keyboard navigation and accessibility."
39527
39524
  },
39528
- "focus-outlineColor": {
39529
- "key": "{focus.outlineColor}",
39525
+ "focus-outline-color": {
39526
+ "key": "{focus.outline-color}",
39530
39527
  "$extensions": {
39531
39528
  "org.primer.figma": {
39532
39529
  "collection": "mode",
@@ -39538,7 +39535,7 @@
39538
39535
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39539
39536
  }
39540
39537
  },
39541
- "filePath": "src/tokens/functional/color/focus.json5",
39538
+ "filePath": "src/tokens/component/focus.json5",
39542
39539
  "isSource": true,
39543
39540
  "original": {
39544
39541
  "$value": "{borderColor.accent.emphasis}",
@@ -39555,6 +39552,39 @@
39555
39552
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39556
39553
  }
39557
39554
  },
39555
+ "key": "{focus.outline-color}"
39556
+ },
39557
+ "name": "focus-outline-color",
39558
+ "attributes": {},
39559
+ "path": ["focus", "outline-color"],
39560
+ "value": "#1f6feb",
39561
+ "type": "color",
39562
+ "description": "Outline color for focus states on interactive elements"
39563
+ },
39564
+ "focus-outlineColor": {
39565
+ "key": "{focus.outlineColor}",
39566
+ "$deprecated": "#1f6feb",
39567
+ "$extensions": {
39568
+ "org.primer.figma": {
39569
+ "collection": "mode",
39570
+ "group": "component (internal)",
39571
+ "scopes": ["borderColor", "effectColor"]
39572
+ }
39573
+ },
39574
+ "filePath": "src/tokens/component/focus.json5",
39575
+ "isSource": true,
39576
+ "original": {
39577
+ "$value": "{focus.outline-color}",
39578
+ "$type": "color",
39579
+ "$deprecated": "{focus.outline-color}",
39580
+ "$description": "Deprecated. Use focus.outline-color instead.",
39581
+ "$extensions": {
39582
+ "org.primer.figma": {
39583
+ "collection": "mode",
39584
+ "group": "component (internal)",
39585
+ "scopes": ["borderColor", "effectColor"]
39586
+ }
39587
+ },
39558
39588
  "key": "{focus.outlineColor}"
39559
39589
  },
39560
39590
  "name": "focus-outlineColor",
@@ -39562,7 +39592,7 @@
39562
39592
  "path": ["focus", "outlineColor"],
39563
39593
  "value": "#1f6feb",
39564
39594
  "type": "color",
39565
- "description": "Outline color for focus states on interactive elements"
39595
+ "description": "Deprecated. Use focus.outline-color instead."
39566
39596
  },
39567
39597
  "header-bgColor": {
39568
39598
  "key": "{header.bgColor}",
@@ -39515,16 +39515,13 @@
39515
39515
  "rules": "Always ensure focus states are visible. Do not override with custom focus styles that reduce visibility. Use for interactive elements like buttons, links, and form controls."
39516
39516
  }
39517
39517
  },
39518
- "filePath": "src/tokens/functional/border/border.json5",
39518
+ "filePath": "src/tokens/component/focus.json5",
39519
39519
  "isSource": true,
39520
39520
  "original": {
39521
39521
  "$value": {
39522
- "color": "{focus.outlineColor}",
39522
+ "color": "{focus.outline-color}",
39523
39523
  "style": "solid",
39524
- "width": {
39525
- "value": 2,
39526
- "unit": "px"
39527
- }
39524
+ "width": "{focus.outline-width}"
39528
39525
  },
39529
39526
  "$type": "border",
39530
39527
  "$description": "Focus ring outline for keyboard navigation and accessibility.",
@@ -39539,12 +39536,12 @@
39539
39536
  "name": "focus-outline",
39540
39537
  "attributes": {},
39541
39538
  "path": ["focus", "outline"],
39542
- "value": "2px solid #6cb6ff",
39539
+ "value": "0.125rem solid #6cb6ff",
39543
39540
  "type": "border",
39544
39541
  "description": "Focus ring outline for keyboard navigation and accessibility."
39545
39542
  },
39546
- "focus-outlineColor": {
39547
- "key": "{focus.outlineColor}",
39543
+ "focus-outline-color": {
39544
+ "key": "{focus.outline-color}",
39548
39545
  "$extensions": {
39549
39546
  "org.primer.figma": {
39550
39547
  "collection": "mode",
@@ -39556,7 +39553,7 @@
39556
39553
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39557
39554
  }
39558
39555
  },
39559
- "filePath": "src/tokens/functional/color/focus.json5",
39556
+ "filePath": "src/tokens/component/focus.json5",
39560
39557
  "isSource": true,
39561
39558
  "original": {
39562
39559
  "$value": "{borderColor.accent.emphasis}",
@@ -39573,6 +39570,39 @@
39573
39570
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39574
39571
  }
39575
39572
  },
39573
+ "key": "{focus.outline-color}"
39574
+ },
39575
+ "name": "focus-outline-color",
39576
+ "attributes": {},
39577
+ "path": ["focus", "outline-color"],
39578
+ "value": "#6cb6ff",
39579
+ "type": "color",
39580
+ "description": "Outline color for focus states on interactive elements"
39581
+ },
39582
+ "focus-outlineColor": {
39583
+ "key": "{focus.outlineColor}",
39584
+ "$deprecated": "#6cb6ff",
39585
+ "$extensions": {
39586
+ "org.primer.figma": {
39587
+ "collection": "mode",
39588
+ "group": "component (internal)",
39589
+ "scopes": ["borderColor", "effectColor"]
39590
+ }
39591
+ },
39592
+ "filePath": "src/tokens/component/focus.json5",
39593
+ "isSource": true,
39594
+ "original": {
39595
+ "$value": "{focus.outline-color}",
39596
+ "$type": "color",
39597
+ "$deprecated": "{focus.outline-color}",
39598
+ "$description": "Deprecated. Use focus.outline-color instead.",
39599
+ "$extensions": {
39600
+ "org.primer.figma": {
39601
+ "collection": "mode",
39602
+ "group": "component (internal)",
39603
+ "scopes": ["borderColor", "effectColor"]
39604
+ }
39605
+ },
39576
39606
  "key": "{focus.outlineColor}"
39577
39607
  },
39578
39608
  "name": "focus-outlineColor",
@@ -39580,7 +39610,7 @@
39580
39610
  "path": ["focus", "outlineColor"],
39581
39611
  "value": "#6cb6ff",
39582
39612
  "type": "color",
39583
- "description": "Outline color for focus states on interactive elements"
39613
+ "description": "Deprecated. Use focus.outline-color instead."
39584
39614
  },
39585
39615
  "header-bgColor": {
39586
39616
  "key": "{header.bgColor}",
@@ -39535,16 +39535,13 @@
39535
39535
  "rules": "Always ensure focus states are visible. Do not override with custom focus styles that reduce visibility. Use for interactive elements like buttons, links, and form controls."
39536
39536
  }
39537
39537
  },
39538
- "filePath": "src/tokens/functional/border/border.json5",
39538
+ "filePath": "src/tokens/component/focus.json5",
39539
39539
  "isSource": true,
39540
39540
  "original": {
39541
39541
  "$value": {
39542
- "color": "{focus.outlineColor}",
39542
+ "color": "{focus.outline-color}",
39543
39543
  "style": "solid",
39544
- "width": {
39545
- "value": 2,
39546
- "unit": "px"
39547
- }
39544
+ "width": "{focus.outline-width}"
39548
39545
  },
39549
39546
  "$type": "border",
39550
39547
  "$description": "Focus ring outline for keyboard navigation and accessibility.",
@@ -39559,12 +39556,12 @@
39559
39556
  "name": "focus-outline",
39560
39557
  "attributes": {},
39561
39558
  "path": ["focus", "outline"],
39562
- "value": "2px solid #316dca",
39559
+ "value": "0.125rem solid #316dca",
39563
39560
  "type": "border",
39564
39561
  "description": "Focus ring outline for keyboard navigation and accessibility."
39565
39562
  },
39566
- "focus-outlineColor": {
39567
- "key": "{focus.outlineColor}",
39563
+ "focus-outline-color": {
39564
+ "key": "{focus.outline-color}",
39568
39565
  "$extensions": {
39569
39566
  "org.primer.figma": {
39570
39567
  "collection": "mode",
@@ -39576,7 +39573,7 @@
39576
39573
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39577
39574
  }
39578
39575
  },
39579
- "filePath": "src/tokens/functional/color/focus.json5",
39576
+ "filePath": "src/tokens/component/focus.json5",
39580
39577
  "isSource": true,
39581
39578
  "original": {
39582
39579
  "$value": "{borderColor.accent.emphasis}",
@@ -39593,6 +39590,39 @@
39593
39590
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39594
39591
  }
39595
39592
  },
39593
+ "key": "{focus.outline-color}"
39594
+ },
39595
+ "name": "focus-outline-color",
39596
+ "attributes": {},
39597
+ "path": ["focus", "outline-color"],
39598
+ "value": "#316dca",
39599
+ "type": "color",
39600
+ "description": "Outline color for focus states on interactive elements"
39601
+ },
39602
+ "focus-outlineColor": {
39603
+ "key": "{focus.outlineColor}",
39604
+ "$deprecated": "#316dca",
39605
+ "$extensions": {
39606
+ "org.primer.figma": {
39607
+ "collection": "mode",
39608
+ "group": "component (internal)",
39609
+ "scopes": ["borderColor", "effectColor"]
39610
+ }
39611
+ },
39612
+ "filePath": "src/tokens/component/focus.json5",
39613
+ "isSource": true,
39614
+ "original": {
39615
+ "$value": "{focus.outline-color}",
39616
+ "$type": "color",
39617
+ "$deprecated": "{focus.outline-color}",
39618
+ "$description": "Deprecated. Use focus.outline-color instead.",
39619
+ "$extensions": {
39620
+ "org.primer.figma": {
39621
+ "collection": "mode",
39622
+ "group": "component (internal)",
39623
+ "scopes": ["borderColor", "effectColor"]
39624
+ }
39625
+ },
39596
39626
  "key": "{focus.outlineColor}"
39597
39627
  },
39598
39628
  "name": "focus-outlineColor",
@@ -39600,7 +39630,7 @@
39600
39630
  "path": ["focus", "outlineColor"],
39601
39631
  "value": "#316dca",
39602
39632
  "type": "color",
39603
- "description": "Outline color for focus states on interactive elements"
39633
+ "description": "Deprecated. Use focus.outline-color instead."
39604
39634
  },
39605
39635
  "header-bgColor": {
39606
39636
  "key": "{header.bgColor}",
@@ -39505,16 +39505,13 @@
39505
39505
  "rules": "Always ensure focus states are visible. Do not override with custom focus styles that reduce visibility. Use for interactive elements like buttons, links, and form controls."
39506
39506
  }
39507
39507
  },
39508
- "filePath": "src/tokens/functional/border/border.json5",
39508
+ "filePath": "src/tokens/component/focus.json5",
39509
39509
  "isSource": true,
39510
39510
  "original": {
39511
39511
  "$value": {
39512
- "color": "{focus.outlineColor}",
39512
+ "color": "{focus.outline-color}",
39513
39513
  "style": "solid",
39514
- "width": {
39515
- "value": 2,
39516
- "unit": "px"
39517
- }
39514
+ "width": "{focus.outline-width}"
39518
39515
  },
39519
39516
  "$type": "border",
39520
39517
  "$description": "Focus ring outline for keyboard navigation and accessibility.",
@@ -39529,12 +39526,12 @@
39529
39526
  "name": "focus-outline",
39530
39527
  "attributes": {},
39531
39528
  "path": ["focus", "outline"],
39532
- "value": "2px solid #409eff",
39529
+ "value": "0.125rem solid #409eff",
39533
39530
  "type": "border",
39534
39531
  "description": "Focus ring outline for keyboard navigation and accessibility."
39535
39532
  },
39536
- "focus-outlineColor": {
39537
- "key": "{focus.outlineColor}",
39533
+ "focus-outline-color": {
39534
+ "key": "{focus.outline-color}",
39538
39535
  "$extensions": {
39539
39536
  "org.primer.figma": {
39540
39537
  "collection": "mode",
@@ -39546,7 +39543,7 @@
39546
39543
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39547
39544
  }
39548
39545
  },
39549
- "filePath": "src/tokens/functional/color/focus.json5",
39546
+ "filePath": "src/tokens/component/focus.json5",
39550
39547
  "isSource": true,
39551
39548
  "original": {
39552
39549
  "$value": "{borderColor.accent.emphasis}",
@@ -39563,6 +39560,39 @@
39563
39560
  "rules": "Use for focus outlines on interactive elements like buttons, links, and form controls. MUST be visible for keyboard navigation accessibility. Do NOT use for decorative borders or non-interactive elements."
39564
39561
  }
39565
39562
  },
39563
+ "key": "{focus.outline-color}"
39564
+ },
39565
+ "name": "focus-outline-color",
39566
+ "attributes": {},
39567
+ "path": ["focus", "outline-color"],
39568
+ "value": "#409eff",
39569
+ "type": "color",
39570
+ "description": "Outline color for focus states on interactive elements"
39571
+ },
39572
+ "focus-outlineColor": {
39573
+ "key": "{focus.outlineColor}",
39574
+ "$deprecated": "#409eff",
39575
+ "$extensions": {
39576
+ "org.primer.figma": {
39577
+ "collection": "mode",
39578
+ "group": "component (internal)",
39579
+ "scopes": ["borderColor", "effectColor"]
39580
+ }
39581
+ },
39582
+ "filePath": "src/tokens/component/focus.json5",
39583
+ "isSource": true,
39584
+ "original": {
39585
+ "$value": "{focus.outline-color}",
39586
+ "$type": "color",
39587
+ "$deprecated": "{focus.outline-color}",
39588
+ "$description": "Deprecated. Use focus.outline-color instead.",
39589
+ "$extensions": {
39590
+ "org.primer.figma": {
39591
+ "collection": "mode",
39592
+ "group": "component (internal)",
39593
+ "scopes": ["borderColor", "effectColor"]
39594
+ }
39595
+ },
39566
39596
  "key": "{focus.outlineColor}"
39567
39597
  },
39568
39598
  "name": "focus-outlineColor",
@@ -39570,7 +39600,7 @@
39570
39600
  "path": ["focus", "outlineColor"],
39571
39601
  "value": "#409eff",
39572
39602
  "type": "color",
39573
- "description": "Outline color for focus states on interactive elements"
39603
+ "description": "Deprecated. Use focus.outline-color instead."
39574
39604
  },
39575
39605
  "header-bgColor": {
39576
39606
  "key": "{header.bgColor}",