@primer/primitives 10.2.0 → 10.3.0-rc.37645a3a
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/dist/build/formats/cssCustomMedia.js +2 -2
- package/dist/build/formats/jsonOneDimensional.js +2 -1
- package/dist/build/platforms/css.js +5 -2
- package/dist/build/platforms/figma.js +2 -2
- package/dist/build/preprocessors/themeOverrides.js +7 -4
- package/dist/build/schemas/collections.d.ts +1 -1
- package/dist/build/schemas/colorToken.d.ts +471 -65
- package/dist/build/schemas/colorToken.js +18 -15
- package/dist/build/schemas/shadowToken.js +2 -2
- package/dist/build/transformers/colorAlphaToCss.d.ts +1 -1
- package/dist/build/transformers/figmaAttributes.js +2 -1
- package/dist/build/types/styleDictionaryConfigGenerator.d.ts +1 -1
- package/dist/build/utilities/asArray.d.ts +1 -0
- package/dist/build/utilities/asArray.js +1 -0
- package/dist/css/functional/size/border.css +5 -5
- package/dist/css/functional/size/size.css +15 -15
- package/dist/css/functional/size/viewport.css +2 -2
- package/dist/css/functional/themes/dark-colorblind.css +408 -408
- package/dist/css/functional/themes/dark-dimmed.css +390 -390
- package/dist/css/functional/themes/dark-high-contrast.css +412 -412
- package/dist/css/functional/themes/dark-tritanopia.css +406 -406
- package/dist/css/functional/themes/dark.css +416 -416
- package/dist/css/functional/themes/light-colorblind.css +444 -444
- package/dist/css/functional/themes/light-high-contrast.css +438 -438
- package/dist/css/functional/themes/light-tritanopia.css +432 -432
- package/dist/css/functional/themes/light.css +444 -444
- package/dist/css/primitives.css +20 -20
- package/dist/docs/base/motion/motion.json +88 -73
- package/dist/docs/base/size/size.json +94 -75
- package/dist/docs/base/typography/typography.json +14 -10
- package/dist/docs/functional/motion/motion.json +19 -15
- package/dist/docs/functional/size/border.json +139 -125
- package/dist/docs/functional/size/breakpoints.json +31 -25
- package/dist/docs/functional/size/size-coarse.json +13 -10
- package/dist/docs/functional/size/size-fine.json +9 -6
- package/dist/docs/functional/size/size.json +499 -433
- package/dist/docs/functional/size/viewport.json +32 -26
- package/dist/docs/functional/themes/dark-colorblind.json +7175 -6545
- package/dist/docs/functional/themes/dark-dimmed.json +7181 -6473
- package/dist/docs/functional/themes/dark-high-contrast.json +7445 -6789
- package/dist/docs/functional/themes/dark-tritanopia.json +7164 -6498
- package/dist/docs/functional/themes/dark.json +7202 -6494
- package/dist/docs/functional/themes/light-colorblind.json +7096 -6466
- package/dist/docs/functional/themes/light-high-contrast.json +7326 -6660
- package/dist/docs/functional/themes/light-tritanopia.json +7109 -6479
- package/dist/docs/functional/themes/light.json +7159 -6451
- package/dist/docs/functional/typography/typography.json +518 -472
- package/dist/figma/figma.json +3 -3
- package/dist/figma/shadows/dark-colorblind.json +115 -115
- package/dist/figma/shadows/light-colorblind.json +105 -105
- package/dist/figma/themes/dark-colorblind.json +5553 -5553
- package/dist/figma/themes/dark-dimmed.json +5162 -5162
- package/dist/figma/themes/dark-high-contrast.json +4196 -4196
- package/dist/figma/themes/dark-tritanopia.json +5211 -5211
- package/dist/figma/themes/dark.json +5537 -5537
- package/dist/figma/themes/light-colorblind.json +5501 -5501
- package/dist/figma/themes/light-high-contrast.json +4176 -4176
- package/dist/figma/themes/light-tritanopia.json +5077 -5077
- package/dist/figma/themes/light.json +1950 -1950
- package/dist/internalCss/dark-colorblind.css +1148 -1148
- package/dist/internalCss/dark-dimmed.css +1138 -1138
- package/dist/internalCss/dark-high-contrast.css +1154 -1154
- package/dist/internalCss/dark-tritanopia.css +1148 -1148
- package/dist/internalCss/dark.css +1150 -1150
- package/dist/internalCss/light-colorblind.css +1152 -1152
- package/dist/internalCss/light-high-contrast.css +1166 -1166
- package/dist/internalCss/light-tritanopia.css +1156 -1156
- package/dist/internalCss/light.css +1158 -1158
- package/dist/styleLint/base/motion/motion.json +97 -82
- package/dist/styleLint/base/size/size.json +102 -83
- package/dist/styleLint/base/typography/typography.json +16 -12
- package/dist/styleLint/functional/motion/motion.json +22 -18
- package/dist/styleLint/functional/size/border.json +140 -126
- package/dist/styleLint/functional/size/breakpoints.json +32 -26
- package/dist/styleLint/functional/size/size-coarse.json +14 -11
- package/dist/styleLint/functional/size/size-fine.json +10 -7
- package/dist/styleLint/functional/size/size.json +486 -420
- package/dist/styleLint/functional/size/viewport.json +36 -30
- package/dist/styleLint/functional/themes/dark-colorblind.json +6927 -6297
- package/dist/styleLint/functional/themes/dark-dimmed.json +7372 -6664
- package/dist/styleLint/functional/themes/dark-high-contrast.json +7472 -6816
- package/dist/styleLint/functional/themes/dark-tritanopia.json +7051 -6385
- package/dist/styleLint/functional/themes/dark.json +7180 -6472
- package/dist/styleLint/functional/themes/light-colorblind.json +7042 -6412
- package/dist/styleLint/functional/themes/light-high-contrast.json +7418 -6752
- package/dist/styleLint/functional/themes/light-tritanopia.json +6926 -6296
- package/dist/styleLint/functional/themes/light.json +7093 -6385
- package/dist/styleLint/functional/typography/typography.json +520 -474
- package/package.json +2 -2
- package/src/tokens/component/diffBlob.json5 +293 -0
- package/src/tokens/component/highlight.json5 +23 -0
- package/src/tokens/functional/color/dark/app-dark.json5 +0 -302
- package/src/tokens/functional/color/dark/overrides/dark.protanopia-deuteranopia.json5 +5 -5
- package/src/tokens/functional/color/light/app-light.json5 +1 -274
- package/src/tokens/functional/color/light/overrides/light.protanopia-deuteranopia.json5 +5 -5
|
@@ -22,10 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"name": "base-text-weight-light",
|
|
24
24
|
"attributes": {},
|
|
25
|
-
"path": ["base", "text", "weight", "light"]
|
|
25
|
+
"path": ["base", "text", "weight", "light"],
|
|
26
|
+
"key": "{base.text.weight.light}"
|
|
26
27
|
},
|
|
27
|
-
"base-text-weight-
|
|
28
|
-
"$value":
|
|
28
|
+
"base-text-weight-medium": {
|
|
29
|
+
"$value": 500,
|
|
29
30
|
"$type": "fontWeight",
|
|
30
31
|
"$extensions": {
|
|
31
32
|
"org.primer.figma": {
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
37
38
|
"isSource": true,
|
|
38
39
|
"original": {
|
|
39
|
-
"$value":
|
|
40
|
+
"$value": 500,
|
|
40
41
|
"$type": "fontWeight",
|
|
41
42
|
"$extensions": {
|
|
42
43
|
"org.primer.figma": {
|
|
@@ -45,12 +46,13 @@
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
|
-
"name": "base-text-weight-
|
|
49
|
+
"name": "base-text-weight-medium",
|
|
49
50
|
"attributes": {},
|
|
50
|
-
"path": ["base", "text", "weight", "
|
|
51
|
+
"path": ["base", "text", "weight", "medium"],
|
|
52
|
+
"key": "{base.text.weight.medium}"
|
|
51
53
|
},
|
|
52
|
-
"base-text-weight-
|
|
53
|
-
"$value":
|
|
54
|
+
"base-text-weight-normal": {
|
|
55
|
+
"$value": 400,
|
|
54
56
|
"$type": "fontWeight",
|
|
55
57
|
"$extensions": {
|
|
56
58
|
"org.primer.figma": {
|
|
@@ -61,7 +63,7 @@
|
|
|
61
63
|
"filePath": "src/tokens/base/typography/typography.json5",
|
|
62
64
|
"isSource": true,
|
|
63
65
|
"original": {
|
|
64
|
-
"$value":
|
|
66
|
+
"$value": 400,
|
|
65
67
|
"$type": "fontWeight",
|
|
66
68
|
"$extensions": {
|
|
67
69
|
"org.primer.figma": {
|
|
@@ -70,9 +72,10 @@
|
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
},
|
|
73
|
-
"name": "base-text-weight-
|
|
75
|
+
"name": "base-text-weight-normal",
|
|
74
76
|
"attributes": {},
|
|
75
|
-
"path": ["base", "text", "weight", "
|
|
77
|
+
"path": ["base", "text", "weight", "normal"],
|
|
78
|
+
"key": "{base.text.weight.normal}"
|
|
76
79
|
},
|
|
77
80
|
"base-text-weight-semibold": {
|
|
78
81
|
"$value": 600,
|
|
@@ -97,6 +100,7 @@
|
|
|
97
100
|
},
|
|
98
101
|
"name": "base-text-weight-semibold",
|
|
99
102
|
"attributes": {},
|
|
100
|
-
"path": ["base", "text", "weight", "semibold"]
|
|
103
|
+
"path": ["base", "text", "weight", "semibold"],
|
|
104
|
+
"key": "{base.text.weight.semibold}"
|
|
101
105
|
}
|
|
102
106
|
}
|
|
@@ -12,7 +12,24 @@
|
|
|
12
12
|
},
|
|
13
13
|
"name": "motion-loading-delay-default",
|
|
14
14
|
"attributes": {},
|
|
15
|
-
"path": ["motion", "loading", "delay", "default"]
|
|
15
|
+
"path": ["motion", "loading", "delay", "default"],
|
|
16
|
+
"key": "{motion.loading.delay.default}"
|
|
17
|
+
},
|
|
18
|
+
"motion-skeletonLoader-shimmer-duration-scale": {
|
|
19
|
+
"$value": "1000ms",
|
|
20
|
+
"$type": "duration",
|
|
21
|
+
"$description": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)",
|
|
22
|
+
"filePath": "src/tokens/functional/motion/patterns.json5",
|
|
23
|
+
"isSource": true,
|
|
24
|
+
"original": {
|
|
25
|
+
"$value": "{base.duration.1000}",
|
|
26
|
+
"$type": "duration",
|
|
27
|
+
"$description": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)"
|
|
28
|
+
},
|
|
29
|
+
"name": "motion-skeletonLoader-shimmer-duration-scale",
|
|
30
|
+
"attributes": {},
|
|
31
|
+
"path": ["motion", "skeletonLoader", "shimmer", "duration", "scale"],
|
|
32
|
+
"key": "{motion.skeletonLoader.shimmer.duration.scale}"
|
|
16
33
|
},
|
|
17
34
|
"motion-spinner-duration-rotation": {
|
|
18
35
|
"$value": "1000ms",
|
|
@@ -27,7 +44,8 @@
|
|
|
27
44
|
},
|
|
28
45
|
"name": "motion-spinner-duration-rotation",
|
|
29
46
|
"attributes": {},
|
|
30
|
-
"path": ["motion", "spinner", "duration", "rotation"]
|
|
47
|
+
"path": ["motion", "spinner", "duration", "rotation"],
|
|
48
|
+
"key": "{motion.spinner.duration.rotation}"
|
|
31
49
|
},
|
|
32
50
|
"motion-spinner-easing-rotation": {
|
|
33
51
|
"$value": [0, 0, 1, 1],
|
|
@@ -42,21 +60,7 @@
|
|
|
42
60
|
},
|
|
43
61
|
"name": "motion-spinner-easing-rotation",
|
|
44
62
|
"attributes": {},
|
|
45
|
-
"path": ["motion", "spinner", "easing", "rotation"]
|
|
46
|
-
|
|
47
|
-
"motion-skeletonLoader-shimmer-duration-scale": {
|
|
48
|
-
"$value": "1000ms",
|
|
49
|
-
"$type": "duration",
|
|
50
|
-
"$description": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)",
|
|
51
|
-
"filePath": "src/tokens/functional/motion/patterns.json5",
|
|
52
|
-
"isSource": true,
|
|
53
|
-
"original": {
|
|
54
|
-
"$value": "{base.duration.1000}",
|
|
55
|
-
"$type": "duration",
|
|
56
|
-
"$description": "The amount of times it takes the \"shimmer\" effect to go from the start (left) of the skeleton loader to the end (right)"
|
|
57
|
-
},
|
|
58
|
-
"name": "motion-skeletonLoader-shimmer-duration-scale",
|
|
59
|
-
"attributes": {},
|
|
60
|
-
"path": ["motion", "skeletonLoader", "shimmer", "duration", "scale"]
|
|
63
|
+
"path": ["motion", "spinner", "easing", "rotation"],
|
|
64
|
+
"key": "{motion.spinner.easing.rotation}"
|
|
61
65
|
}
|
|
62
66
|
}
|
|
@@ -1,158 +1,69 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
3
|
-
"$value": ["0.
|
|
4
|
-
"$description": "Thin shadow for borders",
|
|
5
|
-
"$type": "string",
|
|
6
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
7
|
-
"isSource": true,
|
|
8
|
-
"original": {
|
|
9
|
-
"$value": "inset 0 0 0 {borderWidth.thin}",
|
|
10
|
-
"$description": "Thin shadow for borders",
|
|
11
|
-
"$type": "string"
|
|
12
|
-
},
|
|
13
|
-
"name": "boxShadow-thin",
|
|
14
|
-
"attributes": {},
|
|
15
|
-
"path": ["boxShadow", "thin"]
|
|
16
|
-
},
|
|
17
|
-
"boxShadow-thick": {
|
|
18
|
-
"$value": ["0.125rem", "2px"],
|
|
19
|
-
"$type": "string",
|
|
20
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
21
|
-
"isSource": true,
|
|
22
|
-
"original": {
|
|
23
|
-
"$value": "inset 0 0 0 {borderWidth.thick}",
|
|
24
|
-
"$type": "string"
|
|
25
|
-
},
|
|
26
|
-
"name": "boxShadow-thick",
|
|
27
|
-
"attributes": {},
|
|
28
|
-
"path": ["boxShadow", "thick"]
|
|
29
|
-
},
|
|
30
|
-
"boxShadow-thicker": {
|
|
31
|
-
"$value": ["0.25rem", "4px"],
|
|
32
|
-
"$type": "string",
|
|
33
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
34
|
-
"isSource": true,
|
|
35
|
-
"original": {
|
|
36
|
-
"$value": "inset 0 0 0 {borderWidth.thicker}",
|
|
37
|
-
"$type": "string"
|
|
38
|
-
},
|
|
39
|
-
"name": "boxShadow-thicker",
|
|
40
|
-
"attributes": {},
|
|
41
|
-
"path": ["boxShadow", "thicker"]
|
|
42
|
-
},
|
|
43
|
-
"borderWidth-default": {
|
|
44
|
-
"$value": ["0.00390625rem", "0.0625px"],
|
|
45
|
-
"$type": "dimension",
|
|
46
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
47
|
-
"isSource": true,
|
|
48
|
-
"original": {
|
|
49
|
-
"$value": "{borderWidth.thin}",
|
|
50
|
-
"$type": "dimension"
|
|
51
|
-
},
|
|
52
|
-
"name": "borderWidth-default",
|
|
53
|
-
"attributes": {},
|
|
54
|
-
"path": ["borderWidth", "default"]
|
|
55
|
-
},
|
|
56
|
-
"borderWidth-thin": {
|
|
57
|
-
"$value": ["0.0625rem", "1px"],
|
|
58
|
-
"$type": "dimension",
|
|
59
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
60
|
-
"isSource": true,
|
|
61
|
-
"original": {
|
|
62
|
-
"$value": "1px",
|
|
63
|
-
"$type": "dimension"
|
|
64
|
-
},
|
|
65
|
-
"name": "borderWidth-thin",
|
|
66
|
-
"attributes": {},
|
|
67
|
-
"path": ["borderWidth", "thin"]
|
|
68
|
-
},
|
|
69
|
-
"borderWidth-thick": {
|
|
70
|
-
"$value": ["0.125rem", "2px"],
|
|
71
|
-
"$type": "dimension",
|
|
72
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
73
|
-
"isSource": true,
|
|
74
|
-
"original": {
|
|
75
|
-
"$value": "2px",
|
|
76
|
-
"$type": "dimension"
|
|
77
|
-
},
|
|
78
|
-
"name": "borderWidth-thick",
|
|
79
|
-
"attributes": {},
|
|
80
|
-
"path": ["borderWidth", "thick"]
|
|
81
|
-
},
|
|
82
|
-
"borderWidth-thicker": {
|
|
83
|
-
"$value": ["0.25rem", "4px"],
|
|
84
|
-
"$type": "dimension",
|
|
85
|
-
"filePath": "src/tokens/functional/size/border.json5",
|
|
86
|
-
"isSource": true,
|
|
87
|
-
"original": {
|
|
88
|
-
"$value": "4px",
|
|
89
|
-
"$type": "dimension"
|
|
90
|
-
},
|
|
91
|
-
"name": "borderWidth-thicker",
|
|
92
|
-
"attributes": {},
|
|
93
|
-
"path": ["borderWidth", "thicker"]
|
|
94
|
-
},
|
|
95
|
-
"borderRadius-small": {
|
|
96
|
-
"$value": ["0.1875rem", "3px"],
|
|
2
|
+
"borderRadius-default": {
|
|
3
|
+
"$value": ["0.0234375rem", "0.375px"],
|
|
97
4
|
"$type": "dimension",
|
|
98
5
|
"$extensions": {
|
|
99
6
|
"org.primer.figma": {
|
|
100
7
|
"collection": "functional/size",
|
|
101
8
|
"scopes": ["radius"],
|
|
102
9
|
"codeSyntax": {
|
|
103
|
-
"web": "var(--borderRadius-
|
|
10
|
+
"web": "var(--borderRadius-default) /* utility class: .rounded-2 */"
|
|
104
11
|
}
|
|
105
12
|
}
|
|
106
13
|
},
|
|
107
14
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
108
15
|
"isSource": true,
|
|
109
16
|
"original": {
|
|
110
|
-
"$value": "
|
|
17
|
+
"$value": "{borderRadius.medium}",
|
|
111
18
|
"$type": "dimension",
|
|
112
19
|
"$extensions": {
|
|
113
20
|
"org.primer.figma": {
|
|
114
21
|
"collection": "functional/size",
|
|
115
22
|
"scopes": ["radius"],
|
|
116
23
|
"codeSyntax": {
|
|
117
|
-
"web": "var(--borderRadius-
|
|
24
|
+
"web": "var(--borderRadius-default) /* utility class: .rounded-2 */"
|
|
118
25
|
}
|
|
119
26
|
}
|
|
120
27
|
}
|
|
121
28
|
},
|
|
122
|
-
"name": "borderRadius-
|
|
29
|
+
"name": "borderRadius-default",
|
|
123
30
|
"attributes": {},
|
|
124
|
-
"path": ["borderRadius", "
|
|
31
|
+
"path": ["borderRadius", "default"],
|
|
32
|
+
"key": "{borderRadius.default}"
|
|
125
33
|
},
|
|
126
|
-
"borderRadius-
|
|
127
|
-
"$value": ["
|
|
34
|
+
"borderRadius-full": {
|
|
35
|
+
"$value": ["624.9375rem", "9999px"],
|
|
128
36
|
"$type": "dimension",
|
|
37
|
+
"$description": "Use this border radius for pill shaped elements",
|
|
129
38
|
"$extensions": {
|
|
130
39
|
"org.primer.figma": {
|
|
131
40
|
"collection": "functional/size",
|
|
132
41
|
"scopes": ["radius"],
|
|
133
42
|
"codeSyntax": {
|
|
134
|
-
"web": "var(--borderRadius-
|
|
43
|
+
"web": "var(--borderRadius-full) /* utility class: .circle */"
|
|
135
44
|
}
|
|
136
45
|
}
|
|
137
46
|
},
|
|
138
47
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
139
48
|
"isSource": true,
|
|
140
49
|
"original": {
|
|
141
|
-
"$value": "
|
|
50
|
+
"$value": "9999px",
|
|
142
51
|
"$type": "dimension",
|
|
52
|
+
"$description": "Use this border radius for pill shaped elements",
|
|
143
53
|
"$extensions": {
|
|
144
54
|
"org.primer.figma": {
|
|
145
55
|
"collection": "functional/size",
|
|
146
56
|
"scopes": ["radius"],
|
|
147
57
|
"codeSyntax": {
|
|
148
|
-
"web": "var(--borderRadius-
|
|
58
|
+
"web": "var(--borderRadius-full) /* utility class: .circle */"
|
|
149
59
|
}
|
|
150
60
|
}
|
|
151
61
|
}
|
|
152
62
|
},
|
|
153
|
-
"name": "borderRadius-
|
|
63
|
+
"name": "borderRadius-full",
|
|
154
64
|
"attributes": {},
|
|
155
|
-
"path": ["borderRadius", "
|
|
65
|
+
"path": ["borderRadius", "full"],
|
|
66
|
+
"key": "{borderRadius.full}"
|
|
156
67
|
},
|
|
157
68
|
"borderRadius-large": {
|
|
158
69
|
"$value": ["0.75rem", "12px"],
|
|
@@ -183,71 +94,172 @@
|
|
|
183
94
|
},
|
|
184
95
|
"name": "borderRadius-large",
|
|
185
96
|
"attributes": {},
|
|
186
|
-
"path": ["borderRadius", "large"]
|
|
97
|
+
"path": ["borderRadius", "large"],
|
|
98
|
+
"key": "{borderRadius.large}"
|
|
187
99
|
},
|
|
188
|
-
"borderRadius-
|
|
189
|
-
"$value": ["
|
|
100
|
+
"borderRadius-medium": {
|
|
101
|
+
"$value": ["0.375rem", "6px"],
|
|
190
102
|
"$type": "dimension",
|
|
191
|
-
"$description": "Use this border radius for pill shaped elements",
|
|
192
103
|
"$extensions": {
|
|
193
104
|
"org.primer.figma": {
|
|
194
105
|
"collection": "functional/size",
|
|
195
106
|
"scopes": ["radius"],
|
|
196
107
|
"codeSyntax": {
|
|
197
|
-
"web": "var(--borderRadius-
|
|
108
|
+
"web": "var(--borderRadius-medium) /* utility class: .rounded-2 */"
|
|
198
109
|
}
|
|
199
110
|
}
|
|
200
111
|
},
|
|
201
112
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
202
113
|
"isSource": true,
|
|
203
114
|
"original": {
|
|
204
|
-
"$value": "
|
|
115
|
+
"$value": "6px",
|
|
205
116
|
"$type": "dimension",
|
|
206
|
-
"$description": "Use this border radius for pill shaped elements",
|
|
207
117
|
"$extensions": {
|
|
208
118
|
"org.primer.figma": {
|
|
209
119
|
"collection": "functional/size",
|
|
210
120
|
"scopes": ["radius"],
|
|
211
121
|
"codeSyntax": {
|
|
212
|
-
"web": "var(--borderRadius-
|
|
122
|
+
"web": "var(--borderRadius-medium) /* utility class: .rounded-2 */"
|
|
213
123
|
}
|
|
214
124
|
}
|
|
215
125
|
}
|
|
216
126
|
},
|
|
217
|
-
"name": "borderRadius-
|
|
127
|
+
"name": "borderRadius-medium",
|
|
218
128
|
"attributes": {},
|
|
219
|
-
"path": ["borderRadius", "
|
|
129
|
+
"path": ["borderRadius", "medium"],
|
|
130
|
+
"key": "{borderRadius.medium}"
|
|
220
131
|
},
|
|
221
|
-
"borderRadius-
|
|
222
|
-
"$value": ["0.
|
|
132
|
+
"borderRadius-small": {
|
|
133
|
+
"$value": ["0.1875rem", "3px"],
|
|
223
134
|
"$type": "dimension",
|
|
224
135
|
"$extensions": {
|
|
225
136
|
"org.primer.figma": {
|
|
226
137
|
"collection": "functional/size",
|
|
227
138
|
"scopes": ["radius"],
|
|
228
139
|
"codeSyntax": {
|
|
229
|
-
"web": "var(--borderRadius-
|
|
140
|
+
"web": "var(--borderRadius-small) /* utility class: .rounded-1 */"
|
|
230
141
|
}
|
|
231
142
|
}
|
|
232
143
|
},
|
|
233
144
|
"filePath": "src/tokens/functional/size/border.json5",
|
|
234
145
|
"isSource": true,
|
|
235
146
|
"original": {
|
|
236
|
-
"$value": "
|
|
147
|
+
"$value": "3px",
|
|
237
148
|
"$type": "dimension",
|
|
238
149
|
"$extensions": {
|
|
239
150
|
"org.primer.figma": {
|
|
240
151
|
"collection": "functional/size",
|
|
241
152
|
"scopes": ["radius"],
|
|
242
153
|
"codeSyntax": {
|
|
243
|
-
"web": "var(--borderRadius-
|
|
154
|
+
"web": "var(--borderRadius-small) /* utility class: .rounded-1 */"
|
|
244
155
|
}
|
|
245
156
|
}
|
|
246
157
|
}
|
|
247
158
|
},
|
|
248
|
-
"name": "borderRadius-
|
|
159
|
+
"name": "borderRadius-small",
|
|
160
|
+
"attributes": {},
|
|
161
|
+
"path": ["borderRadius", "small"],
|
|
162
|
+
"key": "{borderRadius.small}"
|
|
163
|
+
},
|
|
164
|
+
"borderWidth-default": {
|
|
165
|
+
"$value": ["0.00390625rem", "0.0625px"],
|
|
166
|
+
"$type": "dimension",
|
|
167
|
+
"filePath": "src/tokens/functional/size/border.json5",
|
|
168
|
+
"isSource": true,
|
|
169
|
+
"original": {
|
|
170
|
+
"$value": "{borderWidth.thin}",
|
|
171
|
+
"$type": "dimension"
|
|
172
|
+
},
|
|
173
|
+
"name": "borderWidth-default",
|
|
174
|
+
"attributes": {},
|
|
175
|
+
"path": ["borderWidth", "default"],
|
|
176
|
+
"key": "{borderWidth.default}"
|
|
177
|
+
},
|
|
178
|
+
"borderWidth-thick": {
|
|
179
|
+
"$value": ["0.125rem", "2px"],
|
|
180
|
+
"$type": "dimension",
|
|
181
|
+
"filePath": "src/tokens/functional/size/border.json5",
|
|
182
|
+
"isSource": true,
|
|
183
|
+
"original": {
|
|
184
|
+
"$value": "2px",
|
|
185
|
+
"$type": "dimension"
|
|
186
|
+
},
|
|
187
|
+
"name": "borderWidth-thick",
|
|
188
|
+
"attributes": {},
|
|
189
|
+
"path": ["borderWidth", "thick"],
|
|
190
|
+
"key": "{borderWidth.thick}"
|
|
191
|
+
},
|
|
192
|
+
"borderWidth-thicker": {
|
|
193
|
+
"$value": ["0.25rem", "4px"],
|
|
194
|
+
"$type": "dimension",
|
|
195
|
+
"filePath": "src/tokens/functional/size/border.json5",
|
|
196
|
+
"isSource": true,
|
|
197
|
+
"original": {
|
|
198
|
+
"$value": "4px",
|
|
199
|
+
"$type": "dimension"
|
|
200
|
+
},
|
|
201
|
+
"name": "borderWidth-thicker",
|
|
202
|
+
"attributes": {},
|
|
203
|
+
"path": ["borderWidth", "thicker"],
|
|
204
|
+
"key": "{borderWidth.thicker}"
|
|
205
|
+
},
|
|
206
|
+
"borderWidth-thin": {
|
|
207
|
+
"$value": ["0.0625rem", "1px"],
|
|
208
|
+
"$type": "dimension",
|
|
209
|
+
"filePath": "src/tokens/functional/size/border.json5",
|
|
210
|
+
"isSource": true,
|
|
211
|
+
"original": {
|
|
212
|
+
"$value": "1px",
|
|
213
|
+
"$type": "dimension"
|
|
214
|
+
},
|
|
215
|
+
"name": "borderWidth-thin",
|
|
216
|
+
"attributes": {},
|
|
217
|
+
"path": ["borderWidth", "thin"],
|
|
218
|
+
"key": "{borderWidth.thin}"
|
|
219
|
+
},
|
|
220
|
+
"boxShadow-thick": {
|
|
221
|
+
"$value": ["0.125rem", "2px"],
|
|
222
|
+
"$type": "string",
|
|
223
|
+
"filePath": "src/tokens/functional/size/border.json5",
|
|
224
|
+
"isSource": true,
|
|
225
|
+
"original": {
|
|
226
|
+
"$value": "inset 0 0 0 {borderWidth.thick}",
|
|
227
|
+
"$type": "string"
|
|
228
|
+
},
|
|
229
|
+
"name": "boxShadow-thick",
|
|
230
|
+
"attributes": {},
|
|
231
|
+
"path": ["boxShadow", "thick"],
|
|
232
|
+
"key": "{boxShadow.thick}"
|
|
233
|
+
},
|
|
234
|
+
"boxShadow-thicker": {
|
|
235
|
+
"$value": ["0.25rem", "4px"],
|
|
236
|
+
"$type": "string",
|
|
237
|
+
"filePath": "src/tokens/functional/size/border.json5",
|
|
238
|
+
"isSource": true,
|
|
239
|
+
"original": {
|
|
240
|
+
"$value": "inset 0 0 0 {borderWidth.thicker}",
|
|
241
|
+
"$type": "string"
|
|
242
|
+
},
|
|
243
|
+
"name": "boxShadow-thicker",
|
|
244
|
+
"attributes": {},
|
|
245
|
+
"path": ["boxShadow", "thicker"],
|
|
246
|
+
"key": "{boxShadow.thicker}"
|
|
247
|
+
},
|
|
248
|
+
"boxShadow-thin": {
|
|
249
|
+
"$value": ["0.0625rem", "1px"],
|
|
250
|
+
"$description": "Thin shadow for borders",
|
|
251
|
+
"$type": "string",
|
|
252
|
+
"filePath": "src/tokens/functional/size/border.json5",
|
|
253
|
+
"isSource": true,
|
|
254
|
+
"original": {
|
|
255
|
+
"$value": "inset 0 0 0 {borderWidth.thin}",
|
|
256
|
+
"$description": "Thin shadow for borders",
|
|
257
|
+
"$type": "string"
|
|
258
|
+
},
|
|
259
|
+
"name": "boxShadow-thin",
|
|
249
260
|
"attributes": {},
|
|
250
|
-
"path": ["
|
|
261
|
+
"path": ["boxShadow", "thin"],
|
|
262
|
+
"key": "{boxShadow.thin}"
|
|
251
263
|
},
|
|
252
264
|
"outline-focus-offset": {
|
|
253
265
|
"$value": ["-0.125rem", "-2px"],
|
|
@@ -260,7 +272,8 @@
|
|
|
260
272
|
},
|
|
261
273
|
"name": "outline-focus-offset",
|
|
262
274
|
"attributes": {},
|
|
263
|
-
"path": ["outline", "focus", "offset"]
|
|
275
|
+
"path": ["outline", "focus", "offset"],
|
|
276
|
+
"key": "{outline.focus.offset}"
|
|
264
277
|
},
|
|
265
278
|
"outline-focus-width": {
|
|
266
279
|
"$value": ["0.125rem", "2px"],
|
|
@@ -273,6 +286,7 @@
|
|
|
273
286
|
},
|
|
274
287
|
"name": "outline-focus-width",
|
|
275
288
|
"attributes": {},
|
|
276
|
-
"path": ["outline", "focus", "width"]
|
|
289
|
+
"path": ["outline", "focus", "width"],
|
|
290
|
+
"key": "{outline.focus.width}"
|
|
277
291
|
}
|
|
278
292
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"breakpoint-
|
|
3
|
-
"$value": ["
|
|
2
|
+
"breakpoint-large": {
|
|
3
|
+
"$value": ["63.25rem", "1012px"],
|
|
4
4
|
"$type": "dimension",
|
|
5
5
|
"$extensions": {
|
|
6
6
|
"org.primer.figma": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
12
12
|
"isSource": true,
|
|
13
13
|
"original": {
|
|
14
|
-
"$value": "
|
|
14
|
+
"$value": "1012px",
|
|
15
15
|
"$type": "dimension",
|
|
16
16
|
"$extensions": {
|
|
17
17
|
"org.primer.figma": {
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"name": "breakpoint-
|
|
23
|
+
"name": "breakpoint-large",
|
|
24
24
|
"attributes": {},
|
|
25
|
-
"path": ["breakpoint", "
|
|
25
|
+
"path": ["breakpoint", "large"],
|
|
26
|
+
"key": "{breakpoint.large}"
|
|
26
27
|
},
|
|
27
|
-
"breakpoint-
|
|
28
|
-
"$value": ["
|
|
28
|
+
"breakpoint-medium": {
|
|
29
|
+
"$value": ["48rem", "768px"],
|
|
29
30
|
"$type": "dimension",
|
|
30
31
|
"$extensions": {
|
|
31
32
|
"org.primer.figma": {
|
|
@@ -36,7 +37,7 @@
|
|
|
36
37
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
37
38
|
"isSource": true,
|
|
38
39
|
"original": {
|
|
39
|
-
"$value": "
|
|
40
|
+
"$value": "768px",
|
|
40
41
|
"$type": "dimension",
|
|
41
42
|
"$extensions": {
|
|
42
43
|
"org.primer.figma": {
|
|
@@ -45,12 +46,13 @@
|
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
48
|
},
|
|
48
|
-
"name": "breakpoint-
|
|
49
|
+
"name": "breakpoint-medium",
|
|
49
50
|
"attributes": {},
|
|
50
|
-
"path": ["breakpoint", "
|
|
51
|
+
"path": ["breakpoint", "medium"],
|
|
52
|
+
"key": "{breakpoint.medium}"
|
|
51
53
|
},
|
|
52
|
-
"breakpoint-
|
|
53
|
-
"$value": ["
|
|
54
|
+
"breakpoint-small": {
|
|
55
|
+
"$value": ["34rem", "544px"],
|
|
54
56
|
"$type": "dimension",
|
|
55
57
|
"$extensions": {
|
|
56
58
|
"org.primer.figma": {
|
|
@@ -61,7 +63,7 @@
|
|
|
61
63
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
62
64
|
"isSource": true,
|
|
63
65
|
"original": {
|
|
64
|
-
"$value": "
|
|
66
|
+
"$value": "544px",
|
|
65
67
|
"$type": "dimension",
|
|
66
68
|
"$extensions": {
|
|
67
69
|
"org.primer.figma": {
|
|
@@ -70,12 +72,13 @@
|
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
74
|
},
|
|
73
|
-
"name": "breakpoint-
|
|
75
|
+
"name": "breakpoint-small",
|
|
74
76
|
"attributes": {},
|
|
75
|
-
"path": ["breakpoint", "
|
|
77
|
+
"path": ["breakpoint", "small"],
|
|
78
|
+
"key": "{breakpoint.small}"
|
|
76
79
|
},
|
|
77
|
-
"breakpoint-
|
|
78
|
-
"$value": ["
|
|
80
|
+
"breakpoint-xlarge": {
|
|
81
|
+
"$value": ["80rem", "1280px"],
|
|
79
82
|
"$type": "dimension",
|
|
80
83
|
"$extensions": {
|
|
81
84
|
"org.primer.figma": {
|
|
@@ -86,7 +89,7 @@
|
|
|
86
89
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
87
90
|
"isSource": true,
|
|
88
91
|
"original": {
|
|
89
|
-
"$value": "
|
|
92
|
+
"$value": "1280px",
|
|
90
93
|
"$type": "dimension",
|
|
91
94
|
"$extensions": {
|
|
92
95
|
"org.primer.figma": {
|
|
@@ -95,12 +98,13 @@
|
|
|
95
98
|
}
|
|
96
99
|
}
|
|
97
100
|
},
|
|
98
|
-
"name": "breakpoint-
|
|
101
|
+
"name": "breakpoint-xlarge",
|
|
99
102
|
"attributes": {},
|
|
100
|
-
"path": ["breakpoint", "
|
|
103
|
+
"path": ["breakpoint", "xlarge"],
|
|
104
|
+
"key": "{breakpoint.xlarge}"
|
|
101
105
|
},
|
|
102
|
-
"breakpoint-
|
|
103
|
-
"$value": ["
|
|
106
|
+
"breakpoint-xsmall": {
|
|
107
|
+
"$value": ["20rem", "320px"],
|
|
104
108
|
"$type": "dimension",
|
|
105
109
|
"$extensions": {
|
|
106
110
|
"org.primer.figma": {
|
|
@@ -111,7 +115,7 @@
|
|
|
111
115
|
"filePath": "src/tokens/functional/size/breakpoints.json5",
|
|
112
116
|
"isSource": true,
|
|
113
117
|
"original": {
|
|
114
|
-
"$value": "
|
|
118
|
+
"$value": "320px",
|
|
115
119
|
"$type": "dimension",
|
|
116
120
|
"$extensions": {
|
|
117
121
|
"org.primer.figma": {
|
|
@@ -120,9 +124,10 @@
|
|
|
120
124
|
}
|
|
121
125
|
}
|
|
122
126
|
},
|
|
123
|
-
"name": "breakpoint-
|
|
127
|
+
"name": "breakpoint-xsmall",
|
|
124
128
|
"attributes": {},
|
|
125
|
-
"path": ["breakpoint", "
|
|
129
|
+
"path": ["breakpoint", "xsmall"],
|
|
130
|
+
"key": "{breakpoint.xsmall}"
|
|
126
131
|
},
|
|
127
132
|
"breakpoint-xxlarge": {
|
|
128
133
|
"$value": ["87.5rem", "1400px"],
|
|
@@ -147,6 +152,7 @@
|
|
|
147
152
|
},
|
|
148
153
|
"name": "breakpoint-xxlarge",
|
|
149
154
|
"attributes": {},
|
|
150
|
-
"path": ["breakpoint", "xxlarge"]
|
|
155
|
+
"path": ["breakpoint", "xxlarge"],
|
|
156
|
+
"key": "{breakpoint.xxlarge}"
|
|
151
157
|
}
|
|
152
158
|
}
|