@expo/styleguide 5.0.0 → 5.1.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 +77 -87
- package/dist/styles/themes.d.ts +38 -46
- package/dist/styles/themes.js +39 -47
- package/package.json +1 -1
- package/tailwind.js +4 -0
package/dist/expo-theme.css
CHANGED
|
@@ -19,26 +19,47 @@
|
|
|
19
19
|
--expo-color-white: #fff;
|
|
20
20
|
--expo-color-black: #000;
|
|
21
21
|
|
|
22
|
-
/*
|
|
23
|
-
--expo-theme-
|
|
24
|
-
--expo-theme-
|
|
25
|
-
--expo-theme-
|
|
26
|
-
--expo-theme-
|
|
22
|
+
/* Backgrounds */
|
|
23
|
+
--expo-theme-background-default: var(--expo-color-white);
|
|
24
|
+
--expo-theme-background-screen: var(--slate1);
|
|
25
|
+
--expo-theme-background-subtle: var(--slate2);
|
|
26
|
+
--expo-theme-background-element: var(--slate3);
|
|
27
|
+
--expo-theme-background-hover: var(--slate4);
|
|
28
|
+
--expo-theme-background-selected: var(--slate5);
|
|
29
|
+
--expo-theme-background-overlay: var(--expo-color-white);
|
|
30
|
+
--expo-theme-background-success: var(--green3);
|
|
31
|
+
--expo-theme-background-warning: var(--yellow3);
|
|
32
|
+
--expo-theme-background-danger: var(--red3);
|
|
33
|
+
--expo-theme-background-info: var(--blue3);
|
|
27
34
|
|
|
28
|
-
|
|
29
|
-
--expo-theme-
|
|
30
|
-
--expo-theme-
|
|
31
|
-
--expo-theme-
|
|
35
|
+
/* Icons */
|
|
36
|
+
--expo-theme-icon-default: var(--slate11);
|
|
37
|
+
--expo-theme-icon-secondary: var(--slate10);
|
|
38
|
+
--expo-theme-icon-tertiary: var(--slate9);
|
|
39
|
+
--expo-theme-icon-quaternary: var(--slate8);
|
|
40
|
+
--expo-theme-icon-success: var(--green10);
|
|
41
|
+
--expo-theme-icon-warning: var(--yellow11);
|
|
42
|
+
--expo-theme-icon-danger: var(--red10);
|
|
43
|
+
--expo-theme-icon-info: var(--blue10);
|
|
32
44
|
|
|
33
|
-
|
|
34
|
-
--expo-theme-
|
|
35
|
-
--expo-theme-
|
|
36
|
-
--expo-theme-
|
|
45
|
+
/* Text */
|
|
46
|
+
--expo-theme-text-default: var(--slate12);
|
|
47
|
+
--expo-theme-text-secondary: var(--slate11);
|
|
48
|
+
--expo-theme-text-tertiary: var(--slate10);
|
|
49
|
+
--expo-theme-text-quaternary: var(--slate9);
|
|
50
|
+
--expo-theme-text-link: var(--blue10);
|
|
51
|
+
--expo-theme-text-success: var(--green11);
|
|
52
|
+
--expo-theme-text-warning: var(--yellow11);
|
|
53
|
+
--expo-theme-text-danger: var(--red11);
|
|
54
|
+
--expo-theme-text-info: var(--blue11);
|
|
37
55
|
|
|
38
|
-
|
|
39
|
-
--expo-theme-
|
|
40
|
-
--expo-theme-
|
|
41
|
-
--expo-theme-
|
|
56
|
+
/* Borders */
|
|
57
|
+
--expo-theme-border-default: var(--slate7);
|
|
58
|
+
--expo-theme-border-secondary: var(--slate6);
|
|
59
|
+
--expo-theme-border-success: var(--green7);
|
|
60
|
+
--expo-theme-border-warning: var(--yellow7);
|
|
61
|
+
--expo-theme-border-danger: var(--red7);
|
|
62
|
+
--expo-theme-border-info: var(--blue7);
|
|
42
63
|
|
|
43
64
|
/* Buttons */
|
|
44
65
|
--expo-theme-button-primary-background: var(--blue10);
|
|
@@ -95,32 +116,6 @@
|
|
|
95
116
|
--expo-theme-button-secondary-destructive-disabled-border: var(--red5);
|
|
96
117
|
--expo-theme-button-secondary-destructive-disabled-text: var(--red8);
|
|
97
118
|
|
|
98
|
-
/* Backgrounds */
|
|
99
|
-
--expo-theme-background-default: var(--expo-color-white);
|
|
100
|
-
--expo-theme-background-screen: var(--slate1);
|
|
101
|
-
--expo-theme-background-subtle: var(--slate2);
|
|
102
|
-
--expo-theme-background-element: var(--slate3);
|
|
103
|
-
--expo-theme-background-hover: var(--slate4);
|
|
104
|
-
--expo-theme-background-selected: var(--slate5);
|
|
105
|
-
--expo-theme-background-overlay: var(--expo-color-white);
|
|
106
|
-
|
|
107
|
-
/* Icons */
|
|
108
|
-
--expo-theme-icon-default: var(--slate11);
|
|
109
|
-
--expo-theme-icon-secondary: var(--slate10);
|
|
110
|
-
--expo-theme-icon-tertiary: var(--slate9);
|
|
111
|
-
--expo-theme-icon-quaternary: var(--slate8);
|
|
112
|
-
|
|
113
|
-
/* Text */
|
|
114
|
-
--expo-theme-text-default: var(--slate12);
|
|
115
|
-
--expo-theme-text-secondary: var(--slate11);
|
|
116
|
-
--expo-theme-text-tertiary: var(--slate10);
|
|
117
|
-
--expo-theme-text-quaternary: var(--slate9);
|
|
118
|
-
--expo-theme-text-link: var(--blue10);
|
|
119
|
-
|
|
120
|
-
/* Borders */
|
|
121
|
-
--expo-theme-border-default: var(--slate7);
|
|
122
|
-
--expo-theme-border-secondary: var(--slate6);
|
|
123
|
-
|
|
124
119
|
/* Project icon backgrounds */
|
|
125
120
|
--expo-theme-project-blue: linear-gradient(#81b2eb, #6299d9);
|
|
126
121
|
--expo-theme-project-green: linear-gradient(#6eb87f, #54a767);
|
|
@@ -146,32 +141,53 @@
|
|
|
146
141
|
}
|
|
147
142
|
|
|
148
143
|
.dark-theme {
|
|
149
|
-
/*
|
|
150
|
-
--expo-theme-
|
|
151
|
-
--expo-theme-
|
|
152
|
-
--expo-theme-
|
|
153
|
-
--expo-theme-
|
|
144
|
+
/* Backgrounds */
|
|
145
|
+
--expo-theme-background-default: var(--slate1);
|
|
146
|
+
--expo-theme-background-screen: var(--expo-color-black);
|
|
147
|
+
--expo-theme-background-subtle: var(--slate2);
|
|
148
|
+
--expo-theme-background-element: var(--slate3);
|
|
149
|
+
--expo-theme-background-hover: var(--slate4);
|
|
150
|
+
--expo-theme-background-selected: var(--slate5);
|
|
151
|
+
--expo-theme-background-overlay: var(--slate2);
|
|
152
|
+
--expo-theme-background-success: var(--green3);
|
|
153
|
+
--expo-theme-background-warning: var(--yellow3);
|
|
154
|
+
--expo-theme-background-danger: var(--red3);
|
|
155
|
+
--expo-theme-background-info: var(--blue3);
|
|
154
156
|
|
|
155
|
-
|
|
156
|
-
--expo-theme-
|
|
157
|
-
--expo-theme-
|
|
158
|
-
--expo-theme-
|
|
157
|
+
/* Icons */
|
|
158
|
+
--expo-theme-icon-default: var(--slate11);
|
|
159
|
+
--expo-theme-icon-secondary: var(--slate10);
|
|
160
|
+
--expo-theme-icon-tertiary: var(--slate9);
|
|
161
|
+
--expo-theme-icon-quaternary: var(--slate8);
|
|
162
|
+
--expo-theme-icon-success: var(--green10);
|
|
163
|
+
--expo-theme-icon-warning: var(--yellow11);
|
|
164
|
+
--expo-theme-icon-danger: var(--red10);
|
|
165
|
+
--expo-theme-icon-info: var(--blue10);
|
|
159
166
|
|
|
160
|
-
|
|
161
|
-
--expo-theme-
|
|
162
|
-
--expo-theme-
|
|
163
|
-
--expo-theme-
|
|
167
|
+
/* Text */
|
|
168
|
+
--expo-theme-text-default: var(--slate12);
|
|
169
|
+
--expo-theme-text-secondary: var(--slate11);
|
|
170
|
+
--expo-theme-text-tertiary: var(--slate10);
|
|
171
|
+
--expo-theme-text-quaternary: var(--slate9);
|
|
172
|
+
--expo-theme-text-link: var(--blue10);
|
|
173
|
+
--expo-theme-text-success: var(--green11);
|
|
174
|
+
--expo-theme-text-warning: var(--yellow11);
|
|
175
|
+
--expo-theme-text-danger: var(--red11);
|
|
176
|
+
--expo-theme-text-info: var(--blue11);
|
|
164
177
|
|
|
165
|
-
|
|
166
|
-
--expo-theme-
|
|
167
|
-
--expo-theme-
|
|
168
|
-
--expo-theme-
|
|
178
|
+
/* Borders */
|
|
179
|
+
--expo-theme-border-default: var(--slate7);
|
|
180
|
+
--expo-theme-border-secondary: var(--slate6);
|
|
181
|
+
--expo-theme-border-success: var(--green7);
|
|
182
|
+
--expo-theme-border-warning: var(--yellow7);
|
|
183
|
+
--expo-theme-border-danger: var(--red7);
|
|
184
|
+
--expo-theme-border-info: var(--blue7);
|
|
169
185
|
|
|
170
186
|
/* Buttons */
|
|
171
187
|
--expo-theme-button-primary-background: var(--blue9);
|
|
172
188
|
--expo-theme-button-primary-border: var(--blue9);
|
|
173
189
|
--expo-theme-button-primary-hover: var(--blue8);
|
|
174
|
-
--expo-theme-button-primary-icon: var(--
|
|
190
|
+
--expo-theme-button-primary-icon: var(--blue12);
|
|
175
191
|
--expo-theme-button-primary-text: var(--expo-color-white);
|
|
176
192
|
--expo-theme-button-primary-disabled-background: var(--blue7);
|
|
177
193
|
--expo-theme-button-primary-disabled-border: var(--blue7);
|
|
@@ -222,32 +238,6 @@
|
|
|
222
238
|
--expo-theme-button-secondary-destructive-disabled-border: var(--red5);
|
|
223
239
|
--expo-theme-button-secondary-destructive-disabled-text: var(--red8);
|
|
224
240
|
|
|
225
|
-
/* Backgrounds */
|
|
226
|
-
--expo-theme-background-default: var(--slate1);
|
|
227
|
-
--expo-theme-background-screen: var(--expo-color-black);
|
|
228
|
-
--expo-theme-background-subtle: var(--slate2);
|
|
229
|
-
--expo-theme-background-element: var(--slate3);
|
|
230
|
-
--expo-theme-background-hover: var(--slate4);
|
|
231
|
-
--expo-theme-background-selected: var(--slate5);
|
|
232
|
-
--expo-theme-background-overlay: var(--slate2);
|
|
233
|
-
|
|
234
|
-
/* Icons */
|
|
235
|
-
--expo-theme-icon-default: var(--slate11);
|
|
236
|
-
--expo-theme-icon-secondary: var(--slate10);
|
|
237
|
-
--expo-theme-icon-tertiary: var(--slate9);
|
|
238
|
-
--expo-theme-icon-quaternary: var(--slate8);
|
|
239
|
-
|
|
240
|
-
/* Text */
|
|
241
|
-
--expo-theme-text-default: var(--slate12);
|
|
242
|
-
--expo-theme-text-secondary: var(--slate11);
|
|
243
|
-
--expo-theme-text-tertiary: var(--slate10);
|
|
244
|
-
--expo-theme-text-quaternary: var(--slate9);
|
|
245
|
-
--expo-theme-text-link: var(--blue10);
|
|
246
|
-
|
|
247
|
-
/* Borders */
|
|
248
|
-
--expo-theme-border-default: var(--slate7);
|
|
249
|
-
--expo-theme-border-secondary: var(--slate6);
|
|
250
|
-
|
|
251
241
|
/* Project icon backgrounds */
|
|
252
242
|
--expo-theme-project-blue: linear-gradient(#537296, #395a80);
|
|
253
243
|
--expo-theme-project-green: linear-gradient(#4b7d56, #32633d);
|
package/dist/styles/themes.d.ts
CHANGED
|
@@ -1,27 +1,45 @@
|
|
|
1
1
|
export declare const theme: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
background: {
|
|
3
|
+
default: string;
|
|
4
|
+
screen: string;
|
|
5
|
+
subtle: string;
|
|
6
|
+
element: string;
|
|
7
|
+
hover: string;
|
|
8
|
+
selected: string;
|
|
9
|
+
overlay: string;
|
|
10
|
+
success: string;
|
|
11
|
+
warning: string;
|
|
12
|
+
danger: string;
|
|
13
|
+
info: string;
|
|
7
14
|
};
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
icon: {
|
|
16
|
+
default: string;
|
|
17
|
+
secondary: string;
|
|
18
|
+
tertiary: string;
|
|
19
|
+
quaternary: string;
|
|
20
|
+
success: string;
|
|
21
|
+
warning: string;
|
|
22
|
+
danger: string;
|
|
23
|
+
info: string;
|
|
13
24
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
25
|
+
text: {
|
|
26
|
+
default: string;
|
|
27
|
+
secondary: string;
|
|
28
|
+
tertiary: string;
|
|
29
|
+
quaternary: string;
|
|
30
|
+
link: string;
|
|
31
|
+
success: string;
|
|
32
|
+
warning: string;
|
|
33
|
+
danger: string;
|
|
34
|
+
info: string;
|
|
19
35
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
36
|
+
border: {
|
|
37
|
+
default: string;
|
|
38
|
+
secondary: string;
|
|
39
|
+
success: string;
|
|
40
|
+
warning: string;
|
|
41
|
+
danger: string;
|
|
42
|
+
info: string;
|
|
25
43
|
};
|
|
26
44
|
button: {
|
|
27
45
|
primary: {
|
|
@@ -97,32 +115,6 @@ export declare const theme: {
|
|
|
97
115
|
};
|
|
98
116
|
};
|
|
99
117
|
};
|
|
100
|
-
background: {
|
|
101
|
-
default: string;
|
|
102
|
-
screen: string;
|
|
103
|
-
subtle: string;
|
|
104
|
-
element: string;
|
|
105
|
-
hover: string;
|
|
106
|
-
selected: string;
|
|
107
|
-
overlay: string;
|
|
108
|
-
};
|
|
109
|
-
icon: {
|
|
110
|
-
default: string;
|
|
111
|
-
secondary: string;
|
|
112
|
-
tertiary: string;
|
|
113
|
-
quaternary: string;
|
|
114
|
-
};
|
|
115
|
-
text: {
|
|
116
|
-
default: string;
|
|
117
|
-
secondary: string;
|
|
118
|
-
tertiary: string;
|
|
119
|
-
quaternary: string;
|
|
120
|
-
link: string;
|
|
121
|
-
};
|
|
122
|
-
border: {
|
|
123
|
-
default: string;
|
|
124
|
-
secondary: string;
|
|
125
|
-
};
|
|
126
118
|
project: {
|
|
127
119
|
blue: string;
|
|
128
120
|
green: string;
|
package/dist/styles/themes.js
CHANGED
|
@@ -3,29 +3,47 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.darkTheme = exports.lightTheme = exports.theme = void 0;
|
|
4
4
|
const palette_1 = require("./palette");
|
|
5
5
|
exports.theme = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
background: {
|
|
7
|
+
default: 'var(--expo-theme-background-default)',
|
|
8
|
+
screen: 'var(--expo-theme-background-screen)',
|
|
9
|
+
subtle: 'var(--expo-theme-background-subtle)',
|
|
10
|
+
element: 'var(--expo-theme-background-element)',
|
|
11
|
+
hover: 'var(--expo-theme-background-hover)',
|
|
12
|
+
selected: 'var(--expo-theme-background-selected)',
|
|
13
|
+
overlay: 'var(--expo-theme-background-overlay)',
|
|
14
|
+
success: 'var(--expo-theme-background-success)',
|
|
15
|
+
warning: 'var(--expo-theme-background-warning)',
|
|
16
|
+
danger: 'var(--expo-theme-background-danger)',
|
|
17
|
+
info: 'var(--expo-theme-background-info)',
|
|
11
18
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
icon: {
|
|
20
|
+
default: 'var(--expo-theme-icon-default)',
|
|
21
|
+
secondary: 'var(--expo-theme-icon-secondary)',
|
|
22
|
+
tertiary: 'var(--expo-theme-icon-tertiary)',
|
|
23
|
+
quaternary: 'var(--expo-theme-icon-quaternary)',
|
|
24
|
+
success: 'var(--expo-theme-icon-success)',
|
|
25
|
+
warning: 'var(--expo-theme-icon-warning)',
|
|
26
|
+
danger: 'var(--expo-theme-icon-danger)',
|
|
27
|
+
info: 'var(--expo-theme-icon-info)',
|
|
17
28
|
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
text: {
|
|
30
|
+
default: 'var(--expo-theme-text-default)',
|
|
31
|
+
secondary: 'var(--expo-theme-text-secondary)',
|
|
32
|
+
tertiary: 'var(--expo-theme-text-tertiary)',
|
|
33
|
+
quaternary: 'var(--expo-theme-text-quaternary)',
|
|
34
|
+
link: 'var(--expo-theme-text-link)',
|
|
35
|
+
success: 'var(--expo-theme-text-success)',
|
|
36
|
+
warning: 'var(--expo-theme-text-warning)',
|
|
37
|
+
danger: 'var(--expo-theme-text-danger)',
|
|
38
|
+
info: 'var(--expo-theme-text-info)',
|
|
23
39
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
40
|
+
border: {
|
|
41
|
+
default: 'var(--expo-theme-border-default)',
|
|
42
|
+
secondary: 'var(--expo-theme-border-secondary)',
|
|
43
|
+
success: 'var(--expo-theme-border-success)',
|
|
44
|
+
warning: 'var(--expo-theme-border-warning)',
|
|
45
|
+
danger: 'var(--expo-theme-border-danger)',
|
|
46
|
+
info: 'var(--expo-theme-border-info)',
|
|
29
47
|
},
|
|
30
48
|
button: {
|
|
31
49
|
primary: {
|
|
@@ -101,32 +119,6 @@ exports.theme = {
|
|
|
101
119
|
}
|
|
102
120
|
},
|
|
103
121
|
},
|
|
104
|
-
background: {
|
|
105
|
-
default: 'var(--expo-theme-background-default)',
|
|
106
|
-
screen: 'var(--expo-theme-background-screen)',
|
|
107
|
-
subtle: 'var(--expo-theme-background-subtle)',
|
|
108
|
-
element: 'var(--expo-theme-background-element)',
|
|
109
|
-
hover: 'var(--expo-theme-background-hover)',
|
|
110
|
-
selected: 'var(--expo-theme-background-selected)',
|
|
111
|
-
overlay: 'var(--expo-theme-background-overlay)',
|
|
112
|
-
},
|
|
113
|
-
icon: {
|
|
114
|
-
default: 'var(--expo-theme-icon-default)',
|
|
115
|
-
secondary: 'var(--expo-theme-icon-secondary)',
|
|
116
|
-
tertiary: 'var(--expo-theme-icon-tertiary)',
|
|
117
|
-
quaternary: 'var(--expo-theme-icon-quaternary)',
|
|
118
|
-
},
|
|
119
|
-
text: {
|
|
120
|
-
default: 'var(--expo-theme-text-default)',
|
|
121
|
-
secondary: 'var(--expo-theme-text-secondary)',
|
|
122
|
-
tertiary: 'var(--expo-theme-text-tertiary)',
|
|
123
|
-
quaternary: 'var(--expo-theme-text-quaternary)',
|
|
124
|
-
link: 'var(--expo-theme-text-link)',
|
|
125
|
-
},
|
|
126
|
-
border: {
|
|
127
|
-
default: 'var(--expo-theme-border-default)',
|
|
128
|
-
secondary: 'var(--expo-theme-border-secondary)',
|
|
129
|
-
},
|
|
130
122
|
project: {
|
|
131
123
|
blue: 'var(--expo-theme-project-blue)',
|
|
132
124
|
green: 'var(--expo-theme-project-green)',
|
|
@@ -393,7 +385,7 @@ exports.darkTheme = {
|
|
|
393
385
|
background: palette_1.palette.dark.blue10,
|
|
394
386
|
border: palette_1.palette.dark.blue10,
|
|
395
387
|
hover: palette_1.palette.dark.blue9,
|
|
396
|
-
icon: palette_1.palette.dark.
|
|
388
|
+
icon: palette_1.palette.dark.blue12,
|
|
397
389
|
text: palette_1.palette.black,
|
|
398
390
|
disabled: {
|
|
399
391
|
background: palette_1.palette.dark.blue8,
|
package/package.json
CHANGED
package/tailwind.js
CHANGED
|
@@ -21,6 +21,10 @@ module.exports = {
|
|
|
21
21
|
secondary: theme.text.secondary,
|
|
22
22
|
tertiary: theme.text.tertiary,
|
|
23
23
|
quaternary: theme.text.quaternary,
|
|
24
|
+
success: theme.text.success,
|
|
25
|
+
warning: theme.text.warning,
|
|
26
|
+
danger: theme.text.danger,
|
|
27
|
+
info: theme.text.info,
|
|
24
28
|
...theme,
|
|
25
29
|
},
|
|
26
30
|
boxShadow: shadows,
|