@primer/primitives 11.4.0 → 11.4.1-rc.6196071f
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_SPEC.md +446 -0
- package/dist/build/formats/markdownLlmGuidelines.d.ts +7 -6
- package/dist/build/formats/markdownLlmGuidelines.js +685 -60
- package/dist/build/schemas/durationToken.d.ts +7 -1
- package/dist/build/schemas/durationValue.d.ts +11 -1
- package/dist/build/schemas/durationValue.js +13 -3
- package/dist/build/schemas/transitionToken.d.ts +14 -2
- package/dist/build/transformers/durationToCss.d.ts +2 -1
- package/dist/build/transformers/durationToCss.js +18 -11
- package/dist/css/functional/themes/dark-colorblind-high-contrast.css +4 -0
- package/dist/css/functional/themes/dark-colorblind.css +4 -0
- package/dist/css/functional/themes/dark-dimmed-high-contrast.css +4 -0
- package/dist/css/functional/themes/dark-dimmed.css +4 -0
- package/dist/css/functional/themes/dark-high-contrast.css +4 -0
- package/dist/css/functional/themes/dark-tritanopia-high-contrast.css +4 -0
- package/dist/css/functional/themes/dark-tritanopia.css +4 -0
- package/dist/css/functional/themes/dark.css +4 -0
- package/dist/css/functional/themes/light-colorblind-high-contrast.css +4 -0
- package/dist/css/functional/themes/light-colorblind.css +4 -0
- package/dist/css/functional/themes/light-high-contrast.css +4 -0
- package/dist/css/functional/themes/light-tritanopia-high-contrast.css +4 -0
- package/dist/css/functional/themes/light-tritanopia.css +4 -0
- package/dist/css/functional/themes/light.css +4 -0
- package/dist/css/primitives.css +4 -0
- package/dist/docs/base/motion/motion.json +96 -24
- package/dist/fallbacks/base/motion/motion.json +48 -12
- package/dist/styleLint/base/motion/motion.json +96 -24
- package/package.json +5 -4
- package/src/tokens/base/motion/timing.json5 +12 -12
- package/token-guidelines.llm.md +0 -695
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"base-duration-0": {
|
|
3
3
|
"key": "{base.duration.0}",
|
|
4
|
-
"$value":
|
|
4
|
+
"$value": {
|
|
5
|
+
"value": 0,
|
|
6
|
+
"unit": "ms"
|
|
7
|
+
},
|
|
5
8
|
"$type": "duration",
|
|
6
9
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
7
10
|
"isSource": true,
|
|
8
11
|
"original": {
|
|
9
|
-
"$value":
|
|
12
|
+
"$value": {
|
|
13
|
+
"value": 0,
|
|
14
|
+
"unit": "ms"
|
|
15
|
+
},
|
|
10
16
|
"$type": "duration",
|
|
11
17
|
"key": "{base.duration.0}"
|
|
12
18
|
},
|
|
@@ -16,12 +22,18 @@
|
|
|
16
22
|
},
|
|
17
23
|
"base-duration-100": {
|
|
18
24
|
"key": "{base.duration.100}",
|
|
19
|
-
"$value":
|
|
25
|
+
"$value": {
|
|
26
|
+
"value": 100,
|
|
27
|
+
"unit": "ms"
|
|
28
|
+
},
|
|
20
29
|
"$type": "duration",
|
|
21
30
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
22
31
|
"isSource": true,
|
|
23
32
|
"original": {
|
|
24
|
-
"$value":
|
|
33
|
+
"$value": {
|
|
34
|
+
"value": 100,
|
|
35
|
+
"unit": "ms"
|
|
36
|
+
},
|
|
25
37
|
"$type": "duration",
|
|
26
38
|
"key": "{base.duration.100}"
|
|
27
39
|
},
|
|
@@ -31,12 +43,18 @@
|
|
|
31
43
|
},
|
|
32
44
|
"base-duration-1000": {
|
|
33
45
|
"key": "{base.duration.1000}",
|
|
34
|
-
"$value":
|
|
46
|
+
"$value": {
|
|
47
|
+
"value": 1000,
|
|
48
|
+
"unit": "ms"
|
|
49
|
+
},
|
|
35
50
|
"$type": "duration",
|
|
36
51
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
37
52
|
"isSource": true,
|
|
38
53
|
"original": {
|
|
39
|
-
"$value":
|
|
54
|
+
"$value": {
|
|
55
|
+
"value": 1000,
|
|
56
|
+
"unit": "ms"
|
|
57
|
+
},
|
|
40
58
|
"$type": "duration",
|
|
41
59
|
"key": "{base.duration.1000}"
|
|
42
60
|
},
|
|
@@ -46,12 +64,18 @@
|
|
|
46
64
|
},
|
|
47
65
|
"base-duration-200": {
|
|
48
66
|
"key": "{base.duration.200}",
|
|
49
|
-
"$value":
|
|
67
|
+
"$value": {
|
|
68
|
+
"value": 200,
|
|
69
|
+
"unit": "ms"
|
|
70
|
+
},
|
|
50
71
|
"$type": "duration",
|
|
51
72
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
52
73
|
"isSource": true,
|
|
53
74
|
"original": {
|
|
54
|
-
"$value":
|
|
75
|
+
"$value": {
|
|
76
|
+
"value": 200,
|
|
77
|
+
"unit": "ms"
|
|
78
|
+
},
|
|
55
79
|
"$type": "duration",
|
|
56
80
|
"key": "{base.duration.200}"
|
|
57
81
|
},
|
|
@@ -61,12 +85,18 @@
|
|
|
61
85
|
},
|
|
62
86
|
"base-duration-300": {
|
|
63
87
|
"key": "{base.duration.300}",
|
|
64
|
-
"$value":
|
|
88
|
+
"$value": {
|
|
89
|
+
"value": 300,
|
|
90
|
+
"unit": "ms"
|
|
91
|
+
},
|
|
65
92
|
"$type": "duration",
|
|
66
93
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
67
94
|
"isSource": true,
|
|
68
95
|
"original": {
|
|
69
|
-
"$value":
|
|
96
|
+
"$value": {
|
|
97
|
+
"value": 300,
|
|
98
|
+
"unit": "ms"
|
|
99
|
+
},
|
|
70
100
|
"$type": "duration",
|
|
71
101
|
"key": "{base.duration.300}"
|
|
72
102
|
},
|
|
@@ -76,12 +106,18 @@
|
|
|
76
106
|
},
|
|
77
107
|
"base-duration-400": {
|
|
78
108
|
"key": "{base.duration.400}",
|
|
79
|
-
"$value":
|
|
109
|
+
"$value": {
|
|
110
|
+
"value": 400,
|
|
111
|
+
"unit": "ms"
|
|
112
|
+
},
|
|
80
113
|
"$type": "duration",
|
|
81
114
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
82
115
|
"isSource": true,
|
|
83
116
|
"original": {
|
|
84
|
-
"$value":
|
|
117
|
+
"$value": {
|
|
118
|
+
"value": 400,
|
|
119
|
+
"unit": "ms"
|
|
120
|
+
},
|
|
85
121
|
"$type": "duration",
|
|
86
122
|
"key": "{base.duration.400}"
|
|
87
123
|
},
|
|
@@ -91,12 +127,18 @@
|
|
|
91
127
|
},
|
|
92
128
|
"base-duration-50": {
|
|
93
129
|
"key": "{base.duration.50}",
|
|
94
|
-
"$value":
|
|
130
|
+
"$value": {
|
|
131
|
+
"value": 50,
|
|
132
|
+
"unit": "ms"
|
|
133
|
+
},
|
|
95
134
|
"$type": "duration",
|
|
96
135
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
97
136
|
"isSource": true,
|
|
98
137
|
"original": {
|
|
99
|
-
"$value":
|
|
138
|
+
"$value": {
|
|
139
|
+
"value": 50,
|
|
140
|
+
"unit": "ms"
|
|
141
|
+
},
|
|
100
142
|
"$type": "duration",
|
|
101
143
|
"key": "{base.duration.50}"
|
|
102
144
|
},
|
|
@@ -106,12 +148,18 @@
|
|
|
106
148
|
},
|
|
107
149
|
"base-duration-500": {
|
|
108
150
|
"key": "{base.duration.500}",
|
|
109
|
-
"$value":
|
|
151
|
+
"$value": {
|
|
152
|
+
"value": 500,
|
|
153
|
+
"unit": "ms"
|
|
154
|
+
},
|
|
110
155
|
"$type": "duration",
|
|
111
156
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
112
157
|
"isSource": true,
|
|
113
158
|
"original": {
|
|
114
|
-
"$value":
|
|
159
|
+
"$value": {
|
|
160
|
+
"value": 500,
|
|
161
|
+
"unit": "ms"
|
|
162
|
+
},
|
|
115
163
|
"$type": "duration",
|
|
116
164
|
"key": "{base.duration.500}"
|
|
117
165
|
},
|
|
@@ -121,12 +169,18 @@
|
|
|
121
169
|
},
|
|
122
170
|
"base-duration-600": {
|
|
123
171
|
"key": "{base.duration.600}",
|
|
124
|
-
"$value":
|
|
172
|
+
"$value": {
|
|
173
|
+
"value": 600,
|
|
174
|
+
"unit": "ms"
|
|
175
|
+
},
|
|
125
176
|
"$type": "duration",
|
|
126
177
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
127
178
|
"isSource": true,
|
|
128
179
|
"original": {
|
|
129
|
-
"$value":
|
|
180
|
+
"$value": {
|
|
181
|
+
"value": 600,
|
|
182
|
+
"unit": "ms"
|
|
183
|
+
},
|
|
130
184
|
"$type": "duration",
|
|
131
185
|
"key": "{base.duration.600}"
|
|
132
186
|
},
|
|
@@ -136,12 +190,18 @@
|
|
|
136
190
|
},
|
|
137
191
|
"base-duration-700": {
|
|
138
192
|
"key": "{base.duration.700}",
|
|
139
|
-
"$value":
|
|
193
|
+
"$value": {
|
|
194
|
+
"value": 700,
|
|
195
|
+
"unit": "ms"
|
|
196
|
+
},
|
|
140
197
|
"$type": "duration",
|
|
141
198
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
142
199
|
"isSource": true,
|
|
143
200
|
"original": {
|
|
144
|
-
"$value":
|
|
201
|
+
"$value": {
|
|
202
|
+
"value": 700,
|
|
203
|
+
"unit": "ms"
|
|
204
|
+
},
|
|
145
205
|
"$type": "duration",
|
|
146
206
|
"key": "{base.duration.700}"
|
|
147
207
|
},
|
|
@@ -151,12 +211,18 @@
|
|
|
151
211
|
},
|
|
152
212
|
"base-duration-800": {
|
|
153
213
|
"key": "{base.duration.800}",
|
|
154
|
-
"$value":
|
|
214
|
+
"$value": {
|
|
215
|
+
"value": 800,
|
|
216
|
+
"unit": "ms"
|
|
217
|
+
},
|
|
155
218
|
"$type": "duration",
|
|
156
219
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
157
220
|
"isSource": true,
|
|
158
221
|
"original": {
|
|
159
|
-
"$value":
|
|
222
|
+
"$value": {
|
|
223
|
+
"value": 800,
|
|
224
|
+
"unit": "ms"
|
|
225
|
+
},
|
|
160
226
|
"$type": "duration",
|
|
161
227
|
"key": "{base.duration.800}"
|
|
162
228
|
},
|
|
@@ -166,12 +232,18 @@
|
|
|
166
232
|
},
|
|
167
233
|
"base-duration-900": {
|
|
168
234
|
"key": "{base.duration.900}",
|
|
169
|
-
"$value":
|
|
235
|
+
"$value": {
|
|
236
|
+
"value": 900,
|
|
237
|
+
"unit": "ms"
|
|
238
|
+
},
|
|
170
239
|
"$type": "duration",
|
|
171
240
|
"filePath": "src/tokens/base/motion/timing.json5",
|
|
172
241
|
"isSource": true,
|
|
173
242
|
"original": {
|
|
174
|
-
"$value":
|
|
243
|
+
"$value": {
|
|
244
|
+
"value": 900,
|
|
245
|
+
"unit": "ms"
|
|
246
|
+
},
|
|
175
247
|
"$type": "duration",
|
|
176
248
|
"key": "{base.duration.900}"
|
|
177
249
|
},
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/primitives",
|
|
3
|
-
"version": "11.4.
|
|
3
|
+
"version": "11.4.1-rc.6196071f",
|
|
4
4
|
"description": "Typography, spacing, and color primitives for Primer design system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
8
8
|
"src/tokens",
|
|
9
|
-
"
|
|
9
|
+
"DESIGN_TOKENS_SPEC.md",
|
|
10
10
|
"guidelines"
|
|
11
11
|
],
|
|
12
12
|
"repository": "https://github.com/primer/primitives",
|
|
@@ -25,11 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/primer/primitives#readme",
|
|
27
27
|
"scripts": {
|
|
28
|
-
"build": "npm run clean && npm run build:tokens && npm run build:fallbacks && npm run build:figma && npm run build:config",
|
|
28
|
+
"build": "npm run clean && npm run build:tokens && npm run build:fallbacks && npm run build:figma && npm run build:config && npm run build:llm",
|
|
29
29
|
"build:tokens": "tsx ./scripts/buildTokens.ts",
|
|
30
30
|
"build:fallbacks": "tsx ./scripts/buildFallbacks.ts",
|
|
31
31
|
"build:figma": "tsx scripts/buildFigma.ts",
|
|
32
32
|
"build:config": "tsc -p build.tsconfig.jsonc && tsx ./scripts/copyDir.ts src/types dist/build/types",
|
|
33
|
+
"build:llm": "tsx ./scripts/buildLlm.ts",
|
|
33
34
|
"clean": "rm -rf dist",
|
|
34
35
|
"validate:contrast": "tsx scripts/colorContrast.ts",
|
|
35
36
|
"format": "prettier --check '**/*.{js,jsx,ts,tsx,md,mdx,css}'",
|
|
@@ -79,4 +80,4 @@
|
|
|
79
80
|
"zod": "^4.1.3",
|
|
80
81
|
"zod-validation-error": "^4.0.1"
|
|
81
82
|
}
|
|
82
|
-
}
|
|
83
|
+
}
|
|
@@ -2,51 +2,51 @@
|
|
|
2
2
|
base: {
|
|
3
3
|
duration: {
|
|
4
4
|
'0': {
|
|
5
|
-
$value: '
|
|
5
|
+
$value: {value: 0, unit: 'ms'},
|
|
6
6
|
$type: 'duration',
|
|
7
7
|
},
|
|
8
8
|
'50': {
|
|
9
|
-
$value: '
|
|
9
|
+
$value: {value: 50, unit: 'ms'},
|
|
10
10
|
$type: 'duration',
|
|
11
11
|
},
|
|
12
12
|
'100': {
|
|
13
|
-
$value: '
|
|
13
|
+
$value: {value: 100, unit: 'ms'},
|
|
14
14
|
$type: 'duration',
|
|
15
15
|
},
|
|
16
16
|
'200': {
|
|
17
|
-
$value: '
|
|
17
|
+
$value: {value: 200, unit: 'ms'},
|
|
18
18
|
$type: 'duration',
|
|
19
19
|
},
|
|
20
20
|
'300': {
|
|
21
|
-
$value: '
|
|
21
|
+
$value: {value: 300, unit: 'ms'},
|
|
22
22
|
$type: 'duration',
|
|
23
23
|
},
|
|
24
24
|
'400': {
|
|
25
|
-
$value: '
|
|
25
|
+
$value: {value: 400, unit: 'ms'},
|
|
26
26
|
$type: 'duration',
|
|
27
27
|
},
|
|
28
28
|
'500': {
|
|
29
|
-
$value: '
|
|
29
|
+
$value: {value: 500, unit: 'ms'},
|
|
30
30
|
$type: 'duration',
|
|
31
31
|
},
|
|
32
32
|
'600': {
|
|
33
|
-
$value: '
|
|
33
|
+
$value: {value: 600, unit: 'ms'},
|
|
34
34
|
$type: 'duration',
|
|
35
35
|
},
|
|
36
36
|
'700': {
|
|
37
|
-
$value: '
|
|
37
|
+
$value: {value: 700, unit: 'ms'},
|
|
38
38
|
$type: 'duration',
|
|
39
39
|
},
|
|
40
40
|
'800': {
|
|
41
|
-
$value: '
|
|
41
|
+
$value: {value: 800, unit: 'ms'},
|
|
42
42
|
$type: 'duration',
|
|
43
43
|
},
|
|
44
44
|
'900': {
|
|
45
|
-
$value: '
|
|
45
|
+
$value: {value: 900, unit: 'ms'},
|
|
46
46
|
$type: 'duration',
|
|
47
47
|
},
|
|
48
48
|
'1000': {
|
|
49
|
-
$value: '
|
|
49
|
+
$value: {value: 1000, unit: 'ms'},
|
|
50
50
|
$type: 'duration',
|
|
51
51
|
},
|
|
52
52
|
},
|