@expo/styleguide-native 0.4.1 → 0.4.2-alpha.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/index.d.ts +2 -1
- package/dist/index.js +3 -1
- package/dist/src/styles/breakpoints.d.ts +5 -0
- package/dist/src/styles/breakpoints.js +8 -0
- package/dist/src/styles/palette.js +84 -84
- package/dist/src/styles/themes.d.ts +20 -0
- package/dist/src/styles/themes.js +20 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -3,5 +3,6 @@ import { shadows } from './src/styles/shadows';
|
|
|
3
3
|
import { lightTheme, darkTheme } from './src/styles/themes';
|
|
4
4
|
import { iconSize, borderRadius } from './src/styles/sizing';
|
|
5
5
|
import { spacing } from './src/styles/spacing';
|
|
6
|
+
import { breakpoints } from './src/styles/breakpoints';
|
|
6
7
|
export * from './src/icons';
|
|
7
|
-
export { borderRadius, darkTheme, iconSize, lightTheme, palette, shadows, spacing, };
|
|
8
|
+
export { borderRadius, breakpoints, darkTheme, iconSize, lightTheme, palette, shadows, spacing, };
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.spacing = exports.shadows = exports.palette = exports.lightTheme = exports.iconSize = exports.darkTheme = exports.borderRadius = void 0;
|
|
13
|
+
exports.spacing = exports.shadows = exports.palette = exports.lightTheme = exports.iconSize = exports.darkTheme = exports.breakpoints = exports.borderRadius = void 0;
|
|
14
14
|
const palette_1 = require("./src/styles/palette");
|
|
15
15
|
Object.defineProperty(exports, "palette", { enumerable: true, get: function () { return palette_1.palette; } });
|
|
16
16
|
const shadows_1 = require("./src/styles/shadows");
|
|
@@ -23,4 +23,6 @@ Object.defineProperty(exports, "iconSize", { enumerable: true, get: function ()
|
|
|
23
23
|
Object.defineProperty(exports, "borderRadius", { enumerable: true, get: function () { return sizing_1.borderRadius; } });
|
|
24
24
|
const spacing_1 = require("./src/styles/spacing");
|
|
25
25
|
Object.defineProperty(exports, "spacing", { enumerable: true, get: function () { return spacing_1.spacing; } });
|
|
26
|
+
const breakpoints_1 = require("./src/styles/breakpoints");
|
|
27
|
+
Object.defineProperty(exports, "breakpoints", { enumerable: true, get: function () { return breakpoints_1.breakpoints; } });
|
|
26
28
|
__exportStar(require("./src/icons"), exports);
|
|
@@ -45,12 +45,12 @@ exports.palette = {
|
|
|
45
45
|
100: '#ffebda',
|
|
46
46
|
200: '#ffd1ac',
|
|
47
47
|
300: '#ffab70',
|
|
48
|
-
400: '#
|
|
49
|
-
500: '#
|
|
50
|
-
600: '#
|
|
51
|
-
700: '#
|
|
52
|
-
800: '#
|
|
53
|
-
900: '#
|
|
48
|
+
400: '#fb8e41',
|
|
49
|
+
500: '#fa7c25',
|
|
50
|
+
600: '#de6614',
|
|
51
|
+
700: '#c45408',
|
|
52
|
+
800: '#96430b',
|
|
53
|
+
900: '#7a4018',
|
|
54
54
|
},
|
|
55
55
|
pink: {
|
|
56
56
|
'000': '#ffeef8',
|
|
@@ -80,13 +80,13 @@ exports.palette = {
|
|
|
80
80
|
'000': '#f9f7ff',
|
|
81
81
|
100: '#ede9ff',
|
|
82
82
|
200: '#d2cafd',
|
|
83
|
-
300: '#
|
|
84
|
-
400: '#
|
|
83
|
+
300: '#a193f9',
|
|
84
|
+
400: '#664fff',
|
|
85
85
|
500: '#4630eb',
|
|
86
|
-
600: '#
|
|
87
|
-
700: '#
|
|
88
|
-
800: '#
|
|
89
|
-
900: '#
|
|
86
|
+
600: '#3929c4',
|
|
87
|
+
700: '#2e2496',
|
|
88
|
+
800: '#261f73',
|
|
89
|
+
900: '#221e5c',
|
|
90
90
|
},
|
|
91
91
|
red: {
|
|
92
92
|
'000': '#fee',
|
|
@@ -104,12 +104,12 @@ exports.palette = {
|
|
|
104
104
|
'000': '#fffdef',
|
|
105
105
|
100: '#fffbdd',
|
|
106
106
|
200: '#fff5b1',
|
|
107
|
-
300: '#
|
|
107
|
+
300: '#ffeb87',
|
|
108
108
|
400: '#ffdf5d',
|
|
109
109
|
500: '#ffd33d',
|
|
110
|
-
600: '#
|
|
111
|
-
700: '#
|
|
112
|
-
800: '#
|
|
110
|
+
600: '#f2c012',
|
|
111
|
+
700: '#cfa108',
|
|
112
|
+
800: '#9c7800',
|
|
113
113
|
900: '#735c0f',
|
|
114
114
|
},
|
|
115
115
|
white: '#fff',
|
|
@@ -117,15 +117,15 @@ exports.palette = {
|
|
|
117
117
|
},
|
|
118
118
|
dark: {
|
|
119
119
|
blue: {
|
|
120
|
-
'000': '#
|
|
121
|
-
100: '#
|
|
122
|
-
200: '#
|
|
123
|
-
300: '#
|
|
124
|
-
400: '#
|
|
125
|
-
500: '#
|
|
126
|
-
600: '#
|
|
127
|
-
700: '#
|
|
128
|
-
800: '#
|
|
120
|
+
'000': '#122447',
|
|
121
|
+
100: '#173366',
|
|
122
|
+
200: '#1e4894',
|
|
123
|
+
300: '#2362c4',
|
|
124
|
+
400: '#2d73e0',
|
|
125
|
+
500: '#4794fd',
|
|
126
|
+
600: '#61abff',
|
|
127
|
+
700: '#8fcaff',
|
|
128
|
+
800: '#addaff',
|
|
129
129
|
900: '#cae8ff',
|
|
130
130
|
},
|
|
131
131
|
gray: {
|
|
@@ -142,88 +142,88 @@ exports.palette = {
|
|
|
142
142
|
1000: '#fdfdfe',
|
|
143
143
|
},
|
|
144
144
|
green: {
|
|
145
|
-
'000': '#
|
|
146
|
-
100: '#
|
|
147
|
-
200: '#
|
|
148
|
-
300: '#
|
|
149
|
-
400: '#
|
|
150
|
-
500: '#
|
|
151
|
-
600: '#
|
|
152
|
-
700: '#
|
|
153
|
-
800: '#
|
|
154
|
-
900: '#
|
|
145
|
+
'000': '#1a2b20',
|
|
146
|
+
100: '#1d3b27',
|
|
147
|
+
200: '#255232',
|
|
148
|
+
300: '#256936',
|
|
149
|
+
400: '#2e853f',
|
|
150
|
+
500: '#38a04b',
|
|
151
|
+
600: '#4ab959',
|
|
152
|
+
700: '#65d372',
|
|
153
|
+
800: '#8ae592',
|
|
154
|
+
900: '#b9f0bd',
|
|
155
155
|
},
|
|
156
156
|
orange: {
|
|
157
|
-
'000': '#
|
|
158
|
-
100: '#
|
|
159
|
-
200: '#
|
|
160
|
-
300: '#
|
|
161
|
-
400: '#
|
|
162
|
-
500: '#
|
|
163
|
-
600: '#
|
|
164
|
-
700: '#
|
|
165
|
-
800: '#
|
|
166
|
-
900: '#
|
|
157
|
+
'000': '#2e1e17',
|
|
158
|
+
100: '#472a1d',
|
|
159
|
+
200: '#66361f',
|
|
160
|
+
300: '#8f4824',
|
|
161
|
+
400: '#ad5a2b',
|
|
162
|
+
500: '#d67233',
|
|
163
|
+
600: '#eb853d',
|
|
164
|
+
700: '#f5a35b',
|
|
165
|
+
800: '#fcc279',
|
|
166
|
+
900: '#fcd49f',
|
|
167
167
|
},
|
|
168
168
|
pink: {
|
|
169
|
-
'000': '#
|
|
170
|
-
100: '#
|
|
171
|
-
200: '#
|
|
172
|
-
300: '#
|
|
169
|
+
'000': '#3d182f',
|
|
170
|
+
100: '#571e40',
|
|
171
|
+
200: '#782a57',
|
|
172
|
+
300: '#9c356e',
|
|
173
173
|
400: '#bf4b8a',
|
|
174
|
-
500: '#
|
|
175
|
-
600: '#
|
|
174
|
+
500: '#de62a4',
|
|
175
|
+
600: '#f77ebd',
|
|
176
176
|
700: '#ff9bce',
|
|
177
177
|
800: '#ffbedd',
|
|
178
|
-
900: '#
|
|
178
|
+
900: '#ffcfe6',
|
|
179
179
|
},
|
|
180
180
|
primary: {
|
|
181
|
-
'000': '#
|
|
182
|
-
100: '#
|
|
183
|
-
200: '#
|
|
184
|
-
300: '#
|
|
185
|
-
400: '#
|
|
186
|
-
500: '#
|
|
187
|
-
600: '#
|
|
188
|
-
700: '#
|
|
181
|
+
'000': '#1b183d',
|
|
182
|
+
100: '#201d52',
|
|
183
|
+
200: '#2a2375',
|
|
184
|
+
300: '#342a9c',
|
|
185
|
+
400: '#4436c7',
|
|
186
|
+
500: '#5c49eb',
|
|
187
|
+
600: '#7766e8',
|
|
188
|
+
700: '#a498ed',
|
|
189
189
|
800: '#c9c2f2',
|
|
190
190
|
900: '#e4e0f5',
|
|
191
191
|
},
|
|
192
192
|
purple: {
|
|
193
|
-
'000': '#
|
|
194
|
-
100: '#
|
|
195
|
-
200: '#
|
|
193
|
+
'000': '#2b1d47',
|
|
194
|
+
100: '#3c2563',
|
|
195
|
+
200: '#553096',
|
|
196
196
|
300: '#6e40c9',
|
|
197
197
|
400: '#8957e5',
|
|
198
198
|
500: '#a371f7',
|
|
199
199
|
600: '#bc8cff',
|
|
200
200
|
700: '#d2a8ff',
|
|
201
201
|
800: '#e2c5ff',
|
|
202
|
-
900: '#
|
|
202
|
+
900: '#e9d6ff',
|
|
203
203
|
},
|
|
204
204
|
red: {
|
|
205
|
-
'000': '#
|
|
206
|
-
100: '#
|
|
207
|
-
200: '#
|
|
208
|
-
300: '#
|
|
209
|
-
400: '#
|
|
210
|
-
500: '#
|
|
211
|
-
600: '#
|
|
212
|
-
700: '#
|
|
213
|
-
800: '#
|
|
214
|
-
900: '#
|
|
205
|
+
'000': '#3d1515',
|
|
206
|
+
100: '#541c1f',
|
|
207
|
+
200: '#732225',
|
|
208
|
+
300: '#962926',
|
|
209
|
+
400: '#bd3939',
|
|
210
|
+
500: '#e0514a',
|
|
211
|
+
600: '#f76f65',
|
|
212
|
+
700: '#ff8d82',
|
|
213
|
+
800: '#ffb1a8',
|
|
214
|
+
900: '#ffd2cc',
|
|
215
215
|
},
|
|
216
216
|
yellow: {
|
|
217
|
-
'000': '#
|
|
218
|
-
100: '#
|
|
219
|
-
200: '#
|
|
220
|
-
300: '#
|
|
221
|
-
400: '#
|
|
222
|
-
500: '#
|
|
223
|
-
600: '#
|
|
224
|
-
700: '#
|
|
225
|
-
800: '#
|
|
226
|
-
900: '#
|
|
217
|
+
'000': '#30250a',
|
|
218
|
+
100: '#473510',
|
|
219
|
+
200: '#664b14',
|
|
220
|
+
300: '#856018',
|
|
221
|
+
400: '#a3751a',
|
|
222
|
+
500: '#bf8a1f',
|
|
223
|
+
600: '#d4a035',
|
|
224
|
+
700: '#e8bb51',
|
|
225
|
+
800: '#f2d06d',
|
|
226
|
+
900: '#fae296',
|
|
227
227
|
},
|
|
228
228
|
white: '#fff',
|
|
229
229
|
black: '#0d1117',
|
|
@@ -2,6 +2,7 @@ export declare const lightTheme: {
|
|
|
2
2
|
background: {
|
|
3
3
|
default: string;
|
|
4
4
|
canvas: string;
|
|
5
|
+
screen: string;
|
|
5
6
|
secondary: string;
|
|
6
7
|
tertiary: string;
|
|
7
8
|
quaternary: string;
|
|
@@ -75,11 +76,21 @@ export declare const lightTheme: {
|
|
|
75
76
|
accent: string;
|
|
76
77
|
emphasis: string;
|
|
77
78
|
};
|
|
79
|
+
project: {
|
|
80
|
+
blue: string;
|
|
81
|
+
green: string;
|
|
82
|
+
yellow: string;
|
|
83
|
+
orange: string;
|
|
84
|
+
red: string;
|
|
85
|
+
pink: string;
|
|
86
|
+
purple: string;
|
|
87
|
+
};
|
|
78
88
|
};
|
|
79
89
|
export declare const darkTheme: {
|
|
80
90
|
background: {
|
|
81
91
|
default: string;
|
|
82
92
|
canvas: string;
|
|
93
|
+
screen: string;
|
|
83
94
|
secondary: string;
|
|
84
95
|
tertiary: string;
|
|
85
96
|
quaternary: string;
|
|
@@ -153,4 +164,13 @@ export declare const darkTheme: {
|
|
|
153
164
|
accent: string;
|
|
154
165
|
emphasis: string;
|
|
155
166
|
};
|
|
167
|
+
project: {
|
|
168
|
+
blue: string;
|
|
169
|
+
green: string;
|
|
170
|
+
yellow: string;
|
|
171
|
+
orange: string;
|
|
172
|
+
red: string;
|
|
173
|
+
pink: string;
|
|
174
|
+
purple: string;
|
|
175
|
+
};
|
|
156
176
|
};
|
|
@@ -6,6 +6,7 @@ exports.lightTheme = {
|
|
|
6
6
|
background: {
|
|
7
7
|
default: palette_1.palette.light.white,
|
|
8
8
|
canvas: palette_1.palette.light.gray['000'],
|
|
9
|
+
screen: palette_1.palette.light.gray[100],
|
|
9
10
|
secondary: palette_1.palette.light.gray[100],
|
|
10
11
|
tertiary: palette_1.palette.light.gray[200],
|
|
11
12
|
quaternary: palette_1.palette.light.gray[300],
|
|
@@ -79,11 +80,21 @@ exports.lightTheme = {
|
|
|
79
80
|
accent: palette_1.palette.light.primary[300],
|
|
80
81
|
emphasis: palette_1.palette.light.yellow[300],
|
|
81
82
|
},
|
|
83
|
+
project: {
|
|
84
|
+
blue: '#6299d9',
|
|
85
|
+
green: '#54a767',
|
|
86
|
+
yellow: '#e5c145',
|
|
87
|
+
orange: '#d9864c',
|
|
88
|
+
red: '#d95757',
|
|
89
|
+
pink: '#d977b2',
|
|
90
|
+
purple: '#8a66cc',
|
|
91
|
+
},
|
|
82
92
|
};
|
|
83
93
|
exports.darkTheme = {
|
|
84
94
|
background: {
|
|
85
95
|
default: palette_1.palette.dark.gray['000'],
|
|
86
96
|
canvas: palette_1.palette.dark.gray[100],
|
|
97
|
+
screen: palette_1.palette.dark.gray['000'],
|
|
87
98
|
secondary: palette_1.palette.dark.gray[200],
|
|
88
99
|
tertiary: palette_1.palette.dark.gray[300],
|
|
89
100
|
quaternary: palette_1.palette.dark.gray[400],
|
|
@@ -157,4 +168,13 @@ exports.darkTheme = {
|
|
|
157
168
|
accent: palette_1.palette.dark.primary[700],
|
|
158
169
|
emphasis: palette_1.palette.dark.yellow[300],
|
|
159
170
|
},
|
|
171
|
+
project: {
|
|
172
|
+
blue: '#395a80',
|
|
173
|
+
green: '#32633d',
|
|
174
|
+
yellow: '#8a6319',
|
|
175
|
+
orange: '#8c5731',
|
|
176
|
+
red: '#8c3838',
|
|
177
|
+
pink: '#8a4c71',
|
|
178
|
+
purple: '#4e3973',
|
|
179
|
+
},
|
|
160
180
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide-native",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.2-alpha.0",
|
|
4
4
|
"description": "Foundational styles for Expo interfaces.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"react": "*",
|
|
34
34
|
"react-native-svg": "*"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c90b726d5511e0f6600290c63c85420b7ed629c2"
|
|
37
37
|
}
|