@primer/primitives 8.2.1 → 8.2.2
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/docs/base/typography/typography.json +8 -8
- package/dist/docs/functional/typography/typography.json +68 -68
- package/dist/figma/typography/typography.json +37 -37
- package/dist/styleLint/base/typography/typography.json +8 -8
- package/dist/styleLint/functional/typography/typography.json +68 -68
- package/package.json +1 -1
- package/src/schemas/dimensionToken.ts +12 -1
- package/src/schemas/fontFamilyToken.ts +1 -1
- package/src/schemas/fontWeightToken.ts +1 -1
- package/src/schemas/numberToken.ts +1 -1
- package/src/schemas/scopes.ts +37 -2
- package/src/tokens/base/typography/typography.json +4 -4
- package/src/tokens/functional/typography/typography.json +34 -34
- package/src/transformers/figmaAttributes.ts +1 -0
- package/src/utilities/joinFriendly.ts +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"collection": "typography",
|
|
8
8
|
"mode": "default",
|
|
9
9
|
"group": "typography",
|
|
10
|
-
"scopes": ["
|
|
10
|
+
"scopes": ["LINE_HEIGHT"]
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"name": "text/codeBlock/size",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"collection": "typography",
|
|
18
18
|
"mode": "default",
|
|
19
19
|
"group": "typography",
|
|
20
|
-
"scopes": ["
|
|
20
|
+
"scopes": ["FONT_SIZE"]
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "text/caption/lineHeight",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"collection": "typography",
|
|
28
28
|
"mode": "default",
|
|
29
29
|
"group": "typography",
|
|
30
|
-
"scopes": ["
|
|
30
|
+
"scopes": ["LINE_HEIGHT"]
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "text/caption/size",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"collection": "typography",
|
|
38
38
|
"mode": "default",
|
|
39
39
|
"group": "typography",
|
|
40
|
-
"scopes": ["
|
|
40
|
+
"scopes": ["FONT_SIZE"]
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"name": "text/body/lineHeight/small",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"collection": "typography",
|
|
48
48
|
"mode": "default",
|
|
49
49
|
"group": "typography",
|
|
50
|
-
"scopes": ["
|
|
50
|
+
"scopes": ["LINE_HEIGHT"]
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"name": "text/body/lineHeight/medium",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"collection": "typography",
|
|
58
58
|
"mode": "default",
|
|
59
59
|
"group": "typography",
|
|
60
|
-
"scopes": ["
|
|
60
|
+
"scopes": ["LINE_HEIGHT"]
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"name": "text/body/lineHeight/large",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"collection": "typography",
|
|
68
68
|
"mode": "default",
|
|
69
69
|
"group": "typography",
|
|
70
|
-
"scopes": ["
|
|
70
|
+
"scopes": ["LINE_HEIGHT"]
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"name": "text/body/size/small",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"collection": "typography",
|
|
78
78
|
"mode": "default",
|
|
79
79
|
"group": "typography",
|
|
80
|
-
"scopes": ["
|
|
80
|
+
"scopes": ["FONT_SIZE"]
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"name": "text/body/size/medium",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"collection": "typography",
|
|
88
88
|
"mode": "default",
|
|
89
89
|
"group": "typography",
|
|
90
|
-
"scopes": ["
|
|
90
|
+
"scopes": ["FONT_SIZE"]
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"name": "text/body/size/large",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"collection": "typography",
|
|
98
98
|
"mode": "default",
|
|
99
99
|
"group": "typography",
|
|
100
|
-
"scopes": ["
|
|
100
|
+
"scopes": ["FONT_SIZE"]
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"name": "text/subtitle/lineHeight",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"collection": "typography",
|
|
108
108
|
"mode": "default",
|
|
109
109
|
"group": "typography",
|
|
110
|
-
"scopes": ["
|
|
110
|
+
"scopes": ["LINE_HEIGHT"]
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"name": "text/subtitle/size",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"collection": "typography",
|
|
118
118
|
"mode": "default",
|
|
119
119
|
"group": "typography",
|
|
120
|
-
"scopes": ["
|
|
120
|
+
"scopes": ["FONT_SIZE"]
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"name": "text/title/lineHeight/small",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"collection": "typography",
|
|
128
128
|
"mode": "default",
|
|
129
129
|
"group": "typography",
|
|
130
|
-
"scopes": ["
|
|
130
|
+
"scopes": ["LINE_HEIGHT"]
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"name": "text/title/lineHeight/medium",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
"collection": "typography",
|
|
138
138
|
"mode": "default",
|
|
139
139
|
"group": "typography",
|
|
140
|
-
"scopes": ["
|
|
140
|
+
"scopes": ["LINE_HEIGHT"]
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"name": "text/title/lineHeight/large",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"collection": "typography",
|
|
148
148
|
"mode": "default",
|
|
149
149
|
"group": "typography",
|
|
150
|
-
"scopes": ["
|
|
150
|
+
"scopes": ["LINE_HEIGHT"]
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"name": "text/title/size/small",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"collection": "typography",
|
|
158
158
|
"mode": "default",
|
|
159
159
|
"group": "typography",
|
|
160
|
-
"scopes": ["
|
|
160
|
+
"scopes": ["FONT_SIZE"]
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"name": "text/title/size/medium",
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
"collection": "typography",
|
|
168
168
|
"mode": "default",
|
|
169
169
|
"group": "typography",
|
|
170
|
-
"scopes": ["
|
|
170
|
+
"scopes": ["FONT_SIZE"]
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"name": "text/title/size/large",
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"collection": "typography",
|
|
178
178
|
"mode": "default",
|
|
179
179
|
"group": "typography",
|
|
180
|
-
"scopes": ["
|
|
180
|
+
"scopes": ["FONT_SIZE"]
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"name": "text/display/lineHeight",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"collection": "typography",
|
|
188
188
|
"mode": "default",
|
|
189
189
|
"group": "typography",
|
|
190
|
-
"scopes": ["
|
|
190
|
+
"scopes": ["LINE_HEIGHT"]
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"name": "text/display/size",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"collection": "typography",
|
|
198
198
|
"mode": "default",
|
|
199
199
|
"group": "typography",
|
|
200
|
-
"scopes": ["
|
|
200
|
+
"scopes": ["FONT_SIZE"]
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"name": "text/display/lineBoxHeight",
|
|
@@ -207,7 +207,7 @@
|
|
|
207
207
|
"collection": "typography",
|
|
208
208
|
"mode": "default",
|
|
209
209
|
"group": "typography",
|
|
210
|
-
"scopes": ["
|
|
210
|
+
"scopes": ["LINE_HEIGHT"]
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"name": "fontStack/monospace",
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
"collection": "typography",
|
|
218
218
|
"mode": "default",
|
|
219
219
|
"group": "typography",
|
|
220
|
-
"scopes": ["
|
|
220
|
+
"scopes": ["FONT_FAMILY"]
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"name": "fontStack/sansSerif",
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
"collection": "typography",
|
|
228
228
|
"mode": "default",
|
|
229
229
|
"group": "typography",
|
|
230
|
-
"scopes": ["
|
|
230
|
+
"scopes": ["FONT_FAMILY"]
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"name": "fontStack/system",
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
"collection": "typography",
|
|
238
238
|
"mode": "default",
|
|
239
239
|
"group": "typography",
|
|
240
|
-
"scopes": ["
|
|
240
|
+
"scopes": ["FONT_FAMILY"]
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"name": "base/text/weight/semibold",
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
"collection": "base/typography",
|
|
248
248
|
"mode": "default",
|
|
249
249
|
"group": "base/typography",
|
|
250
|
-
"scopes": ["
|
|
250
|
+
"scopes": ["FONT_WEIGHT"]
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"name": "base/text/weight/medium",
|
|
@@ -257,7 +257,7 @@
|
|
|
257
257
|
"collection": "base/typography",
|
|
258
258
|
"mode": "default",
|
|
259
259
|
"group": "base/typography",
|
|
260
|
-
"scopes": ["
|
|
260
|
+
"scopes": ["FONT_WEIGHT"]
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"name": "base/text/weight/normal",
|
|
@@ -267,7 +267,7 @@
|
|
|
267
267
|
"collection": "base/typography",
|
|
268
268
|
"mode": "default",
|
|
269
269
|
"group": "base/typography",
|
|
270
|
-
"scopes": ["
|
|
270
|
+
"scopes": ["FONT_WEIGHT"]
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"name": "base/text/weight/light",
|
|
@@ -277,7 +277,7 @@
|
|
|
277
277
|
"collection": "base/typography",
|
|
278
278
|
"mode": "default",
|
|
279
279
|
"group": "base/typography",
|
|
280
|
-
"scopes": ["
|
|
280
|
+
"scopes": ["FONT_WEIGHT"]
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"name": "text/codeInline/weight",
|
|
@@ -288,7 +288,7 @@
|
|
|
288
288
|
"collection": "typography",
|
|
289
289
|
"mode": "default",
|
|
290
290
|
"group": "typography",
|
|
291
|
-
"scopes": ["
|
|
291
|
+
"scopes": ["FONT_WEIGHT"]
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"name": "text/codeBlock/weight",
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
"collection": "typography",
|
|
300
300
|
"mode": "default",
|
|
301
301
|
"group": "typography",
|
|
302
|
-
"scopes": ["
|
|
302
|
+
"scopes": ["FONT_WEIGHT"]
|
|
303
303
|
},
|
|
304
304
|
{
|
|
305
305
|
"name": "text/caption/weight",
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
"collection": "typography",
|
|
311
311
|
"mode": "default",
|
|
312
312
|
"group": "typography",
|
|
313
|
-
"scopes": ["
|
|
313
|
+
"scopes": ["FONT_WEIGHT"]
|
|
314
314
|
},
|
|
315
315
|
{
|
|
316
316
|
"name": "text/body/weight",
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
"collection": "typography",
|
|
322
322
|
"mode": "default",
|
|
323
323
|
"group": "typography",
|
|
324
|
-
"scopes": ["
|
|
324
|
+
"scopes": ["FONT_WEIGHT"]
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
327
|
"name": "text/subtitle/weight",
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
"collection": "typography",
|
|
333
333
|
"mode": "default",
|
|
334
334
|
"group": "typography",
|
|
335
|
-
"scopes": ["
|
|
335
|
+
"scopes": ["FONT_WEIGHT"]
|
|
336
336
|
},
|
|
337
337
|
{
|
|
338
338
|
"name": "text/title/weight/small",
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
"collection": "typography",
|
|
344
344
|
"mode": "default",
|
|
345
345
|
"group": "typography",
|
|
346
|
-
"scopes": ["
|
|
346
|
+
"scopes": ["FONT_WEIGHT"]
|
|
347
347
|
},
|
|
348
348
|
{
|
|
349
349
|
"name": "text/title/weight/medium",
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
"collection": "typography",
|
|
355
355
|
"mode": "default",
|
|
356
356
|
"group": "typography",
|
|
357
|
-
"scopes": ["
|
|
357
|
+
"scopes": ["FONT_WEIGHT"]
|
|
358
358
|
},
|
|
359
359
|
{
|
|
360
360
|
"name": "text/title/weight/large",
|
|
@@ -365,7 +365,7 @@
|
|
|
365
365
|
"collection": "typography",
|
|
366
366
|
"mode": "default",
|
|
367
367
|
"group": "typography",
|
|
368
|
-
"scopes": ["
|
|
368
|
+
"scopes": ["FONT_WEIGHT"]
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
371
|
"name": "text/display/weight",
|
|
@@ -376,6 +376,6 @@
|
|
|
376
376
|
"collection": "typography",
|
|
377
377
|
"mode": "default",
|
|
378
378
|
"group": "typography",
|
|
379
|
-
"scopes": ["
|
|
379
|
+
"scopes": ["FONT_WEIGHT"]
|
|
380
380
|
}
|
|
381
381
|
]
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"$extensions": {
|
|
6
6
|
"org.primer.figma": {
|
|
7
7
|
"collection": "base/typography",
|
|
8
|
-
"scopes": ["
|
|
8
|
+
"scopes": ["fontWeight"]
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"$extensions": {
|
|
17
17
|
"org.primer.figma": {
|
|
18
18
|
"collection": "base/typography",
|
|
19
|
-
"scopes": ["
|
|
19
|
+
"scopes": ["fontWeight"]
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
},
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"$extensions": {
|
|
31
31
|
"org.primer.figma": {
|
|
32
32
|
"collection": "base/typography",
|
|
33
|
-
"scopes": ["
|
|
33
|
+
"scopes": ["fontWeight"]
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"$extensions": {
|
|
42
42
|
"org.primer.figma": {
|
|
43
43
|
"collection": "base/typography",
|
|
44
|
-
"scopes": ["
|
|
44
|
+
"scopes": ["fontWeight"]
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
},
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"$extensions": {
|
|
56
56
|
"org.primer.figma": {
|
|
57
57
|
"collection": "base/typography",
|
|
58
|
-
"scopes": ["
|
|
58
|
+
"scopes": ["fontWeight"]
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"$extensions": {
|
|
67
67
|
"org.primer.figma": {
|
|
68
68
|
"collection": "base/typography",
|
|
69
|
-
"scopes": ["
|
|
69
|
+
"scopes": ["fontWeight"]
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
},
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"$extensions": {
|
|
81
81
|
"org.primer.figma": {
|
|
82
82
|
"collection": "base/typography",
|
|
83
|
-
"scopes": ["
|
|
83
|
+
"scopes": ["fontWeight"]
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"$extensions": {
|
|
92
92
|
"org.primer.figma": {
|
|
93
93
|
"collection": "base/typography",
|
|
94
|
-
"scopes": ["
|
|
94
|
+
"scopes": ["fontWeight"]
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
},
|