@primer/react-brand 0.3.0-rc.9ff153e → 0.3.0
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/lib/Accordion/Accordion.d.ts +29 -0
- package/lib/Accordion/index.d.ts +1 -0
- package/lib/FAQ/FAQ.d.ts +37 -0
- package/lib/FAQ/index.d.ts +1 -0
- package/lib/InlineLink/InlineLink.d.ts +24 -0
- package/lib/InlineLink/index.d.ts +1 -0
- package/lib/css/main.css +355 -15
- package/lib/css/stylesheets.d.ts +1 -0
- package/lib/design-tokens/css/tokens/base/colors/color-scales-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/base/colors/color-scales.css +1 -1
- package/lib/design-tokens/css/tokens/base/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/base/typography/typography.css +1 -1
- package/lib/design-tokens/css/tokens/functional/colors/global-with-modes.css +16 -1
- package/lib/design-tokens/css/tokens/functional/colors/global.css +6 -1
- package/lib/design-tokens/css/tokens/functional/components/accordion/colors-with-modes.css +19 -0
- package/lib/design-tokens/css/tokens/functional/components/button/colors-with-modes.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/faq/base.css +9 -0
- package/lib/design-tokens/css/tokens/functional/components/faq/colors-with-modes.css +16 -0
- package/lib/design-tokens/css/tokens/functional/components/faq/colors.css +8 -0
- package/lib/design-tokens/css/tokens/functional/components/hero/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors-with-modes.css +19 -0
- package/lib/design-tokens/css/tokens/functional/components/inline-link/colors.css +9 -0
- package/lib/design-tokens/css/tokens/functional/components/river/base.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/border.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/breakpoints.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-coarse.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size-fine.css +1 -1
- package/lib/design-tokens/css/tokens/functional/size/size.css +1 -1
- package/lib/design-tokens/css/tokens/functional/typography/typography-responsive.css +19 -7
- package/lib/design-tokens/css/tokens/functional/typography/typography.css +1 -1
- package/lib/design-tokens/js/module/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/colors/global.js +92 -1
- package/lib/design-tokens/js/module/tokens/functional/components/faq/base.js +47 -0
- package/lib/design-tokens/js/module/tokens/functional/components/faq/colors.js +31 -0
- package/lib/design-tokens/js/module/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/components/inline-link/colors.js +49 -0
- package/lib/design-tokens/js/module/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/module/tokens/functional/typography/typography-responsive.js +173 -0
- package/lib/design-tokens/js/module/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/js/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/js/tokens/functional/colors/global.js +7 -2
- package/lib/design-tokens/js/tokens/functional/components/faq/base.js +7 -0
- package/lib/design-tokens/js/tokens/functional/components/faq/colors.js +6 -0
- package/lib/design-tokens/js/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/components/inline-link/colors.js +7 -0
- package/lib/design-tokens/js/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/js/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/js/tokens/functional/typography/typography-responsive.js +9 -0
- package/lib/design-tokens/js/tokens/functional/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/colors/color-scales.js +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/base/typography/typography.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/colors/global.d.ts +9 -2
- package/lib/design-tokens/ts/tokens/functional/colors/global.js +9 -2
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.d.ts +18 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/base.js +17 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.d.ts +15 -0
- package/lib/design-tokens/ts/tokens/functional/components/faq/colors.js +14 -0
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/hero/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.d.ts +16 -0
- package/lib/design-tokens/ts/tokens/functional/components/inline-link/colors.js +15 -0
- package/lib/design-tokens/ts/tokens/functional/components/river/base.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/components/river/base.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/border.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/breakpoints.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-coarse.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size-fine.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/size.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/size/viewport.js +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.d.ts +18 -0
- package/lib/design-tokens/ts/tokens/functional/typography/typography-responsive.js +17 -0
- package/lib/design-tokens/ts/tokens/functional/typography/typography.d.ts +1 -1
- package/lib/design-tokens/ts/tokens/functional/typography/typography.js +1 -1
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/lib/index.js.LICENSE.txt +9 -0
- package/package.json +2 -2
- package/CHANGELOG.md +0 -168
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
"brand": {
|
|
8
|
+
"heading": {
|
|
9
|
+
"lineHeight": {
|
|
10
|
+
"400": {
|
|
11
|
+
"value": "1.25rem",
|
|
12
|
+
"responsive": {
|
|
13
|
+
"768px": {
|
|
14
|
+
"value": "24px",
|
|
15
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
16
|
+
"isSource": true
|
|
17
|
+
},
|
|
18
|
+
"1012px": {
|
|
19
|
+
"value": "24px",
|
|
20
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
21
|
+
"isSource": true
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
25
|
+
"isSource": true,
|
|
26
|
+
"original": {
|
|
27
|
+
"value": "20px",
|
|
28
|
+
"responsive": {
|
|
29
|
+
"768px": {
|
|
30
|
+
"value": "24px",
|
|
31
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
32
|
+
"isSource": true
|
|
33
|
+
},
|
|
34
|
+
"1012px": {
|
|
35
|
+
"value": "24px",
|
|
36
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
37
|
+
"isSource": true
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"name": "400",
|
|
42
|
+
"attributes": {},
|
|
43
|
+
"path": [
|
|
44
|
+
"brand",
|
|
45
|
+
"heading",
|
|
46
|
+
"lineHeight",
|
|
47
|
+
"400"
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
"500": {
|
|
51
|
+
"value": "1.5rem",
|
|
52
|
+
"responsive": {
|
|
53
|
+
"768px": {
|
|
54
|
+
"value": "28px",
|
|
55
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
56
|
+
"isSource": true
|
|
57
|
+
},
|
|
58
|
+
"1012px": {
|
|
59
|
+
"value": "28px",
|
|
60
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
61
|
+
"isSource": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
65
|
+
"isSource": true,
|
|
66
|
+
"original": {
|
|
67
|
+
"value": "24px",
|
|
68
|
+
"responsive": {
|
|
69
|
+
"768px": {
|
|
70
|
+
"value": "28px",
|
|
71
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
72
|
+
"isSource": true
|
|
73
|
+
},
|
|
74
|
+
"1012px": {
|
|
75
|
+
"value": "28px",
|
|
76
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
77
|
+
"isSource": true
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"name": "500",
|
|
82
|
+
"attributes": {},
|
|
83
|
+
"path": [
|
|
84
|
+
"brand",
|
|
85
|
+
"heading",
|
|
86
|
+
"lineHeight",
|
|
87
|
+
"500"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"600": {
|
|
91
|
+
"value": "1.75rem",
|
|
92
|
+
"responsive": {
|
|
93
|
+
"768px": {
|
|
94
|
+
"value": "32px",
|
|
95
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
96
|
+
"isSource": true
|
|
97
|
+
},
|
|
98
|
+
"1012px": {
|
|
99
|
+
"value": "36px",
|
|
100
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
101
|
+
"isSource": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
105
|
+
"isSource": true,
|
|
106
|
+
"original": {
|
|
107
|
+
"value": "28px",
|
|
108
|
+
"responsive": {
|
|
109
|
+
"768px": {
|
|
110
|
+
"value": "32px",
|
|
111
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
112
|
+
"isSource": true
|
|
113
|
+
},
|
|
114
|
+
"1012px": {
|
|
115
|
+
"value": "36px",
|
|
116
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
117
|
+
"isSource": true
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"name": "600",
|
|
122
|
+
"attributes": {},
|
|
123
|
+
"path": [
|
|
124
|
+
"brand",
|
|
125
|
+
"heading",
|
|
126
|
+
"lineHeight",
|
|
127
|
+
"600"
|
|
128
|
+
]
|
|
129
|
+
},
|
|
130
|
+
"700": {
|
|
131
|
+
"value": "2rem",
|
|
132
|
+
"responsive": {
|
|
133
|
+
"768px": {
|
|
134
|
+
"value": "44px",
|
|
135
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
136
|
+
"isSource": true
|
|
137
|
+
},
|
|
138
|
+
"1012px": {
|
|
139
|
+
"value": "52px",
|
|
140
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
141
|
+
"isSource": true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
145
|
+
"isSource": true,
|
|
146
|
+
"original": {
|
|
147
|
+
"value": "32px",
|
|
148
|
+
"responsive": {
|
|
149
|
+
"768px": {
|
|
150
|
+
"value": "44px",
|
|
151
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
152
|
+
"isSource": true
|
|
153
|
+
},
|
|
154
|
+
"1012px": {
|
|
155
|
+
"value": "52px",
|
|
156
|
+
"filePath": "tokens/functional/typography/typography-responsive.json",
|
|
157
|
+
"isSource": true
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"name": "700",
|
|
162
|
+
"attributes": {},
|
|
163
|
+
"path": [
|
|
164
|
+
"brand",
|
|
165
|
+
"heading",
|
|
166
|
+
"lineHeight",
|
|
167
|
+
"700"
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
+
export const BrandColorAccentFg = "var(--base-color-scale-pink-5)";
|
|
7
|
+
export const BrandColorAccentEmphasis = "var(--base-color-scale-pink-5)";
|
|
8
|
+
export const BrandColorAccentMuted = "hsl(var(--base-color-scale-pink-3-hsl) / 60%)";
|
|
9
|
+
export const BrandColorAccentSubtle = "var(--base-color-scale-pink-0)";
|
|
6
10
|
export const BrandColorTextDefault = "var(--base-color-scale-gray-9)";
|
|
7
11
|
export const BrandColorTextMuted = "var(--base-color-scale-gray-6)";
|
|
8
12
|
export const BrandColorTextSubtle = "var(--base-color-scale-gray-5)";
|
|
@@ -17,4 +21,5 @@ export const BrandColorCanvasInset = "var(--base-color-scale-gray-0)";
|
|
|
17
21
|
export const BrandColorCanvasSubtle = "var(--base-color-scale-gray-0)";
|
|
18
22
|
export const BrandColorBorderDefault = "var(--base-color-scale-gray-2)";
|
|
19
23
|
export const BrandColorBorderMuted = "hsl(var(--base-color-scale-gray-2-hsl) / 99.7%)";
|
|
20
|
-
export const BrandColorBorderSubtle = "hsl(var(--base-color-scale-black-0-hsl) / 99.85%)";
|
|
24
|
+
export const BrandColorBorderSubtle = "hsl(var(--base-color-scale-black-0-hsl) / 99.85%)";
|
|
25
|
+
export const BrandColorFocus = "var(--base-color-scale-blue-5)";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const BrandHeadingLineHeight400 = "1.25rem";
|
|
7
|
+
export const BrandHeadingLineHeight500 = "1.5rem";
|
|
8
|
+
export const BrandHeadingLineHeight600 = "1.75rem";
|
|
9
|
+
export const BrandHeadingLineHeight700 = "2rem";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export const BrandFontStackSystem = "-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'";
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
declare const tokens: {
|
|
7
7
|
"brand": {
|
|
8
8
|
"color": {
|
|
9
|
+
"accent": {
|
|
10
|
+
"fg": string,
|
|
11
|
+
"emphasis": string,
|
|
12
|
+
"muted": string,
|
|
13
|
+
"subtle": string
|
|
14
|
+
},
|
|
9
15
|
"text": {
|
|
10
16
|
"default": string,
|
|
11
17
|
"muted": string,
|
|
@@ -28,7 +34,8 @@ declare const tokens: {
|
|
|
28
34
|
"default": string,
|
|
29
35
|
"muted": string,
|
|
30
36
|
"subtle": string
|
|
31
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"focus": string
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
7
|
"brand": {
|
|
8
8
|
"color": {
|
|
9
|
+
"accent": {
|
|
10
|
+
"fg": "var(--base-color-scale-pink-5)",
|
|
11
|
+
"emphasis": "var(--base-color-scale-pink-5)",
|
|
12
|
+
"muted": "hsl(var(--base-color-scale-pink-3-hsl) / 60%)",
|
|
13
|
+
"subtle": "var(--base-color-scale-pink-0)"
|
|
14
|
+
},
|
|
9
15
|
"text": {
|
|
10
16
|
"default": "var(--base-color-scale-gray-9)",
|
|
11
17
|
"muted": "var(--base-color-scale-gray-6)",
|
|
@@ -28,7 +34,8 @@ module.exports = {
|
|
|
28
34
|
"default": "var(--base-color-scale-gray-2)",
|
|
29
35
|
"muted": "hsl(var(--base-color-scale-gray-2-hsl) / 99.7%)",
|
|
30
36
|
"subtle": "hsl(var(--base-color-scale-black-0-hsl) / 99.85%)"
|
|
31
|
-
}
|
|
37
|
+
},
|
|
38
|
+
"focus": "var(--base-color-scale-blue-5)"
|
|
32
39
|
}
|
|
33
40
|
}
|
|
34
41
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
declare const tokens: {
|
|
7
|
+
"brand": {
|
|
8
|
+
"FAQ": {
|
|
9
|
+
"heading": {
|
|
10
|
+
"centered": {
|
|
11
|
+
"maxWidth": string
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"maxWidth": string
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export default tokens;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly
|
|
3
|
+
* Generated on Fri, 01 Jul 2022 09:59:37 GMT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
module.exports = {
|
|
7
|
+
"brand": {
|
|
8
|
+
"InlineLink": {
|
|
9
|
+
"color": {
|
|
10
|
+
"rest": "var(--base-color-scale-blue-5)",
|
|
11
|
+
"pressed": "var(--base-color-scale-blue-7)"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|