@primer/primitives 11.4.0-rc.f798df25 → 11.4.1-rc.4e2d1de5
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.
- package/DESIGN_TOKENS_GUIDE.md +185 -0
- package/DESIGN_TOKENS_SPEC.md +565 -0
- package/dist/build/filters/hasLlmExtensions.d.ts +7 -0
- package/dist/build/filters/hasLlmExtensions.js +11 -0
- package/dist/build/filters/index.d.ts +1 -0
- package/dist/build/filters/index.js +1 -0
- package/dist/build/formats/index.d.ts +1 -0
- package/dist/build/formats/index.js +1 -0
- package/dist/build/formats/markdownLlmGuidelines.d.ts +11 -0
- package/dist/build/formats/markdownLlmGuidelines.js +1168 -0
- package/dist/build/platforms/index.d.ts +1 -0
- package/dist/build/platforms/index.js +1 -0
- package/dist/build/platforms/llmGuidelines.d.ts +2 -0
- package/dist/build/platforms/llmGuidelines.js +17 -0
- package/dist/build/preprocessors/inheritGroupProperties.d.ts +7 -0
- package/dist/build/preprocessors/inheritGroupProperties.js +70 -0
- package/dist/build/primerStyleDictionary.js +7 -1
- package/dist/build/schemas/borderToken.d.ts +22 -2
- package/dist/build/schemas/borderToken.js +6 -0
- package/dist/build/schemas/colorToken.d.ts +4 -0
- package/dist/build/schemas/colorToken.js +2 -0
- package/dist/build/schemas/cubicBezierToken.d.ts +6 -0
- package/dist/build/schemas/cubicBezierToken.js +10 -2
- package/dist/build/schemas/designToken.d.ts +1 -1
- package/dist/build/schemas/designToken.js +113 -21
- package/dist/build/schemas/dimensionToken.d.ts +14 -3
- package/dist/build/schemas/dimensionToken.js +6 -2
- package/dist/build/schemas/dimensionValue.d.ts +24 -1
- package/dist/build/schemas/dimensionValue.js +20 -1
- package/dist/build/schemas/durationToken.d.ts +13 -1
- package/dist/build/schemas/durationToken.js +6 -0
- package/dist/build/schemas/durationValue.d.ts +11 -1
- package/dist/build/schemas/durationValue.js +13 -3
- package/dist/build/schemas/fontFamilyToken.d.ts +4 -0
- package/dist/build/schemas/fontFamilyToken.js +2 -0
- package/dist/build/schemas/fontWeightToken.d.ts +4 -0
- package/dist/build/schemas/fontWeightToken.js +2 -0
- package/dist/build/schemas/gradientToken.d.ts +4 -0
- package/dist/build/schemas/gradientToken.js +2 -0
- package/dist/build/schemas/llmExtension.d.ts +9 -0
- package/dist/build/schemas/llmExtension.js +11 -0
- package/dist/build/schemas/numberToken.d.ts +4 -0
- package/dist/build/schemas/numberToken.js +2 -0
- package/dist/build/schemas/shadowToken.d.ts +676 -84
- package/dist/build/schemas/shadowToken.js +2 -0
- package/dist/build/schemas/stringToken.d.ts +6 -0
- package/dist/build/schemas/stringToken.js +6 -0
- package/dist/build/schemas/transitionToken.d.ts +20 -2
- package/dist/build/schemas/transitionToken.js +6 -0
- package/dist/build/schemas/typographyToken.d.ts +38 -4
- package/dist/build/schemas/typographyToken.js +6 -0
- package/dist/build/schemas/validTokenType.d.ts +5 -1
- package/dist/build/schemas/validTokenType.js +71 -17
- package/dist/build/schemas/viewportRangeToken.d.ts +6 -0
- package/dist/build/schemas/viewportRangeToken.js +6 -0
- package/dist/build/transformers/dimensionToPixelUnitless.d.ts +3 -2
- package/dist/build/transformers/dimensionToPixelUnitless.js +22 -26
- package/dist/build/transformers/dimensionToRem.d.ts +2 -1
- package/dist/build/transformers/dimensionToRem.js +21 -22
- package/dist/build/transformers/dimensionToRemPxArray.d.ts +2 -1
- package/dist/build/transformers/dimensionToRemPxArray.js +21 -22
- package/dist/build/transformers/durationToCss.d.ts +2 -1
- package/dist/build/transformers/durationToCss.js +18 -11
- package/dist/build/transformers/utilities/parseDimension.d.ts +12 -0
- package/dist/build/transformers/utilities/parseDimension.js +31 -0
- package/dist/build/types/dimensionTokenValue.d.ts +9 -0
- package/dist/css/base/motion/motion.css +5 -4
- package/dist/css/functional/size/border.css +9 -14
- package/dist/css/functional/size/radius.css +7 -0
- package/dist/css/functional/size/size-coarse.css +3 -3
- package/dist/css/functional/size/size-fine.css +3 -3
- package/dist/css/functional/size/viewport.css +1 -1
- package/dist/css/functional/themes/dark-colorblind-high-contrast.css +194 -190
- package/dist/css/functional/themes/dark-colorblind.css +194 -190
- package/dist/css/functional/themes/dark-dimmed-high-contrast.css +194 -190
- package/dist/css/functional/themes/dark-dimmed.css +194 -190
- package/dist/css/functional/themes/dark-high-contrast.css +194 -190
- package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +194 -190
- package/dist/css/functional/themes/dark-tritanopia.css +194 -190
- package/dist/css/functional/themes/dark.css +194 -190
- package/dist/css/functional/themes/light-colorblind-high-contrast.css +194 -190
- package/dist/css/functional/themes/light-colorblind.css +194 -190
- package/dist/css/functional/themes/light-high-contrast.css +194 -190
- package/dist/css/functional/themes/light-tritanopia-high-contrast.css +194 -190
- package/dist/css/functional/themes/light-tritanopia.css +194 -190
- package/dist/css/functional/themes/light.css +194 -190
- package/dist/css/functional/typography/typography.css +4 -4
- package/dist/css/primitives.css +5 -0
- package/dist/docs/base/motion/motion.json +181 -32
- package/dist/docs/base/size/size.json +76 -19
- package/dist/docs/base/typography/typography.json +24 -6
- package/dist/docs/functional/size/border.json +62 -182
- package/dist/docs/functional/size/breakpoints.json +24 -6
- package/dist/docs/functional/size/radius.json +221 -0
- package/dist/docs/functional/size/size-coarse.json +45 -3
- package/dist/docs/functional/size/size-fine.json +45 -3
- package/dist/docs/functional/size/size.json +60 -15
- package/dist/docs/functional/size/viewport.json +2 -2
- package/dist/docs/functional/themes/dark-colorblind-high-contrast.json +1043 -97
- package/dist/docs/functional/themes/dark-colorblind.json +1043 -97
- package/dist/docs/functional/themes/dark-dimmed-high-contrast.json +1043 -97
- package/dist/docs/functional/themes/dark-dimmed.json +1081 -135
- package/dist/docs/functional/themes/dark-high-contrast.json +1043 -97
- package/dist/docs/functional/themes/dark-tritanopia-high-contrast.json +1043 -97
- package/dist/docs/functional/themes/dark-tritanopia.json +1043 -97
- package/dist/docs/functional/themes/dark.json +1043 -97
- package/dist/docs/functional/themes/light-colorblind-high-contrast.json +1049 -103
- package/dist/docs/functional/themes/light-colorblind.json +1049 -103
- package/dist/docs/functional/themes/light-high-contrast.json +1049 -103
- package/dist/docs/functional/themes/light-tritanopia-high-contrast.json +1049 -103
- package/dist/docs/functional/themes/light-tritanopia.json +1049 -103
- package/dist/docs/functional/themes/light.json +1049 -103
- package/dist/docs/functional/typography/typography.json +180 -10
- package/dist/fallbacks/base/motion/motion.json +49 -12
- package/dist/fallbacks/functional/size/border.json +0 -5
- package/dist/fallbacks/functional/size/radius.json +7 -0
- package/dist/fallbacks/functional/size/viewport.json +1 -1
- package/dist/figma/dimension/dimension.json +30 -20
- package/dist/figma/themes/dark-colorblind.json +85 -0
- package/dist/figma/themes/dark-dimmed.json +134 -49
- package/dist/figma/themes/dark-high-contrast.json +85 -0
- package/dist/figma/themes/dark-tritanopia.json +85 -0
- package/dist/figma/themes/dark.json +85 -0
- package/dist/figma/themes/light-colorblind.json +89 -4
- package/dist/figma/themes/light-high-contrast.json +89 -4
- package/dist/figma/themes/light-tritanopia.json +89 -4
- package/dist/figma/themes/light.json +89 -4
- package/dist/figma/typography/typography.json +44 -40
- package/dist/internalCss/dark-colorblind-high-contrast.css +208 -218
- package/dist/internalCss/dark-colorblind.css +208 -218
- package/dist/internalCss/dark-dimmed-high-contrast.css +208 -218
- package/dist/internalCss/dark-dimmed.css +208 -218
- package/dist/internalCss/dark-high-contrast.css +208 -218
- package/dist/internalCss/dark-tritanopia-high-contrast.css +208 -218
- package/dist/internalCss/dark-tritanopia.css +208 -218
- package/dist/internalCss/dark.css +208 -218
- package/dist/internalCss/light-colorblind-high-contrast.css +208 -218
- package/dist/internalCss/light-colorblind.css +208 -218
- package/dist/internalCss/light-high-contrast.css +208 -218
- package/dist/internalCss/light-tritanopia-high-contrast.css +208 -218
- package/dist/internalCss/light-tritanopia.css +208 -218
- package/dist/internalCss/light.css +208 -218
- package/dist/styleLint/base/motion/motion.json +181 -32
- package/dist/styleLint/base/size/size.json +76 -19
- package/dist/styleLint/base/typography/typography.json +30 -12
- package/dist/styleLint/functional/size/border.json +55 -175
- package/dist/styleLint/functional/size/breakpoints.json +24 -6
- package/dist/styleLint/functional/size/radius.json +221 -0
- package/dist/styleLint/functional/size/size-coarse.json +45 -3
- package/dist/styleLint/functional/size/size-fine.json +45 -3
- package/dist/styleLint/functional/size/size.json +111 -66
- package/dist/styleLint/functional/size/viewport.json +2 -2
- package/dist/styleLint/functional/themes/dark-colorblind-high-contrast.json +975 -29
- package/dist/styleLint/functional/themes/dark-colorblind.json +975 -29
- package/dist/styleLint/functional/themes/dark-dimmed-high-contrast.json +975 -29
- package/dist/styleLint/functional/themes/dark-dimmed.json +1013 -67
- package/dist/styleLint/functional/themes/dark-high-contrast.json +975 -29
- package/dist/styleLint/functional/themes/dark-tritanopia-high-contrast.json +975 -29
- package/dist/styleLint/functional/themes/dark-tritanopia.json +975 -29
- package/dist/styleLint/functional/themes/dark.json +975 -29
- package/dist/styleLint/functional/themes/light-colorblind-high-contrast.json +981 -35
- package/dist/styleLint/functional/themes/light-colorblind.json +981 -35
- package/dist/styleLint/functional/themes/light-high-contrast.json +981 -35
- package/dist/styleLint/functional/themes/light-tritanopia-high-contrast.json +981 -35
- package/dist/styleLint/functional/themes/light-tritanopia.json +981 -35
- package/dist/styleLint/functional/themes/light.json +981 -35
- package/dist/styleLint/functional/typography/typography.json +196 -26
- package/package.json +6 -3
- package/src/tokens/base/motion/easing.json5 +39 -4
- package/src/tokens/base/motion/timing.json5 +12 -12
- package/src/tokens/base/size/size.json5 +19 -19
- package/src/tokens/base/typography/typography.json5 +6 -6
- package/src/tokens/functional/border/border.json5 +25 -0
- package/src/tokens/functional/color/bgColor.json5 +165 -0
- package/src/tokens/functional/color/borderColor.json5 +146 -0
- package/src/tokens/functional/color/control.json5 +24 -0
- package/src/tokens/functional/color/data-vis.json5 +7 -0
- package/src/tokens/functional/color/display.json5 +7 -0
- package/src/tokens/functional/color/fgColor.json5 +101 -1
- package/src/tokens/functional/color/focus.json5 +5 -0
- package/src/tokens/functional/color/selection.json5 +5 -0
- package/src/tokens/functional/color/syntax.json5 +14 -0
- package/src/tokens/functional/shadow/shadow.json5 +49 -4
- package/src/tokens/functional/size/border.json5 +22 -74
- package/src/tokens/functional/size/breakpoints.json5 +6 -6
- package/src/tokens/functional/size/radius.json5 +90 -0
- package/src/tokens/functional/size/size-coarse.json5 +24 -3
- package/src/tokens/functional/size/size-fine.json5 +45 -24
- package/src/tokens/functional/size/size.json5 +50 -15
- package/src/tokens/functional/size/viewport.json5 +1 -1
- package/src/tokens/functional/typography/font-stack.json5 +60 -0
- package/src/tokens/functional/typography/typography.json5 +71 -44
- package/dist/build/parsers/index.d.ts +0 -1
- package/dist/build/parsers/index.js +0 -1
- package/dist/build/parsers/w3cJsonParser.d.ts +0 -6
- package/dist/build/parsers/w3cJsonParser.js +0 -25
- package/dist/removed/testing.json5 +0 -4
- package/src/tokens/removed/testing.json5 +0 -4
|
@@ -155,7 +155,10 @@
|
|
|
155
155
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
156
156
|
"isSource": true,
|
|
157
157
|
"original": {
|
|
158
|
-
"$value":
|
|
158
|
+
"$value": {
|
|
159
|
+
"value": 2.5,
|
|
160
|
+
"unit": "rem"
|
|
161
|
+
},
|
|
159
162
|
"$type": "dimension",
|
|
160
163
|
"$description": "40px - Display text for hero sections.",
|
|
161
164
|
"$extensions": {
|
|
@@ -184,7 +187,10 @@
|
|
|
184
187
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
185
188
|
"isSource": true,
|
|
186
189
|
"original": {
|
|
187
|
-
"$value":
|
|
190
|
+
"$value": {
|
|
191
|
+
"value": 1.25,
|
|
192
|
+
"unit": "rem"
|
|
193
|
+
},
|
|
188
194
|
"$type": "dimension",
|
|
189
195
|
"$description": "20px - Medium titles and subtitles.",
|
|
190
196
|
"$extensions": {
|
|
@@ -213,7 +219,10 @@
|
|
|
213
219
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
214
220
|
"isSource": true,
|
|
215
221
|
"original": {
|
|
216
|
-
"$value":
|
|
222
|
+
"$value": {
|
|
223
|
+
"value": 1,
|
|
224
|
+
"unit": "rem"
|
|
225
|
+
},
|
|
217
226
|
"$type": "dimension",
|
|
218
227
|
"$description": "16px - Large body text and small titles.",
|
|
219
228
|
"$extensions": {
|
|
@@ -242,7 +251,10 @@
|
|
|
242
251
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
243
252
|
"isSource": true,
|
|
244
253
|
"original": {
|
|
245
|
-
"$value":
|
|
254
|
+
"$value": {
|
|
255
|
+
"value": 0.875,
|
|
256
|
+
"unit": "rem"
|
|
257
|
+
},
|
|
246
258
|
"$type": "dimension",
|
|
247
259
|
"$description": "14px - Default body text size for UI.",
|
|
248
260
|
"$extensions": {
|
|
@@ -271,7 +283,10 @@
|
|
|
271
283
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
272
284
|
"isSource": true,
|
|
273
285
|
"original": {
|
|
274
|
-
"$value":
|
|
286
|
+
"$value": {
|
|
287
|
+
"value": 2,
|
|
288
|
+
"unit": "rem"
|
|
289
|
+
},
|
|
275
290
|
"$type": "dimension",
|
|
276
291
|
"$description": "32px - Large titles and page headings.",
|
|
277
292
|
"$extensions": {
|
|
@@ -300,7 +315,10 @@
|
|
|
300
315
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
301
316
|
"isSource": true,
|
|
302
317
|
"original": {
|
|
303
|
-
"$value":
|
|
318
|
+
"$value": {
|
|
319
|
+
"value": 0.75,
|
|
320
|
+
"unit": "rem"
|
|
321
|
+
},
|
|
304
322
|
"$type": "dimension",
|
|
305
323
|
"$description": "12px - Smallest text size for captions and compact UI elements.",
|
|
306
324
|
"$extensions": {
|
|
@@ -1,171 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"borderRadius-default": {
|
|
3
|
-
"key": "{borderRadius.default}",
|
|
4
|
-
"$extensions": {
|
|
5
|
-
"org.primer.figma": {
|
|
6
|
-
"collection": "functional/size",
|
|
7
|
-
"scopes": ["radius"],
|
|
8
|
-
"codeSyntax": {
|
|
9
|
-
"web": "var(--borderRadius-default) /* utility class: .rounded-2 */"
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
14
|
-
"isSource": true,
|
|
15
|
-
"original": {
|
|
16
|
-
"$value": "{borderRadius.medium}",
|
|
17
|
-
"$type": "dimension",
|
|
18
|
-
"$extensions": {
|
|
19
|
-
"org.primer.figma": {
|
|
20
|
-
"collection": "functional/size",
|
|
21
|
-
"scopes": ["radius"],
|
|
22
|
-
"codeSyntax": {
|
|
23
|
-
"web": "var(--borderRadius-default) /* utility class: .rounded-2 */"
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"key": "{borderRadius.default}"
|
|
28
|
-
},
|
|
29
|
-
"name": "borderRadius-default",
|
|
30
|
-
"attributes": {},
|
|
31
|
-
"path": ["borderRadius", "default"],
|
|
32
|
-
"value": "0.375rem",
|
|
33
|
-
"type": "dimension"
|
|
34
|
-
},
|
|
35
|
-
"borderRadius-full": {
|
|
36
|
-
"key": "{borderRadius.full}",
|
|
37
|
-
"$extensions": {
|
|
38
|
-
"org.primer.figma": {
|
|
39
|
-
"collection": "functional/size",
|
|
40
|
-
"scopes": ["radius"],
|
|
41
|
-
"codeSyntax": {
|
|
42
|
-
"web": "var(--borderRadius-full) /* utility class: .circle */"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
47
|
-
"isSource": true,
|
|
48
|
-
"original": {
|
|
49
|
-
"$value": "9999px",
|
|
50
|
-
"$type": "dimension",
|
|
51
|
-
"$description": "Use this border radius for pill shaped elements",
|
|
52
|
-
"$extensions": {
|
|
53
|
-
"org.primer.figma": {
|
|
54
|
-
"collection": "functional/size",
|
|
55
|
-
"scopes": ["radius"],
|
|
56
|
-
"codeSyntax": {
|
|
57
|
-
"web": "var(--borderRadius-full) /* utility class: .circle */"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"key": "{borderRadius.full}"
|
|
62
|
-
},
|
|
63
|
-
"name": "borderRadius-full",
|
|
64
|
-
"attributes": {},
|
|
65
|
-
"path": ["borderRadius", "full"],
|
|
66
|
-
"value": "624.9375rem",
|
|
67
|
-
"type": "dimension",
|
|
68
|
-
"description": "Use this border radius for pill shaped elements"
|
|
69
|
-
},
|
|
70
|
-
"borderRadius-large": {
|
|
71
|
-
"key": "{borderRadius.large}",
|
|
72
|
-
"$extensions": {
|
|
73
|
-
"org.primer.figma": {
|
|
74
|
-
"collection": "functional/size",
|
|
75
|
-
"scopes": ["radius"],
|
|
76
|
-
"codeSyntax": {
|
|
77
|
-
"web": "var(--borderRadius-large) /* utility class: .rounded-3 */"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
82
|
-
"isSource": true,
|
|
83
|
-
"original": {
|
|
84
|
-
"$value": "12px",
|
|
85
|
-
"$type": "dimension",
|
|
86
|
-
"$extensions": {
|
|
87
|
-
"org.primer.figma": {
|
|
88
|
-
"collection": "functional/size",
|
|
89
|
-
"scopes": ["radius"],
|
|
90
|
-
"codeSyntax": {
|
|
91
|
-
"web": "var(--borderRadius-large) /* utility class: .rounded-3 */"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"key": "{borderRadius.large}"
|
|
96
|
-
},
|
|
97
|
-
"name": "borderRadius-large",
|
|
98
|
-
"attributes": {},
|
|
99
|
-
"path": ["borderRadius", "large"],
|
|
100
|
-
"value": "0.75rem",
|
|
101
|
-
"type": "dimension"
|
|
102
|
-
},
|
|
103
|
-
"borderRadius-medium": {
|
|
104
|
-
"key": "{borderRadius.medium}",
|
|
105
|
-
"$extensions": {
|
|
106
|
-
"org.primer.figma": {
|
|
107
|
-
"collection": "functional/size",
|
|
108
|
-
"scopes": ["radius"],
|
|
109
|
-
"codeSyntax": {
|
|
110
|
-
"web": "var(--borderRadius-medium) /* utility class: .rounded-2 */"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
115
|
-
"isSource": true,
|
|
116
|
-
"original": {
|
|
117
|
-
"$value": "6px",
|
|
118
|
-
"$type": "dimension",
|
|
119
|
-
"$extensions": {
|
|
120
|
-
"org.primer.figma": {
|
|
121
|
-
"collection": "functional/size",
|
|
122
|
-
"scopes": ["radius"],
|
|
123
|
-
"codeSyntax": {
|
|
124
|
-
"web": "var(--borderRadius-medium) /* utility class: .rounded-2 */"
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"key": "{borderRadius.medium}"
|
|
129
|
-
},
|
|
130
|
-
"name": "borderRadius-medium",
|
|
131
|
-
"attributes": {},
|
|
132
|
-
"path": ["borderRadius", "medium"],
|
|
133
|
-
"value": "0.375rem",
|
|
134
|
-
"type": "dimension"
|
|
135
|
-
},
|
|
136
|
-
"borderRadius-small": {
|
|
137
|
-
"key": "{borderRadius.small}",
|
|
138
|
-
"$extensions": {
|
|
139
|
-
"org.primer.figma": {
|
|
140
|
-
"collection": "functional/size",
|
|
141
|
-
"scopes": ["radius"],
|
|
142
|
-
"codeSyntax": {
|
|
143
|
-
"web": "var(--borderRadius-small) /* utility class: .rounded-1 */"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
},
|
|
147
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
148
|
-
"isSource": true,
|
|
149
|
-
"original": {
|
|
150
|
-
"$value": "3px",
|
|
151
|
-
"$type": "dimension",
|
|
152
|
-
"$extensions": {
|
|
153
|
-
"org.primer.figma": {
|
|
154
|
-
"collection": "functional/size",
|
|
155
|
-
"scopes": ["radius"],
|
|
156
|
-
"codeSyntax": {
|
|
157
|
-
"web": "var(--borderRadius-small) /* utility class: .rounded-1 */"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
"key": "{borderRadius.small}"
|
|
162
|
-
},
|
|
163
|
-
"name": "borderRadius-small",
|
|
164
|
-
"attributes": {},
|
|
165
|
-
"path": ["borderRadius", "small"],
|
|
166
|
-
"value": "0.1875rem",
|
|
167
|
-
"type": "dimension"
|
|
168
|
-
},
|
|
169
2
|
"borderWidth-default": {
|
|
170
3
|
"key": "{borderWidth.default}",
|
|
171
4
|
"$extensions": {
|
|
@@ -178,6 +11,7 @@
|
|
|
178
11
|
"isSource": true,
|
|
179
12
|
"original": {
|
|
180
13
|
"$value": "{borderWidth.thin}",
|
|
14
|
+
"$description": "Default border width for most UI elements. Alias of borderWidth.thin (1px)",
|
|
181
15
|
"$type": "dimension",
|
|
182
16
|
"$extensions": {
|
|
183
17
|
"org.primer.figma": {
|
|
@@ -191,7 +25,8 @@
|
|
|
191
25
|
"attributes": {},
|
|
192
26
|
"path": ["borderWidth", "default"],
|
|
193
27
|
"value": "0.0625rem",
|
|
194
|
-
"type": "dimension"
|
|
28
|
+
"type": "dimension",
|
|
29
|
+
"description": "Default border width for most UI elements. Alias of borderWidth.thin (1px)"
|
|
195
30
|
},
|
|
196
31
|
"borderWidth-thick": {
|
|
197
32
|
"key": "{borderWidth.thick}",
|
|
@@ -199,17 +34,29 @@
|
|
|
199
34
|
"org.primer.figma": {
|
|
200
35
|
"collection": "functional/size",
|
|
201
36
|
"scopes": ["borderWidth", "effectFloat"]
|
|
37
|
+
},
|
|
38
|
+
"org.primer.llm": {
|
|
39
|
+
"usage": ["focus-indicator", "selected-state", "emphasis-border"],
|
|
40
|
+
"rules": "MUST use for focus rings on interactive elements. Do NOT use for subtle dividers."
|
|
202
41
|
}
|
|
203
42
|
},
|
|
204
43
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
205
44
|
"isSource": true,
|
|
206
45
|
"original": {
|
|
207
|
-
"$value":
|
|
46
|
+
"$value": {
|
|
47
|
+
"value": 2,
|
|
48
|
+
"unit": "px"
|
|
49
|
+
},
|
|
50
|
+
"$description": "Thick 2px border for emphasis. Use for focus indicators, selected states, or to emphasize important boundaries",
|
|
208
51
|
"$type": "dimension",
|
|
209
52
|
"$extensions": {
|
|
210
53
|
"org.primer.figma": {
|
|
211
54
|
"collection": "functional/size",
|
|
212
55
|
"scopes": ["borderWidth", "effectFloat"]
|
|
56
|
+
},
|
|
57
|
+
"org.primer.llm": {
|
|
58
|
+
"usage": ["focus-indicator", "selected-state", "emphasis-border"],
|
|
59
|
+
"rules": "MUST use for focus rings on interactive elements. Do NOT use for subtle dividers."
|
|
213
60
|
}
|
|
214
61
|
},
|
|
215
62
|
"key": "{borderWidth.thick}"
|
|
@@ -218,7 +65,8 @@
|
|
|
218
65
|
"attributes": {},
|
|
219
66
|
"path": ["borderWidth", "thick"],
|
|
220
67
|
"value": "0.125rem",
|
|
221
|
-
"type": "dimension"
|
|
68
|
+
"type": "dimension",
|
|
69
|
+
"description": "Thick 2px border for emphasis. Use for focus indicators, selected states, or to emphasize important boundaries"
|
|
222
70
|
},
|
|
223
71
|
"borderWidth-thicker": {
|
|
224
72
|
"key": "{borderWidth.thicker}",
|
|
@@ -231,7 +79,11 @@
|
|
|
231
79
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
232
80
|
"isSource": true,
|
|
233
81
|
"original": {
|
|
234
|
-
"$value":
|
|
82
|
+
"$value": {
|
|
83
|
+
"value": 4,
|
|
84
|
+
"unit": "px"
|
|
85
|
+
},
|
|
86
|
+
"$description": "Extra thick 4px border for maximum emphasis. Use sparingly for high-contrast focus indicators or critical visual separators",
|
|
235
87
|
"$type": "dimension",
|
|
236
88
|
"$extensions": {
|
|
237
89
|
"org.primer.figma": {
|
|
@@ -245,7 +97,8 @@
|
|
|
245
97
|
"attributes": {},
|
|
246
98
|
"path": ["borderWidth", "thicker"],
|
|
247
99
|
"value": "0.25rem",
|
|
248
|
-
"type": "dimension"
|
|
100
|
+
"type": "dimension",
|
|
101
|
+
"description": "Extra thick 4px border for maximum emphasis. Use sparingly for high-contrast focus indicators or critical visual separators"
|
|
249
102
|
},
|
|
250
103
|
"borderWidth-thin": {
|
|
251
104
|
"key": "{borderWidth.thin}",
|
|
@@ -258,7 +111,11 @@
|
|
|
258
111
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
259
112
|
"isSource": true,
|
|
260
113
|
"original": {
|
|
261
|
-
"$value":
|
|
114
|
+
"$value": {
|
|
115
|
+
"value": 1,
|
|
116
|
+
"unit": "px"
|
|
117
|
+
},
|
|
118
|
+
"$description": "Standard 1px border width. Use for most borders, dividers, and outlines throughout the interface",
|
|
262
119
|
"$type": "dimension",
|
|
263
120
|
"$extensions": {
|
|
264
121
|
"org.primer.figma": {
|
|
@@ -272,7 +129,8 @@
|
|
|
272
129
|
"attributes": {},
|
|
273
130
|
"path": ["borderWidth", "thin"],
|
|
274
131
|
"value": "0.0625rem",
|
|
275
|
-
"type": "dimension"
|
|
132
|
+
"type": "dimension",
|
|
133
|
+
"description": "Standard 1px border width. Use for most borders, dividers, and outlines throughout the interface"
|
|
276
134
|
},
|
|
277
135
|
"boxShadow-thick": {
|
|
278
136
|
"key": "{boxShadow.thick}",
|
|
@@ -280,6 +138,7 @@
|
|
|
280
138
|
"isSource": true,
|
|
281
139
|
"original": {
|
|
282
140
|
"$value": "inset 0 0 0 {borderWidth.thick}",
|
|
141
|
+
"$description": "Thick shadow (2px) used instead of a border for emphasis without layout shift",
|
|
283
142
|
"$type": "string",
|
|
284
143
|
"key": "{boxShadow.thick}"
|
|
285
144
|
},
|
|
@@ -287,7 +146,8 @@
|
|
|
287
146
|
"attributes": {},
|
|
288
147
|
"path": ["boxShadow", "thick"],
|
|
289
148
|
"value": "inset 0 0 0 0.125rem",
|
|
290
|
-
"type": "string"
|
|
149
|
+
"type": "string",
|
|
150
|
+
"description": "Thick shadow (2px) used instead of a border for emphasis without layout shift"
|
|
291
151
|
},
|
|
292
152
|
"boxShadow-thicker": {
|
|
293
153
|
"key": "{boxShadow.thicker}",
|
|
@@ -295,6 +155,7 @@
|
|
|
295
155
|
"isSource": true,
|
|
296
156
|
"original": {
|
|
297
157
|
"$value": "inset 0 0 0 {borderWidth.thicker}",
|
|
158
|
+
"$description": "Thickest shadow (4px) used for high emphasis borders without layout shift. Use sparingly for maximum visual impact",
|
|
298
159
|
"$type": "string",
|
|
299
160
|
"key": "{boxShadow.thicker}"
|
|
300
161
|
},
|
|
@@ -302,7 +163,8 @@
|
|
|
302
163
|
"attributes": {},
|
|
303
164
|
"path": ["boxShadow", "thicker"],
|
|
304
165
|
"value": "inset 0 0 0 0.25rem",
|
|
305
|
-
"type": "string"
|
|
166
|
+
"type": "string",
|
|
167
|
+
"description": "Thickest shadow (4px) used for high emphasis borders without layout shift. Use sparingly for maximum visual impact"
|
|
306
168
|
},
|
|
307
169
|
"boxShadow-thin": {
|
|
308
170
|
"key": "{boxShadow.thin}",
|
|
@@ -310,7 +172,7 @@
|
|
|
310
172
|
"isSource": true,
|
|
311
173
|
"original": {
|
|
312
174
|
"$value": "inset 0 0 0 {borderWidth.thin}",
|
|
313
|
-
"$description": "Thin shadow
|
|
175
|
+
"$description": "Thin shadow used instead of a border to prevent layout shift",
|
|
314
176
|
"$type": "string",
|
|
315
177
|
"key": "{boxShadow.thin}"
|
|
316
178
|
},
|
|
@@ -319,7 +181,7 @@
|
|
|
319
181
|
"path": ["boxShadow", "thin"],
|
|
320
182
|
"value": "inset 0 0 0 0.0625rem",
|
|
321
183
|
"type": "string",
|
|
322
|
-
"description": "Thin shadow
|
|
184
|
+
"description": "Thin shadow used instead of a border to prevent layout shift"
|
|
323
185
|
},
|
|
324
186
|
"outline-focus-offset": {
|
|
325
187
|
"key": "{outline.focus.offset}",
|
|
@@ -332,7 +194,11 @@
|
|
|
332
194
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
333
195
|
"isSource": true,
|
|
334
196
|
"original": {
|
|
335
|
-
"$value":
|
|
197
|
+
"$value": {
|
|
198
|
+
"value": -2,
|
|
199
|
+
"unit": "px"
|
|
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",
|
|
336
202
|
"$type": "dimension",
|
|
337
203
|
"$extensions": {
|
|
338
204
|
"org.primer.figma": {
|
|
@@ -346,7 +212,8 @@
|
|
|
346
212
|
"attributes": {},
|
|
347
213
|
"path": ["outline", "focus", "offset"],
|
|
348
214
|
"value": "-0.125rem",
|
|
349
|
-
"type": "dimension"
|
|
215
|
+
"type": "dimension",
|
|
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"
|
|
350
217
|
},
|
|
351
218
|
"outline-focus-width": {
|
|
352
219
|
"key": "{outline.focus.width}",
|
|
@@ -354,17 +221,29 @@
|
|
|
354
221
|
"org.primer.figma": {
|
|
355
222
|
"collection": "functional/size",
|
|
356
223
|
"scopes": ["borderWidth", "effectFloat"]
|
|
224
|
+
},
|
|
225
|
+
"org.primer.llm": {
|
|
226
|
+
"usage": ["focus-ring", "keyboard-focus", "accessibility"],
|
|
227
|
+
"rules": "MUST use for all keyboard focus indicators. Required for WCAG 2.4.7 compliance."
|
|
357
228
|
}
|
|
358
229
|
},
|
|
359
230
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
360
231
|
"isSource": true,
|
|
361
232
|
"original": {
|
|
362
|
-
"$value":
|
|
233
|
+
"$value": {
|
|
234
|
+
"value": 2,
|
|
235
|
+
"unit": "px"
|
|
236
|
+
},
|
|
237
|
+
"$description": "Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements",
|
|
363
238
|
"$type": "dimension",
|
|
364
239
|
"$extensions": {
|
|
365
240
|
"org.primer.figma": {
|
|
366
241
|
"collection": "functional/size",
|
|
367
242
|
"scopes": ["borderWidth", "effectFloat"]
|
|
243
|
+
},
|
|
244
|
+
"org.primer.llm": {
|
|
245
|
+
"usage": ["focus-ring", "keyboard-focus", "accessibility"],
|
|
246
|
+
"rules": "MUST use for all keyboard focus indicators. Required for WCAG 2.4.7 compliance."
|
|
368
247
|
}
|
|
369
248
|
},
|
|
370
249
|
"key": "{outline.focus.width}"
|
|
@@ -373,6 +252,7 @@
|
|
|
373
252
|
"attributes": {},
|
|
374
253
|
"path": ["outline", "focus", "width"],
|
|
375
254
|
"value": "0.125rem",
|
|
376
|
-
"type": "dimension"
|
|
255
|
+
"type": "dimension",
|
|
256
|
+
"description": "Focus outline width (2px). Standard width for keyboard focus indicators to meet WCAG 2.4.7 accessibility requirements"
|
|
377
257
|
}
|
|
378
258
|
}
|
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
11
11
|
"isSource": true,
|
|
12
12
|
"original": {
|
|
13
|
-
"$value":
|
|
13
|
+
"$value": {
|
|
14
|
+
"value": 1012,
|
|
15
|
+
"unit": "px"
|
|
16
|
+
},
|
|
14
17
|
"$type": "dimension",
|
|
15
18
|
"$extensions": {
|
|
16
19
|
"org.primer.figma": {
|
|
@@ -37,7 +40,10 @@
|
|
|
37
40
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
38
41
|
"isSource": true,
|
|
39
42
|
"original": {
|
|
40
|
-
"$value":
|
|
43
|
+
"$value": {
|
|
44
|
+
"value": 768,
|
|
45
|
+
"unit": "px"
|
|
46
|
+
},
|
|
41
47
|
"$type": "dimension",
|
|
42
48
|
"$extensions": {
|
|
43
49
|
"org.primer.figma": {
|
|
@@ -64,7 +70,10 @@
|
|
|
64
70
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
65
71
|
"isSource": true,
|
|
66
72
|
"original": {
|
|
67
|
-
"$value":
|
|
73
|
+
"$value": {
|
|
74
|
+
"value": 544,
|
|
75
|
+
"unit": "px"
|
|
76
|
+
},
|
|
68
77
|
"$type": "dimension",
|
|
69
78
|
"$extensions": {
|
|
70
79
|
"org.primer.figma": {
|
|
@@ -91,7 +100,10 @@
|
|
|
91
100
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
92
101
|
"isSource": true,
|
|
93
102
|
"original": {
|
|
94
|
-
"$value":
|
|
103
|
+
"$value": {
|
|
104
|
+
"value": 1280,
|
|
105
|
+
"unit": "px"
|
|
106
|
+
},
|
|
95
107
|
"$type": "dimension",
|
|
96
108
|
"$extensions": {
|
|
97
109
|
"org.primer.figma": {
|
|
@@ -118,7 +130,10 @@
|
|
|
118
130
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
119
131
|
"isSource": true,
|
|
120
132
|
"original": {
|
|
121
|
-
"$value":
|
|
133
|
+
"$value": {
|
|
134
|
+
"value": 320,
|
|
135
|
+
"unit": "px"
|
|
136
|
+
},
|
|
122
137
|
"$type": "dimension",
|
|
123
138
|
"$extensions": {
|
|
124
139
|
"org.primer.figma": {
|
|
@@ -145,7 +160,10 @@
|
|
|
145
160
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
146
161
|
"isSource": true,
|
|
147
162
|
"original": {
|
|
148
|
-
"$value":
|
|
163
|
+
"$value": {
|
|
164
|
+
"value": 1400,
|
|
165
|
+
"unit": "px"
|
|
166
|
+
},
|
|
149
167
|
"$type": "dimension",
|
|
150
168
|
"$extensions": {
|
|
151
169
|
"org.primer.figma": {
|