@primer/primitives 7.8.3 → 7.8.4-rc.a135dbf
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/CHANGELOG.md +6 -0
- package/build.js +11 -1
- package/package.json +1 -1
- package/tokens/functional/size/border.json +5 -5
- package/tokens/functional/typography/typography.json +9 -10
- package/tokens-v2-private/css/tokens/base/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/base/typography/typography.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/border.css +4 -4
- package/tokens-v2-private/css/tokens/functional/size/breakpoints.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-coarse.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size-fine.css +1 -1
- package/tokens-v2-private/css/tokens/functional/size/size.css +1 -1
- package/tokens-v2-private/css/tokens/functional/typography/typography.css +11 -11
- package/tokens-v2-private/docs/docValues.json +38 -39
- package/tokens-v2-private/js/module/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/border.js +15 -15
- package/tokens-v2-private/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/module/tokens/functional/typography/typography.js +28 -30
- package/tokens-v2-private/js/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/border.js +5 -5
- package/tokens-v2-private/js/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/js/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/js/tokens/functional/typography/typography.js +20 -20
- package/tokens-v2-private/ts/tokens/base/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/base/typography/typography.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/border.d.ts +5 -5
- package/tokens-v2-private/ts/tokens/functional/size/border.js +5 -5
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/breakpoints.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-coarse.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size-fine.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/size.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/tokens-v2-private/ts/tokens/functional/size/viewport.js +1 -1
- package/tokens-v2-private/ts/tokens/functional/typography/typography.d.ts +1 -2
- package/tokens-v2-private/ts/tokens/functional/typography/typography.js +19 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @primer/primitives
|
|
2
2
|
|
|
3
|
+
## 7.8.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#334](https://github.com/primer/primitives/pull/334) [`ff5fea6`](https://github.com/primer/primitives/commit/ff5fea6dfb229c430fec66277cf24520dd70d7b5) Thanks [@langermank](https://github.com/langermank)! - Typography bug fixes + border thickness naming
|
|
8
|
+
|
|
3
9
|
## 7.8.3
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/build.js
CHANGED
|
@@ -69,6 +69,10 @@ StyleDictionary.registerTransform({
|
|
|
69
69
|
return '0'
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
if (token.name.includes('lineHeight')) {
|
|
73
|
+
return `${floatValue / baseFontSize}`
|
|
74
|
+
}
|
|
75
|
+
|
|
72
76
|
return `${floatValue / baseFontSize}rem`
|
|
73
77
|
}
|
|
74
78
|
return token.value
|
|
@@ -117,7 +121,13 @@ StyleDictionary.registerTransform({
|
|
|
117
121
|
matcher: token => token.type === 'typography',
|
|
118
122
|
transformer: token => {
|
|
119
123
|
const {value} = token
|
|
120
|
-
|
|
124
|
+
|
|
125
|
+
// if lineHeight has value, include in shorthand
|
|
126
|
+
if (value.lineHeight) {
|
|
127
|
+
return `${value.fontWeight} ${value.fontSize}/${value.lineHeight} ${value.fontFamily}`
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return `${value.fontWeight} ${value.fontSize} ${value.fontFamily}`
|
|
121
131
|
}
|
|
122
132
|
})
|
|
123
133
|
|
package/package.json
CHANGED
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
"thin": {
|
|
5
5
|
"value": "inset 0 0 0 {<namespace>.borderWidth.thin}"
|
|
6
6
|
},
|
|
7
|
-
"normal": {
|
|
8
|
-
"value": "inset 0 0 0 {<namespace>.borderWidth.normal}"
|
|
9
|
-
},
|
|
10
7
|
"thick": {
|
|
11
8
|
"value": "inset 0 0 0 {<namespace>.borderWidth.thick}"
|
|
9
|
+
},
|
|
10
|
+
"thicker": {
|
|
11
|
+
"value": "inset 0 0 0 {<namespace>.borderWidth.thicker}"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"borderWidth": {
|
|
15
15
|
"thin": {
|
|
16
16
|
"value": "max(1px, 0.0625rem)"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"thick": {
|
|
19
19
|
"value": "max(2px, 0.125rem)"
|
|
20
20
|
},
|
|
21
|
-
"
|
|
21
|
+
"thicker": {
|
|
22
22
|
"value": "max(4px, 0.25rem)"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"value": "40px"
|
|
21
21
|
},
|
|
22
22
|
"lineHeight": {
|
|
23
|
-
"value": "
|
|
23
|
+
"value": "calc(56/40)"
|
|
24
24
|
},
|
|
25
25
|
"weight": {
|
|
26
26
|
"value": "{base.text.weight.medium}"
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
},
|
|
47
47
|
"lineHeight": {
|
|
48
48
|
"large": {
|
|
49
|
-
"value": "
|
|
49
|
+
"value": "calc(48/32)"
|
|
50
50
|
},
|
|
51
51
|
"medium": {
|
|
52
|
-
"value": "
|
|
52
|
+
"value": "calc(32/20)"
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"weight": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"value": "20px"
|
|
82
82
|
},
|
|
83
83
|
"lineHeight": {
|
|
84
|
-
"value": "
|
|
84
|
+
"value": "calc(32/20)"
|
|
85
85
|
},
|
|
86
86
|
"weight": {
|
|
87
87
|
"value": "{base.text.weight.normal}"
|
|
@@ -110,13 +110,13 @@
|
|
|
110
110
|
},
|
|
111
111
|
"lineHeight": {
|
|
112
112
|
"large": {
|
|
113
|
-
"value": "
|
|
113
|
+
"value": "calc(24/16)"
|
|
114
114
|
},
|
|
115
115
|
"medium": {
|
|
116
|
-
"value": "
|
|
116
|
+
"value": "calc(20/14)"
|
|
117
117
|
},
|
|
118
118
|
"small": {
|
|
119
|
-
"value": "
|
|
119
|
+
"value": "calc(20/12)"
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"weight": {
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"value": "12px"
|
|
158
158
|
},
|
|
159
159
|
"lineHeight": {
|
|
160
|
-
"value": "
|
|
160
|
+
"value": "calc(16/12)"
|
|
161
161
|
},
|
|
162
162
|
"weight": {
|
|
163
163
|
"value": "{base.text.weight.normal}"
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
"value": "13px"
|
|
178
178
|
},
|
|
179
179
|
"lineHeight": {
|
|
180
|
-
"value": "
|
|
180
|
+
"value": "calc(20/13)"
|
|
181
181
|
},
|
|
182
182
|
"weight": {
|
|
183
183
|
"value": "{base.text.weight.normal}"
|
|
@@ -203,7 +203,6 @@
|
|
|
203
203
|
"value": {
|
|
204
204
|
"fontWeight": "{<namespace>.text.codeInline.weight}",
|
|
205
205
|
"fontSize": "{<namespace>.text.codeInline.size}",
|
|
206
|
-
"lineHeight": "inherit",
|
|
207
206
|
"fontFamily": "{<namespace>.fontStack.monospace}"
|
|
208
207
|
},
|
|
209
208
|
"type": "typography"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 29 Jun 2022 23:28:27 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
--primer-borderRadius-large: 0.75rem;
|
|
9
9
|
--primer-borderRadius-medium: 0.375rem;
|
|
10
10
|
--primer-borderRadius-small: 0.1875rem;
|
|
11
|
-
--primer-borderWidth-
|
|
12
|
-
--primer-borderWidth-
|
|
11
|
+
--primer-borderWidth-thicker: max(4px, 0.25rem);
|
|
12
|
+
--primer-borderWidth-thick: max(2px, 0.125rem);
|
|
13
13
|
--primer-borderWidth-thin: max(1px, 0.0625rem);
|
|
14
|
+
--primer-borderInset-thicker: inset 0 0 0 var(--primer-borderWidth-thicker);
|
|
14
15
|
--primer-borderInset-thick: inset 0 0 0 var(--primer-borderWidth-thick);
|
|
15
|
-
--primer-borderInset-normal: inset 0 0 0 var(--primer-borderWidth-normal);
|
|
16
16
|
--primer-borderInset-thin: inset 0 0 0 var(--primer-borderWidth-thin);
|
|
17
17
|
}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 29 Jun 2022 23:28:27 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
:root {
|
|
7
7
|
--primer-text-codeInline-size: 0.9285em;
|
|
8
|
-
--primer-text-codeBlock-lineHeight:
|
|
8
|
+
--primer-text-codeBlock-lineHeight: calc(20/13);
|
|
9
9
|
--primer-text-codeBlock-size: 0.8125rem;
|
|
10
|
-
--primer-text-caption-lineHeight:
|
|
10
|
+
--primer-text-caption-lineHeight: calc(16/12);
|
|
11
11
|
--primer-text-caption-size: 0.75rem;
|
|
12
|
-
--primer-text-body-lineHeight-small:
|
|
13
|
-
--primer-text-body-lineHeight-medium:
|
|
14
|
-
--primer-text-body-lineHeight-large:
|
|
12
|
+
--primer-text-body-lineHeight-small: calc(20/12);
|
|
13
|
+
--primer-text-body-lineHeight-medium: calc(20/14);
|
|
14
|
+
--primer-text-body-lineHeight-large: calc(24/16);
|
|
15
15
|
--primer-text-body-size-small: 0.75rem;
|
|
16
16
|
--primer-text-body-size-medium: 0.875rem;
|
|
17
17
|
--primer-text-body-size-large: 1rem;
|
|
18
|
-
--primer-text-subtitle-lineHeight:
|
|
18
|
+
--primer-text-subtitle-lineHeight: calc(32/20);
|
|
19
19
|
--primer-text-subtitle-size: 1.25rem;
|
|
20
|
-
--primer-text-title-lineHeight-medium:
|
|
21
|
-
--primer-text-title-lineHeight-large:
|
|
20
|
+
--primer-text-title-lineHeight-medium: calc(32/20);
|
|
21
|
+
--primer-text-title-lineHeight-large: calc(48/32);
|
|
22
22
|
--primer-text-title-size-medium: 1.25rem;
|
|
23
23
|
--primer-text-title-size-large: 2rem;
|
|
24
|
-
--primer-text-display-lineHeight:
|
|
24
|
+
--primer-text-display-lineHeight: calc(56/40);
|
|
25
25
|
--primer-text-display-size: 2.5rem;
|
|
26
26
|
--primer-text-display-lineBoxHeight: 3.5rem;
|
|
27
27
|
--primer-fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
--primer-text-subtitle-weight: var(--base-text-weight-normal);
|
|
35
35
|
--primer-text-title-weight: var(--base-text-weight-semibold);
|
|
36
36
|
--primer-text-display-weight: var(--base-text-weight-medium);
|
|
37
|
-
--primer-text-codeInline-shorthand: var(--primer-text-codeInline-weight) var(--primer-text-codeInline-size)
|
|
37
|
+
--primer-text-codeInline-shorthand: var(--primer-text-codeInline-weight) var(--primer-text-codeInline-size) var(--primer-fontStack-monospace);
|
|
38
38
|
--primer-text-codeBlock-shorthand: var(--primer-text-codeBlock-weight) var(--primer-text-codeBlock-size)/var(--primer-text-codeBlock-lineHeight) var(--primer-fontStack-monospace);
|
|
39
39
|
--primer-text-caption-shorthand: var(--primer-text-caption-weight) var(--primer-text-caption-size)/var(--primer-text-caption-lineHeight) var(--primer-fontStack-sansSerif);
|
|
40
40
|
--primer-text-body-shorthand-small: var(--primer-text-body-weight) var(--primer-text-body-size-small)/var(--primer-text-body-lineHeight-small) var(--primer-fontStack-sansSerif);
|
|
@@ -343,14 +343,14 @@
|
|
|
343
343
|
"filePath": "tokens/functional/size/border.json",
|
|
344
344
|
"isSource": true,
|
|
345
345
|
"original": {
|
|
346
|
-
"value": "inset 0 0 0 {primer.borderWidth.
|
|
346
|
+
"value": "inset 0 0 0 {primer.borderWidth.thick}"
|
|
347
347
|
},
|
|
348
|
-
"name": "primer-borderInset-
|
|
348
|
+
"name": "primer-borderInset-thick",
|
|
349
349
|
"attributes": {},
|
|
350
350
|
"path": [
|
|
351
351
|
"primer",
|
|
352
352
|
"borderInset",
|
|
353
|
-
"
|
|
353
|
+
"thick"
|
|
354
354
|
]
|
|
355
355
|
},
|
|
356
356
|
{
|
|
@@ -358,14 +358,14 @@
|
|
|
358
358
|
"filePath": "tokens/functional/size/border.json",
|
|
359
359
|
"isSource": true,
|
|
360
360
|
"original": {
|
|
361
|
-
"value": "inset 0 0 0 {primer.borderWidth.
|
|
361
|
+
"value": "inset 0 0 0 {primer.borderWidth.thicker}"
|
|
362
362
|
},
|
|
363
|
-
"name": "primer-borderInset-
|
|
363
|
+
"name": "primer-borderInset-thicker",
|
|
364
364
|
"attributes": {},
|
|
365
365
|
"path": [
|
|
366
366
|
"primer",
|
|
367
367
|
"borderInset",
|
|
368
|
-
"
|
|
368
|
+
"thicker"
|
|
369
369
|
]
|
|
370
370
|
},
|
|
371
371
|
{
|
|
@@ -390,12 +390,12 @@
|
|
|
390
390
|
"original": {
|
|
391
391
|
"value": "max(2px, 0.125rem)"
|
|
392
392
|
},
|
|
393
|
-
"name": "primer-borderWidth-
|
|
393
|
+
"name": "primer-borderWidth-thick",
|
|
394
394
|
"attributes": {},
|
|
395
395
|
"path": [
|
|
396
396
|
"primer",
|
|
397
397
|
"borderWidth",
|
|
398
|
-
"
|
|
398
|
+
"thick"
|
|
399
399
|
]
|
|
400
400
|
},
|
|
401
401
|
{
|
|
@@ -405,12 +405,12 @@
|
|
|
405
405
|
"original": {
|
|
406
406
|
"value": "max(4px, 0.25rem)"
|
|
407
407
|
},
|
|
408
|
-
"name": "primer-borderWidth-
|
|
408
|
+
"name": "primer-borderWidth-thicker",
|
|
409
409
|
"attributes": {},
|
|
410
410
|
"path": [
|
|
411
411
|
"primer",
|
|
412
412
|
"borderWidth",
|
|
413
|
-
"
|
|
413
|
+
"thicker"
|
|
414
414
|
]
|
|
415
415
|
},
|
|
416
416
|
{
|
|
@@ -1562,11 +1562,11 @@
|
|
|
1562
1562
|
]
|
|
1563
1563
|
},
|
|
1564
1564
|
{
|
|
1565
|
-
"value": "
|
|
1565
|
+
"value": "calc(56/40)",
|
|
1566
1566
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1567
1567
|
"isSource": true,
|
|
1568
1568
|
"original": {
|
|
1569
|
-
"value": "
|
|
1569
|
+
"value": "calc(56/40)"
|
|
1570
1570
|
},
|
|
1571
1571
|
"name": "primer-text-display-lineHeight",
|
|
1572
1572
|
"attributes": {},
|
|
@@ -1594,7 +1594,7 @@
|
|
|
1594
1594
|
]
|
|
1595
1595
|
},
|
|
1596
1596
|
{
|
|
1597
|
-
"value": "500 2.5rem/
|
|
1597
|
+
"value": "500 2.5rem/calc(56/40) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
1598
1598
|
"type": "typography",
|
|
1599
1599
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1600
1600
|
"isSource": true,
|
|
@@ -1651,11 +1651,11 @@
|
|
|
1651
1651
|
]
|
|
1652
1652
|
},
|
|
1653
1653
|
{
|
|
1654
|
-
"value": "
|
|
1654
|
+
"value": "calc(48/32)",
|
|
1655
1655
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1656
1656
|
"isSource": true,
|
|
1657
1657
|
"original": {
|
|
1658
|
-
"value": "
|
|
1658
|
+
"value": "calc(48/32)"
|
|
1659
1659
|
},
|
|
1660
1660
|
"name": "primer-text-title-lineHeight-large",
|
|
1661
1661
|
"attributes": {},
|
|
@@ -1668,11 +1668,11 @@
|
|
|
1668
1668
|
]
|
|
1669
1669
|
},
|
|
1670
1670
|
{
|
|
1671
|
-
"value": "
|
|
1671
|
+
"value": "calc(32/20)",
|
|
1672
1672
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1673
1673
|
"isSource": true,
|
|
1674
1674
|
"original": {
|
|
1675
|
-
"value": "
|
|
1675
|
+
"value": "calc(32/20)"
|
|
1676
1676
|
},
|
|
1677
1677
|
"name": "primer-text-title-lineHeight-medium",
|
|
1678
1678
|
"attributes": {},
|
|
@@ -1701,7 +1701,7 @@
|
|
|
1701
1701
|
]
|
|
1702
1702
|
},
|
|
1703
1703
|
{
|
|
1704
|
-
"value": "600 2rem/
|
|
1704
|
+
"value": "600 2rem/calc(48/32) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
1705
1705
|
"type": "typography",
|
|
1706
1706
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1707
1707
|
"isSource": true,
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
]
|
|
1726
1726
|
},
|
|
1727
1727
|
{
|
|
1728
|
-
"value": "600 1.25rem/
|
|
1728
|
+
"value": "600 1.25rem/calc(32/20) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
1729
1729
|
"type": "typography",
|
|
1730
1730
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1731
1731
|
"isSource": true,
|
|
@@ -1765,11 +1765,11 @@
|
|
|
1765
1765
|
]
|
|
1766
1766
|
},
|
|
1767
1767
|
{
|
|
1768
|
-
"value": "
|
|
1768
|
+
"value": "calc(32/20)",
|
|
1769
1769
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1770
1770
|
"isSource": true,
|
|
1771
1771
|
"original": {
|
|
1772
|
-
"value": "
|
|
1772
|
+
"value": "calc(32/20)"
|
|
1773
1773
|
},
|
|
1774
1774
|
"name": "primer-text-subtitle-lineHeight",
|
|
1775
1775
|
"attributes": {},
|
|
@@ -1797,7 +1797,7 @@
|
|
|
1797
1797
|
]
|
|
1798
1798
|
},
|
|
1799
1799
|
{
|
|
1800
|
-
"value": "400 1.25rem/
|
|
1800
|
+
"value": "400 1.25rem/calc(32/20) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
1801
1801
|
"type": "typography",
|
|
1802
1802
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1803
1803
|
"isSource": true,
|
|
@@ -1871,11 +1871,11 @@
|
|
|
1871
1871
|
]
|
|
1872
1872
|
},
|
|
1873
1873
|
{
|
|
1874
|
-
"value": "
|
|
1874
|
+
"value": "calc(24/16)",
|
|
1875
1875
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1876
1876
|
"isSource": true,
|
|
1877
1877
|
"original": {
|
|
1878
|
-
"value": "
|
|
1878
|
+
"value": "calc(24/16)"
|
|
1879
1879
|
},
|
|
1880
1880
|
"name": "primer-text-body-lineHeight-large",
|
|
1881
1881
|
"attributes": {},
|
|
@@ -1888,11 +1888,11 @@
|
|
|
1888
1888
|
]
|
|
1889
1889
|
},
|
|
1890
1890
|
{
|
|
1891
|
-
"value": "
|
|
1891
|
+
"value": "calc(20/14)",
|
|
1892
1892
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1893
1893
|
"isSource": true,
|
|
1894
1894
|
"original": {
|
|
1895
|
-
"value": "
|
|
1895
|
+
"value": "calc(20/14)"
|
|
1896
1896
|
},
|
|
1897
1897
|
"name": "primer-text-body-lineHeight-medium",
|
|
1898
1898
|
"attributes": {},
|
|
@@ -1905,11 +1905,11 @@
|
|
|
1905
1905
|
]
|
|
1906
1906
|
},
|
|
1907
1907
|
{
|
|
1908
|
-
"value": "
|
|
1908
|
+
"value": "calc(20/12)",
|
|
1909
1909
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1910
1910
|
"isSource": true,
|
|
1911
1911
|
"original": {
|
|
1912
|
-
"value": "
|
|
1912
|
+
"value": "calc(20/12)"
|
|
1913
1913
|
},
|
|
1914
1914
|
"name": "primer-text-body-lineHeight-small",
|
|
1915
1915
|
"attributes": {},
|
|
@@ -1938,7 +1938,7 @@
|
|
|
1938
1938
|
]
|
|
1939
1939
|
},
|
|
1940
1940
|
{
|
|
1941
|
-
"value": "400 1rem/
|
|
1941
|
+
"value": "400 1rem/calc(24/16) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
1942
1942
|
"type": "typography",
|
|
1943
1943
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1944
1944
|
"isSource": true,
|
|
@@ -1962,7 +1962,7 @@
|
|
|
1962
1962
|
]
|
|
1963
1963
|
},
|
|
1964
1964
|
{
|
|
1965
|
-
"value": "400 0.875rem/
|
|
1965
|
+
"value": "400 0.875rem/calc(20/14) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
1966
1966
|
"type": "typography",
|
|
1967
1967
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1968
1968
|
"isSource": true,
|
|
@@ -1986,7 +1986,7 @@
|
|
|
1986
1986
|
]
|
|
1987
1987
|
},
|
|
1988
1988
|
{
|
|
1989
|
-
"value": "400 0.75rem/
|
|
1989
|
+
"value": "400 0.75rem/calc(20/12) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
1990
1990
|
"type": "typography",
|
|
1991
1991
|
"filePath": "tokens/functional/typography/typography.json",
|
|
1992
1992
|
"isSource": true,
|
|
@@ -2026,11 +2026,11 @@
|
|
|
2026
2026
|
]
|
|
2027
2027
|
},
|
|
2028
2028
|
{
|
|
2029
|
-
"value": "
|
|
2029
|
+
"value": "calc(16/12)",
|
|
2030
2030
|
"filePath": "tokens/functional/typography/typography.json",
|
|
2031
2031
|
"isSource": true,
|
|
2032
2032
|
"original": {
|
|
2033
|
-
"value": "
|
|
2033
|
+
"value": "calc(16/12)"
|
|
2034
2034
|
},
|
|
2035
2035
|
"name": "primer-text-caption-lineHeight",
|
|
2036
2036
|
"attributes": {},
|
|
@@ -2058,7 +2058,7 @@
|
|
|
2058
2058
|
]
|
|
2059
2059
|
},
|
|
2060
2060
|
{
|
|
2061
|
-
"value": "400 0.75rem/
|
|
2061
|
+
"value": "400 0.75rem/calc(16/12) -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",
|
|
2062
2062
|
"type": "typography",
|
|
2063
2063
|
"filePath": "tokens/functional/typography/typography.json",
|
|
2064
2064
|
"isSource": true,
|
|
@@ -2097,11 +2097,11 @@
|
|
|
2097
2097
|
]
|
|
2098
2098
|
},
|
|
2099
2099
|
{
|
|
2100
|
-
"value": "
|
|
2100
|
+
"value": "calc(20/13)",
|
|
2101
2101
|
"filePath": "tokens/functional/typography/typography.json",
|
|
2102
2102
|
"isSource": true,
|
|
2103
2103
|
"original": {
|
|
2104
|
-
"value": "
|
|
2104
|
+
"value": "calc(20/13)"
|
|
2105
2105
|
},
|
|
2106
2106
|
"name": "primer-text-codeBlock-lineHeight",
|
|
2107
2107
|
"attributes": {},
|
|
@@ -2129,7 +2129,7 @@
|
|
|
2129
2129
|
]
|
|
2130
2130
|
},
|
|
2131
2131
|
{
|
|
2132
|
-
"value": "400 0.8125rem/
|
|
2132
|
+
"value": "400 0.8125rem/calc(20/13) ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
2133
2133
|
"type": "typography",
|
|
2134
2134
|
"filePath": "tokens/functional/typography/typography.json",
|
|
2135
2135
|
"isSource": true,
|
|
@@ -2184,7 +2184,7 @@
|
|
|
2184
2184
|
]
|
|
2185
2185
|
},
|
|
2186
2186
|
{
|
|
2187
|
-
"value": "400 0.9285em
|
|
2187
|
+
"value": "400 0.9285em ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace",
|
|
2188
2188
|
"type": "typography",
|
|
2189
2189
|
"filePath": "tokens/functional/typography/typography.json",
|
|
2190
2190
|
"isSource": true,
|
|
@@ -2192,7 +2192,6 @@
|
|
|
2192
2192
|
"value": {
|
|
2193
2193
|
"fontWeight": "{primer.text.codeInline.weight}",
|
|
2194
2194
|
"fontSize": "{primer.text.codeInline.size}",
|
|
2195
|
-
"lineHeight": "inherit",
|
|
2196
2195
|
"fontFamily": "{primer.fontStack.monospace}"
|
|
2197
2196
|
},
|
|
2198
2197
|
"type": "typography"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Wed, 29 Jun 2022 23:28:27 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
@@ -21,34 +21,34 @@ module.exports = {
|
|
|
21
21
|
"thin"
|
|
22
22
|
]
|
|
23
23
|
},
|
|
24
|
-
"
|
|
24
|
+
"thick": {
|
|
25
25
|
"value": "inset 0 0 0 max(2px, 0.125rem)",
|
|
26
26
|
"filePath": "tokens/functional/size/border.json",
|
|
27
27
|
"isSource": true,
|
|
28
28
|
"original": {
|
|
29
|
-
"value": "inset 0 0 0 {primer.borderWidth.
|
|
29
|
+
"value": "inset 0 0 0 {primer.borderWidth.thick}"
|
|
30
30
|
},
|
|
31
|
-
"name": "
|
|
31
|
+
"name": "thick",
|
|
32
32
|
"attributes": {},
|
|
33
33
|
"path": [
|
|
34
34
|
"primer",
|
|
35
35
|
"borderInset",
|
|
36
|
-
"
|
|
36
|
+
"thick"
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
|
-
"
|
|
39
|
+
"thicker": {
|
|
40
40
|
"value": "inset 0 0 0 max(4px, 0.25rem)",
|
|
41
41
|
"filePath": "tokens/functional/size/border.json",
|
|
42
42
|
"isSource": true,
|
|
43
43
|
"original": {
|
|
44
|
-
"value": "inset 0 0 0 {primer.borderWidth.
|
|
44
|
+
"value": "inset 0 0 0 {primer.borderWidth.thicker}"
|
|
45
45
|
},
|
|
46
|
-
"name": "
|
|
46
|
+
"name": "thicker",
|
|
47
47
|
"attributes": {},
|
|
48
48
|
"path": [
|
|
49
49
|
"primer",
|
|
50
50
|
"borderInset",
|
|
51
|
-
"
|
|
51
|
+
"thicker"
|
|
52
52
|
]
|
|
53
53
|
}
|
|
54
54
|
},
|
|
@@ -68,34 +68,34 @@ module.exports = {
|
|
|
68
68
|
"thin"
|
|
69
69
|
]
|
|
70
70
|
},
|
|
71
|
-
"
|
|
71
|
+
"thick": {
|
|
72
72
|
"value": "max(2px, 0.125rem)",
|
|
73
73
|
"filePath": "tokens/functional/size/border.json",
|
|
74
74
|
"isSource": true,
|
|
75
75
|
"original": {
|
|
76
76
|
"value": "max(2px, 0.125rem)"
|
|
77
77
|
},
|
|
78
|
-
"name": "
|
|
78
|
+
"name": "thick",
|
|
79
79
|
"attributes": {},
|
|
80
80
|
"path": [
|
|
81
81
|
"primer",
|
|
82
82
|
"borderWidth",
|
|
83
|
-
"
|
|
83
|
+
"thick"
|
|
84
84
|
]
|
|
85
85
|
},
|
|
86
|
-
"
|
|
86
|
+
"thicker": {
|
|
87
87
|
"value": "max(4px, 0.25rem)",
|
|
88
88
|
"filePath": "tokens/functional/size/border.json",
|
|
89
89
|
"isSource": true,
|
|
90
90
|
"original": {
|
|
91
91
|
"value": "max(4px, 0.25rem)"
|
|
92
92
|
},
|
|
93
|
-
"name": "
|
|
93
|
+
"name": "thicker",
|
|
94
94
|
"attributes": {},
|
|
95
95
|
"path": [
|
|
96
96
|
"primer",
|
|
97
97
|
"borderWidth",
|
|
98
|
-
"
|
|
98
|
+
"thicker"
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
},
|