@expo/styleguide 3.5.1 → 4.0.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/dist/expo-theme.css
CHANGED
|
@@ -284,7 +284,6 @@
|
|
|
284
284
|
--expo-theme-palette-white: #ffffff;
|
|
285
285
|
--expo-theme-palette-black: #1b1f23;
|
|
286
286
|
--expo-theme-background-default: var(--expo-color-base-light-white);
|
|
287
|
-
--expo-theme-background-canvas: var(--expo-color-base-light-gray-000);
|
|
288
287
|
--expo-theme-background-screen: var(--expo-color-base-light-gray-100);
|
|
289
288
|
--expo-theme-background-secondary: var(--expo-color-base-light-gray-100);
|
|
290
289
|
--expo-theme-background-tertiary: var(--expo-color-base-light-gray-200);
|
|
@@ -457,7 +456,6 @@
|
|
|
457
456
|
--expo-theme-palette-white: #ffffff;
|
|
458
457
|
--expo-theme-palette-black: #0d1117;
|
|
459
458
|
--expo-theme-background-default: var(--expo-color-base-dark-gray-100);
|
|
460
|
-
--expo-theme-background-canvas: var(--expo-color-base-dark-gray-100);
|
|
461
459
|
--expo-theme-background-screen: var(--expo-color-base-dark-gray-000);
|
|
462
460
|
--expo-theme-background-secondary: var(--expo-color-base-dark-gray-200);
|
|
463
461
|
--expo-theme-background-tertiary: var(--expo-color-base-dark-gray-300);
|
|
@@ -2,7 +2,6 @@ export declare const theme: {
|
|
|
2
2
|
background: {
|
|
3
3
|
default: string;
|
|
4
4
|
screen: string;
|
|
5
|
-
canvas: string;
|
|
6
5
|
secondary: string;
|
|
7
6
|
tertiary: string;
|
|
8
7
|
quaternary: string;
|
|
@@ -202,7 +201,6 @@ export declare const theme: {
|
|
|
202
201
|
export declare const lightTheme: {
|
|
203
202
|
background: {
|
|
204
203
|
default: string;
|
|
205
|
-
canvas: string;
|
|
206
204
|
secondary: string;
|
|
207
205
|
tertiary: string;
|
|
208
206
|
quaternary: string;
|
|
@@ -280,7 +278,6 @@ export declare const lightTheme: {
|
|
|
280
278
|
export declare const darkTheme: {
|
|
281
279
|
background: {
|
|
282
280
|
default: string;
|
|
283
|
-
canvas: string;
|
|
284
281
|
secondary: string;
|
|
285
282
|
tertiary: string;
|
|
286
283
|
quaternary: string;
|
|
@@ -5,7 +5,6 @@ exports.theme = {
|
|
|
5
5
|
background: {
|
|
6
6
|
default: 'var(--expo-theme-background-default)',
|
|
7
7
|
screen: 'var(--expo-theme-background-screen)',
|
|
8
|
-
canvas: 'var(--expo-theme-background-canvas)',
|
|
9
8
|
secondary: 'var(--expo-theme-background-secondary)',
|
|
10
9
|
tertiary: 'var(--expo-theme-background-tertiary)',
|
|
11
10
|
quaternary: 'var(--expo-theme-background-quaternary)',
|
|
@@ -203,7 +202,6 @@ exports.theme = {
|
|
|
203
202
|
exports.lightTheme = {
|
|
204
203
|
background: {
|
|
205
204
|
default: 'var(--expo-color-base-light-white)',
|
|
206
|
-
canvas: 'var(--expo-color-base-light-gray-000)',
|
|
207
205
|
secondary: 'var(--expo-color-base-light-gray-100)',
|
|
208
206
|
tertiary: 'var(--expo-color-base-light-gray-200)',
|
|
209
207
|
quaternary: 'var(--expo-color-base-light-gray-300)',
|
|
@@ -281,7 +279,6 @@ exports.lightTheme = {
|
|
|
281
279
|
exports.darkTheme = {
|
|
282
280
|
background: {
|
|
283
281
|
default: 'var(--expo-color-base-dark-gray-000)',
|
|
284
|
-
canvas: 'var(--expo-color-base-dark-gray-100)',
|
|
285
282
|
secondary: 'var(--expo-color-base-dark-gray-200)',
|
|
286
283
|
tertiary: 'var(--expo-color-base-dark-gray-300)',
|
|
287
284
|
quaternary: 'var(--expo-color-base-dark-gray-400)',
|
|
@@ -1,54 +1,106 @@
|
|
|
1
1
|
export declare const typography: {
|
|
2
2
|
baseFontSize: number;
|
|
3
3
|
headers: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
4
|
+
xl: {
|
|
5
|
+
huge: {
|
|
6
|
+
fontSize: string;
|
|
7
|
+
lineHeight: string;
|
|
8
|
+
letterSpacing: string;
|
|
9
|
+
fontFamily: string;
|
|
10
|
+
fontWeight: number;
|
|
11
|
+
};
|
|
12
|
+
h1: {
|
|
13
|
+
fontSize: string;
|
|
14
|
+
lineHeight: string;
|
|
15
|
+
letterSpacing: string;
|
|
16
|
+
fontFamily: string;
|
|
17
|
+
fontWeight: number;
|
|
18
|
+
};
|
|
19
|
+
h2: {
|
|
20
|
+
fontSize: string;
|
|
21
|
+
lineHeight: string;
|
|
22
|
+
letterSpacing: string;
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
fontWeight: number;
|
|
25
|
+
};
|
|
26
|
+
h3: {
|
|
27
|
+
fontSize: string;
|
|
28
|
+
lineHeight: string;
|
|
29
|
+
letterSpacing: string;
|
|
30
|
+
fontFamily: string;
|
|
31
|
+
fontWeight: number;
|
|
32
|
+
};
|
|
33
|
+
h4: {
|
|
34
|
+
fontSize: string;
|
|
35
|
+
lineHeight: string;
|
|
36
|
+
letterSpacing: string;
|
|
37
|
+
fontFamily: string;
|
|
38
|
+
fontWeight: number;
|
|
39
|
+
};
|
|
40
|
+
h5: {
|
|
41
|
+
fontSize: string;
|
|
42
|
+
lineHeight: string;
|
|
43
|
+
letterSpacing: string;
|
|
44
|
+
fontFamily: string;
|
|
45
|
+
fontWeight: number;
|
|
46
|
+
};
|
|
47
|
+
h6: {
|
|
48
|
+
fontSize: string;
|
|
49
|
+
lineHeight: string;
|
|
50
|
+
letterSpacing: string;
|
|
51
|
+
fontFamily: string;
|
|
52
|
+
fontWeight: number;
|
|
53
|
+
};
|
|
45
54
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
default: {
|
|
56
|
+
huge: {
|
|
57
|
+
fontSize: string;
|
|
58
|
+
lineHeight: string;
|
|
59
|
+
letterSpacing: string;
|
|
60
|
+
fontFamily: string;
|
|
61
|
+
fontWeight: number;
|
|
62
|
+
};
|
|
63
|
+
h1: {
|
|
64
|
+
fontSize: string;
|
|
65
|
+
lineHeight: string;
|
|
66
|
+
letterSpacing: string;
|
|
67
|
+
fontFamily: string;
|
|
68
|
+
fontWeight: number;
|
|
69
|
+
};
|
|
70
|
+
h2: {
|
|
71
|
+
fontSize: string;
|
|
72
|
+
lineHeight: string;
|
|
73
|
+
letterSpacing: string;
|
|
74
|
+
fontFamily: string;
|
|
75
|
+
fontWeight: number;
|
|
76
|
+
};
|
|
77
|
+
h3: {
|
|
78
|
+
fontSize: string;
|
|
79
|
+
lineHeight: string;
|
|
80
|
+
letterSpacing: string;
|
|
81
|
+
fontFamily: string;
|
|
82
|
+
fontWeight: number;
|
|
83
|
+
};
|
|
84
|
+
h4: {
|
|
85
|
+
fontSize: string;
|
|
86
|
+
lineHeight: string;
|
|
87
|
+
letterSpacing: string;
|
|
88
|
+
fontFamily: string;
|
|
89
|
+
fontWeight: number;
|
|
90
|
+
};
|
|
91
|
+
h5: {
|
|
92
|
+
fontSize: string;
|
|
93
|
+
lineHeight: string;
|
|
94
|
+
letterSpacing: string;
|
|
95
|
+
fontFamily: string;
|
|
96
|
+
fontWeight: number;
|
|
97
|
+
};
|
|
98
|
+
h6: {
|
|
99
|
+
fontSize: string;
|
|
100
|
+
lineHeight: string;
|
|
101
|
+
fontFamily: string;
|
|
102
|
+
fontWeight: number;
|
|
103
|
+
};
|
|
52
104
|
};
|
|
53
105
|
};
|
|
54
106
|
body: {
|
|
@@ -140,52 +140,99 @@ const fontSizes = {
|
|
|
140
140
|
12: { fontSize: rem(12), lineHeight: round(19 / 12) },
|
|
141
141
|
};
|
|
142
142
|
const headers = {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
143
|
+
xl: {
|
|
144
|
+
huge: {
|
|
145
|
+
fontFamily: fontStacks.black,
|
|
146
|
+
fontWeight: 900,
|
|
147
|
+
...fontSizes[61],
|
|
148
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[53],
|
|
149
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[46],
|
|
150
|
+
},
|
|
151
|
+
h1: {
|
|
152
|
+
fontFamily: fontStacks.semiBold,
|
|
153
|
+
fontWeight: 500,
|
|
154
|
+
...fontSizes[49],
|
|
155
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[43],
|
|
156
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[37],
|
|
157
|
+
},
|
|
158
|
+
h2: {
|
|
159
|
+
fontFamily: fontStacks.semiBold,
|
|
160
|
+
fontWeight: 500,
|
|
161
|
+
...fontSizes[39],
|
|
162
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[34],
|
|
163
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[29],
|
|
164
|
+
},
|
|
165
|
+
h3: {
|
|
166
|
+
fontFamily: fontStacks.semiBold,
|
|
167
|
+
fontWeight: 500,
|
|
168
|
+
...fontSizes[31],
|
|
169
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[27],
|
|
170
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[23],
|
|
171
|
+
},
|
|
172
|
+
h4: {
|
|
173
|
+
fontFamily: fontStacks.medium,
|
|
174
|
+
fontWeight: 500,
|
|
175
|
+
...fontSizes[25],
|
|
176
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[22],
|
|
177
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[19],
|
|
178
|
+
},
|
|
179
|
+
h5: {
|
|
180
|
+
fontFamily: fontStacks.medium,
|
|
181
|
+
fontWeight: 500,
|
|
182
|
+
...fontSizes[20],
|
|
183
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[18],
|
|
184
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[16],
|
|
185
|
+
},
|
|
186
|
+
h6: {
|
|
187
|
+
fontFamily: fontStacks.medium,
|
|
188
|
+
fontWeight: 500,
|
|
189
|
+
...fontSizes[16],
|
|
190
|
+
},
|
|
184
191
|
},
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
192
|
+
default: {
|
|
193
|
+
huge: {
|
|
194
|
+
fontFamily: fontStacks.black,
|
|
195
|
+
fontWeight: 500,
|
|
196
|
+
...fontSizes[39],
|
|
197
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[34],
|
|
198
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[29],
|
|
199
|
+
},
|
|
200
|
+
h1: {
|
|
201
|
+
fontFamily: fontStacks.semiBold,
|
|
202
|
+
fontWeight: 500,
|
|
203
|
+
...fontSizes[31],
|
|
204
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[27],
|
|
205
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[23],
|
|
206
|
+
},
|
|
207
|
+
h2: {
|
|
208
|
+
fontFamily: fontStacks.semiBold,
|
|
209
|
+
fontWeight: 500,
|
|
210
|
+
...fontSizes[25],
|
|
211
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[22],
|
|
212
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[19],
|
|
213
|
+
},
|
|
214
|
+
h3: {
|
|
215
|
+
fontFamily: fontStacks.semiBold,
|
|
216
|
+
fontWeight: 500,
|
|
217
|
+
...fontSizes[20],
|
|
218
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.medium}px)`]: fontSizes[18],
|
|
219
|
+
[`@media (max-width: ${breakpoints_1.breakpoints.small}px)`]: fontSizes[16],
|
|
220
|
+
},
|
|
221
|
+
h4: {
|
|
222
|
+
fontFamily: fontStacks.semiBold,
|
|
223
|
+
fontWeight: 500,
|
|
224
|
+
...fontSizes[16],
|
|
225
|
+
},
|
|
226
|
+
h5: {
|
|
227
|
+
fontFamily: fontStacks.semiBold,
|
|
228
|
+
fontWeight: 500,
|
|
229
|
+
...fontSizes[13],
|
|
230
|
+
},
|
|
231
|
+
h6: {
|
|
232
|
+
fontFamily: fontStacks.semiBold,
|
|
233
|
+
fontWeight: 500,
|
|
234
|
+
...fontSizes[12],
|
|
235
|
+
},
|
|
189
236
|
},
|
|
190
237
|
};
|
|
191
238
|
const baseStyle = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Foundational styles for Expo interfaces.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "*"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "b66433e1fc551311023c6c5829a0d9cdb3bdcae7"
|
|
41
41
|
}
|