@primer/primitives 7.17.0-rc.d6bee7f7 → 7.17.0-rc.d7413369
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/README.md +1 -1
- package/dist/css/functional/typography/typography.css +1 -1
- package/dist/docs/base/typography/typography.json +4 -52
- package/dist/docs/functional/typography/typography.json +33 -455
- package/dist/fallbacks/functional/typography/typography.json +1 -1
- package/dist/figma/figma.json +0 -8
- package/dist/figma/typography/typography.json +0 -338
- package/dist/styleLint/base/typography/typography.json +4 -52
- package/dist/styleLint/functional/typography/typography.json +33 -455
- package/package.json +2 -2
- package/src/PrimerStyleDictionary.ts +0 -6
- package/src/platforms/figma.ts +0 -1
- package/src/schemas/numberToken.ts +0 -17
- package/src/tokens/base/typography/typography.json +4 -28
- package/src/tokens/functional/typography/typography.json +31 -242
- package/src/transformers/index.ts +0 -1
- package/src/transformers/floatToPixel.ts +0 -33
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Primer Primitives
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/@primer/primitives)
|
|
3
|
+
[](https://www.npmjs.com/package/@primer/primitives)
|
|
4
4
|
|
|
5
5
|
This repo contains values for color, spacing, and typography primitives for use with [Primer][primer], GitHub's design system.
|
|
6
6
|
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--text-title-size-large: 2rem;
|
|
21
21
|
--text-display-lineHeight: 1.4;
|
|
22
22
|
--text-display-size: 2.5rem;
|
|
23
|
-
--text-display-lineBoxHeight:
|
|
23
|
+
--text-display-lineBoxHeight: 3.5rem;
|
|
24
24
|
--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
|
|
25
25
|
--fontStack-sansSerif: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
26
26
|
--fontStack-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
|
|
@@ -2,23 +2,11 @@
|
|
|
2
2
|
"base-text-weight-light": {
|
|
3
3
|
"$type": "fontWeight",
|
|
4
4
|
"value": 300,
|
|
5
|
-
"$extensions": {
|
|
6
|
-
"org.primer.figma": {
|
|
7
|
-
"collection": "base/typography",
|
|
8
|
-
"scopes": ["all"]
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
5
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
12
6
|
"isSource": true,
|
|
13
7
|
"original": {
|
|
14
8
|
"$type": "fontWeight",
|
|
15
|
-
"value": 300
|
|
16
|
-
"$extensions": {
|
|
17
|
-
"org.primer.figma": {
|
|
18
|
-
"collection": "base/typography",
|
|
19
|
-
"scopes": ["all"]
|
|
20
|
-
}
|
|
21
|
-
}
|
|
9
|
+
"value": 300
|
|
22
10
|
},
|
|
23
11
|
"name": "base-text-weight-light",
|
|
24
12
|
"attributes": {},
|
|
@@ -27,23 +15,11 @@
|
|
|
27
15
|
"base-text-weight-normal": {
|
|
28
16
|
"value": 400,
|
|
29
17
|
"$type": "fontWeight",
|
|
30
|
-
"$extensions": {
|
|
31
|
-
"org.primer.figma": {
|
|
32
|
-
"collection": "base/typography",
|
|
33
|
-
"scopes": ["all"]
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
18
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
37
19
|
"isSource": true,
|
|
38
20
|
"original": {
|
|
39
21
|
"value": 400,
|
|
40
|
-
"$type": "fontWeight"
|
|
41
|
-
"$extensions": {
|
|
42
|
-
"org.primer.figma": {
|
|
43
|
-
"collection": "base/typography",
|
|
44
|
-
"scopes": ["all"]
|
|
45
|
-
}
|
|
46
|
-
}
|
|
22
|
+
"$type": "fontWeight"
|
|
47
23
|
},
|
|
48
24
|
"name": "base-text-weight-normal",
|
|
49
25
|
"attributes": {},
|
|
@@ -52,23 +28,11 @@
|
|
|
52
28
|
"base-text-weight-medium": {
|
|
53
29
|
"value": 500,
|
|
54
30
|
"$type": "fontWeight",
|
|
55
|
-
"$extensions": {
|
|
56
|
-
"org.primer.figma": {
|
|
57
|
-
"collection": "base/typography",
|
|
58
|
-
"scopes": ["all"]
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
31
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
62
32
|
"isSource": true,
|
|
63
33
|
"original": {
|
|
64
34
|
"value": 500,
|
|
65
|
-
"$type": "fontWeight"
|
|
66
|
-
"$extensions": {
|
|
67
|
-
"org.primer.figma": {
|
|
68
|
-
"collection": "base/typography",
|
|
69
|
-
"scopes": ["all"]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
35
|
+
"$type": "fontWeight"
|
|
72
36
|
},
|
|
73
37
|
"name": "base-text-weight-medium",
|
|
74
38
|
"attributes": {},
|
|
@@ -77,23 +41,11 @@
|
|
|
77
41
|
"base-text-weight-semibold": {
|
|
78
42
|
"value": 600,
|
|
79
43
|
"$type": "fontWeight",
|
|
80
|
-
"$extensions": {
|
|
81
|
-
"org.primer.figma": {
|
|
82
|
-
"collection": "base/typography",
|
|
83
|
-
"scopes": ["all"]
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
44
|
"filePath": "src/tokens/base/typography/typography.json",
|
|
87
45
|
"isSource": true,
|
|
88
46
|
"original": {
|
|
89
47
|
"value": 600,
|
|
90
|
-
"$type": "fontWeight"
|
|
91
|
-
"$extensions": {
|
|
92
|
-
"org.primer.figma": {
|
|
93
|
-
"collection": "base/typography",
|
|
94
|
-
"scopes": ["all"]
|
|
95
|
-
}
|
|
96
|
-
}
|
|
48
|
+
"$type": "fontWeight"
|
|
97
49
|
},
|
|
98
50
|
"name": "base-text-weight-semibold",
|
|
99
51
|
"attributes": {},
|