@expo/styleguide 4.4.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/components/BlockingSetInitialColorMode.js +2 -2
- package/dist/components/ThemeProvider.js +3 -3
- package/dist/expo-theme.css +225 -514
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -3
- package/dist/styles/palette.d.ts +194 -222
- package/dist/styles/palette.js +41 -222
- package/dist/styles/shadows.d.ts +5 -8
- package/dist/styles/shadows.js +5 -8
- package/dist/styles/sizing.d.ts +15 -9
- package/dist/styles/sizing.js +15 -9
- package/dist/styles/themes.d.ts +381 -265
- package/dist/styles/themes.js +404 -285
- package/dist/styles/typography.js +10 -10
- package/package.json +5 -2
- package/tailwind.js +11 -10
- package/dist/styles/legacy-colors.d.ts +0 -122
- package/dist/styles/legacy-colors.js +0 -148
|
@@ -299,7 +299,7 @@ const body = {
|
|
|
299
299
|
};
|
|
300
300
|
const utility = {
|
|
301
301
|
anchor: {
|
|
302
|
-
color: themes_1.theme.link
|
|
302
|
+
color: themes_1.theme.text.link,
|
|
303
303
|
fontWeight: 400,
|
|
304
304
|
textDecoration: 'none',
|
|
305
305
|
cursor: 'pointer',
|
|
@@ -307,7 +307,7 @@ const utility = {
|
|
|
307
307
|
// transform prevents a 1px shift on hover on Safari
|
|
308
308
|
transform: 'translate3d(0,0,0)',
|
|
309
309
|
':visited': {
|
|
310
|
-
color: themes_1.theme.link
|
|
310
|
+
color: themes_1.theme.text.link,
|
|
311
311
|
},
|
|
312
312
|
':hover': {
|
|
313
313
|
transition: '200ms',
|
|
@@ -318,9 +318,9 @@ const utility = {
|
|
|
318
318
|
...body.code,
|
|
319
319
|
fontWeight: 400,
|
|
320
320
|
display: 'inline-block',
|
|
321
|
-
backgroundColor: themes_1.theme.background.
|
|
321
|
+
backgroundColor: themes_1.theme.background.subtle,
|
|
322
322
|
border: `1px solid ${themes_1.theme.border.default}`,
|
|
323
|
-
borderRadius: sizing_1.borderRadius.
|
|
323
|
+
borderRadius: sizing_1.borderRadius.md,
|
|
324
324
|
padding: '2px 4px',
|
|
325
325
|
lineHeight: '130%',
|
|
326
326
|
},
|
|
@@ -328,18 +328,18 @@ const utility = {
|
|
|
328
328
|
...body.code,
|
|
329
329
|
fontWeight: 400,
|
|
330
330
|
display: 'inline-block',
|
|
331
|
-
backgroundColor: themes_1.darkTheme.background.
|
|
331
|
+
backgroundColor: themes_1.darkTheme.background.subtle,
|
|
332
332
|
color: themes_1.darkTheme.text.default,
|
|
333
333
|
border: `1px solid ${themes_1.darkTheme.border.default}`,
|
|
334
|
-
borderRadius: sizing_1.borderRadius.
|
|
334
|
+
borderRadius: sizing_1.borderRadius.md,
|
|
335
335
|
padding: '2px 4px',
|
|
336
336
|
lineHeight: '130%',
|
|
337
337
|
},
|
|
338
338
|
pre: {
|
|
339
339
|
...body.code,
|
|
340
340
|
fontWeight: 400,
|
|
341
|
-
backgroundColor: themes_1.theme.background.
|
|
342
|
-
borderRadius: sizing_1.borderRadius.
|
|
341
|
+
backgroundColor: themes_1.theme.background.subtle,
|
|
342
|
+
borderRadius: sizing_1.borderRadius.md,
|
|
343
343
|
border: `1px solid ${themes_1.theme.border.default}`,
|
|
344
344
|
padding: spacing_1.spacing[4],
|
|
345
345
|
whiteSpace: 'pre-wrap',
|
|
@@ -348,9 +348,9 @@ const utility = {
|
|
|
348
348
|
terminalPre: {
|
|
349
349
|
...body.code,
|
|
350
350
|
fontWeight: 400,
|
|
351
|
-
backgroundColor: themes_1.darkTheme.background.
|
|
351
|
+
backgroundColor: themes_1.darkTheme.background.subtle,
|
|
352
352
|
color: themes_1.darkTheme.text.default,
|
|
353
|
-
borderRadius: sizing_1.borderRadius.
|
|
353
|
+
borderRadius: sizing_1.borderRadius.md,
|
|
354
354
|
border: `1px solid ${themes_1.darkTheme.border.default}`,
|
|
355
355
|
padding: spacing_1.spacing[4],
|
|
356
356
|
margin: `${spacing_1.spacing[4]}px 0`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/styleguide",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Foundational styles for Expo interfaces.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,5 +42,8 @@
|
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": "*"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "94bfdec4905cfc8fa2c2540ed672219ec6949246"
|
|
45
|
+
"gitHead": "94bfdec4905cfc8fa2c2540ed672219ec6949246",
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@radix-ui/colors": "^0.1.8"
|
|
48
|
+
}
|
|
46
49
|
}
|
package/tailwind.js
CHANGED
|
@@ -8,23 +8,24 @@ const {
|
|
|
8
8
|
/** @type {import('tailwindcss').Config} */
|
|
9
9
|
module.exports = {
|
|
10
10
|
theme: {
|
|
11
|
-
borderRadius
|
|
11
|
+
borderRadius: {
|
|
12
|
+
...borderRadius,
|
|
13
|
+
DEFAULT: borderRadius.md,
|
|
14
|
+
},
|
|
12
15
|
backgroundColor: theme.background,
|
|
13
16
|
borderColor: theme.border,
|
|
14
17
|
colors: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
status: theme.status,
|
|
18
|
-
code: theme.code,
|
|
19
|
-
icon: theme.icon,
|
|
18
|
+
transparent: "transparent",
|
|
19
|
+
current: "currentColor",
|
|
20
20
|
default: theme.text.default,
|
|
21
21
|
secondary: theme.text.secondary,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
tertiary: theme.text.tertiary,
|
|
23
|
+
quaternary: theme.text.quaternary,
|
|
24
24
|
success: theme.text.success,
|
|
25
|
+
warning: theme.text.warning,
|
|
26
|
+
danger: theme.text.danger,
|
|
25
27
|
info: theme.text.info,
|
|
26
|
-
|
|
27
|
-
project: theme.project,
|
|
28
|
+
...theme,
|
|
28
29
|
},
|
|
29
30
|
boxShadow: shadows,
|
|
30
31
|
fontFamily: {
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
export declare const legacyColors: {
|
|
2
|
-
semantic: {
|
|
3
|
-
border: string;
|
|
4
|
-
background: string;
|
|
5
|
-
success: string;
|
|
6
|
-
error: string;
|
|
7
|
-
warning: string;
|
|
8
|
-
link: string;
|
|
9
|
-
text: string;
|
|
10
|
-
dark: {
|
|
11
|
-
border: string;
|
|
12
|
-
background: string;
|
|
13
|
-
success: string;
|
|
14
|
-
error: string;
|
|
15
|
-
warning: string;
|
|
16
|
-
link: string;
|
|
17
|
-
text: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
blue: {
|
|
21
|
-
'000': string;
|
|
22
|
-
100: string;
|
|
23
|
-
200: string;
|
|
24
|
-
300: string;
|
|
25
|
-
400: string;
|
|
26
|
-
500: string;
|
|
27
|
-
600: string;
|
|
28
|
-
700: string;
|
|
29
|
-
800: string;
|
|
30
|
-
900: string;
|
|
31
|
-
};
|
|
32
|
-
gray: {
|
|
33
|
-
'000': string;
|
|
34
|
-
100: string;
|
|
35
|
-
200: string;
|
|
36
|
-
300: string;
|
|
37
|
-
400: string;
|
|
38
|
-
500: string;
|
|
39
|
-
600: string;
|
|
40
|
-
700: string;
|
|
41
|
-
800: string;
|
|
42
|
-
900: string;
|
|
43
|
-
1000: string;
|
|
44
|
-
};
|
|
45
|
-
green: {
|
|
46
|
-
'000': string;
|
|
47
|
-
100: string;
|
|
48
|
-
200: string;
|
|
49
|
-
300: string;
|
|
50
|
-
400: string;
|
|
51
|
-
500: string;
|
|
52
|
-
600: string;
|
|
53
|
-
700: string;
|
|
54
|
-
800: string;
|
|
55
|
-
900: string;
|
|
56
|
-
};
|
|
57
|
-
orange: {
|
|
58
|
-
'000': string;
|
|
59
|
-
100: string;
|
|
60
|
-
200: string;
|
|
61
|
-
300: string;
|
|
62
|
-
400: string;
|
|
63
|
-
500: string;
|
|
64
|
-
600: string;
|
|
65
|
-
700: string;
|
|
66
|
-
800: string;
|
|
67
|
-
900: string;
|
|
68
|
-
};
|
|
69
|
-
pink: {
|
|
70
|
-
'000': string;
|
|
71
|
-
100: string;
|
|
72
|
-
200: string;
|
|
73
|
-
300: string;
|
|
74
|
-
400: string;
|
|
75
|
-
500: string;
|
|
76
|
-
600: string;
|
|
77
|
-
700: string;
|
|
78
|
-
800: string;
|
|
79
|
-
900: string;
|
|
80
|
-
};
|
|
81
|
-
primary: {
|
|
82
|
-
100: string;
|
|
83
|
-
200: string;
|
|
84
|
-
300: string;
|
|
85
|
-
400: string;
|
|
86
|
-
500: string;
|
|
87
|
-
600: string;
|
|
88
|
-
700: string;
|
|
89
|
-
800: string;
|
|
90
|
-
900: string;
|
|
91
|
-
1000: string;
|
|
92
|
-
};
|
|
93
|
-
red: {
|
|
94
|
-
'000': string;
|
|
95
|
-
100: string;
|
|
96
|
-
200: string;
|
|
97
|
-
300: string;
|
|
98
|
-
400: string;
|
|
99
|
-
500: string;
|
|
100
|
-
600: string;
|
|
101
|
-
700: string;
|
|
102
|
-
800: string;
|
|
103
|
-
900: string;
|
|
104
|
-
};
|
|
105
|
-
yellow: {
|
|
106
|
-
'000': string;
|
|
107
|
-
100: string;
|
|
108
|
-
200: string;
|
|
109
|
-
300: string;
|
|
110
|
-
400: string;
|
|
111
|
-
500: string;
|
|
112
|
-
600: string;
|
|
113
|
-
700: string;
|
|
114
|
-
800: string;
|
|
115
|
-
900: string;
|
|
116
|
-
};
|
|
117
|
-
black: string;
|
|
118
|
-
white: string;
|
|
119
|
-
beige: string;
|
|
120
|
-
navy: string;
|
|
121
|
-
lila: string;
|
|
122
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.legacyColors = void 0;
|
|
4
|
-
const gray = {
|
|
5
|
-
'000': '#FDFDFE',
|
|
6
|
-
100: '#F8F8FA',
|
|
7
|
-
200: '#F0F1F2',
|
|
8
|
-
300: '#E1E4E8',
|
|
9
|
-
400: '#D1D5DA',
|
|
10
|
-
500: '#B7BBBF',
|
|
11
|
-
600: '#6C737C',
|
|
12
|
-
700: '#596068',
|
|
13
|
-
800: '#464D55',
|
|
14
|
-
900: '#30363C',
|
|
15
|
-
1000: '#25292E',
|
|
16
|
-
};
|
|
17
|
-
const green = {
|
|
18
|
-
'000': '#f0fff4',
|
|
19
|
-
100: '#dcffe4',
|
|
20
|
-
200: '#bef5cb',
|
|
21
|
-
300: '#85e89d',
|
|
22
|
-
400: '#34d058',
|
|
23
|
-
500: '#28a745',
|
|
24
|
-
600: '#22863a',
|
|
25
|
-
700: '#176f2c',
|
|
26
|
-
800: '#165c26',
|
|
27
|
-
900: '#144620',
|
|
28
|
-
};
|
|
29
|
-
const red = {
|
|
30
|
-
'000': '#ffeef0',
|
|
31
|
-
100: '#ffdce0',
|
|
32
|
-
200: '#fdaeb7',
|
|
33
|
-
300: '#f97583',
|
|
34
|
-
400: '#ea4a5a',
|
|
35
|
-
500: '#d73a49',
|
|
36
|
-
600: '#cb2431',
|
|
37
|
-
700: '#b31d28',
|
|
38
|
-
800: '#9e1c23',
|
|
39
|
-
900: '#86181d',
|
|
40
|
-
};
|
|
41
|
-
const yellow = {
|
|
42
|
-
'000': '#fffdef',
|
|
43
|
-
100: '#fffbdd',
|
|
44
|
-
200: '#fff5b1',
|
|
45
|
-
300: '#ffea7f',
|
|
46
|
-
400: '#ffdf5d',
|
|
47
|
-
500: '#ffd33d',
|
|
48
|
-
600: '#f9c513',
|
|
49
|
-
700: '#dbab09',
|
|
50
|
-
800: '#b08800',
|
|
51
|
-
900: '#735c0f',
|
|
52
|
-
};
|
|
53
|
-
const blue = {
|
|
54
|
-
'000': '#f1f8ff',
|
|
55
|
-
100: '#dbedff',
|
|
56
|
-
200: '#c8e1ff',
|
|
57
|
-
300: '#79b8ff',
|
|
58
|
-
400: '#2188ff',
|
|
59
|
-
500: '#0366d6',
|
|
60
|
-
600: '#005cc5',
|
|
61
|
-
700: '#044289',
|
|
62
|
-
800: '#032f62',
|
|
63
|
-
900: '#05264c',
|
|
64
|
-
};
|
|
65
|
-
const purple = {
|
|
66
|
-
'000': '#f5f0ff',
|
|
67
|
-
100: '#e6dcfd',
|
|
68
|
-
200: '#d1bcf9',
|
|
69
|
-
300: '#b392f0',
|
|
70
|
-
400: '#8a63d2',
|
|
71
|
-
500: '#6f42c1',
|
|
72
|
-
600: '#5a32a3',
|
|
73
|
-
700: '#4c2889',
|
|
74
|
-
800: '#3a1d6e',
|
|
75
|
-
900: '#29134e',
|
|
76
|
-
};
|
|
77
|
-
const orange = {
|
|
78
|
-
'000': '#fff8f2',
|
|
79
|
-
100: '#ffebda',
|
|
80
|
-
200: '#ffd1ac',
|
|
81
|
-
300: '#ffab70',
|
|
82
|
-
400: '#fb8532',
|
|
83
|
-
500: '#f66a0a',
|
|
84
|
-
600: '#e36209',
|
|
85
|
-
700: '#d15704',
|
|
86
|
-
800: '#c24e00',
|
|
87
|
-
900: '#a04100',
|
|
88
|
-
};
|
|
89
|
-
const pink = {
|
|
90
|
-
'000': '#ffeef8',
|
|
91
|
-
100: '#fedbf0',
|
|
92
|
-
200: '#f9b3dd',
|
|
93
|
-
300: '#f692ce',
|
|
94
|
-
400: '#ec6cb9',
|
|
95
|
-
500: '#ea4aaa',
|
|
96
|
-
600: '#d03592',
|
|
97
|
-
700: '#b93a86',
|
|
98
|
-
800: '#99306f',
|
|
99
|
-
900: '#6d224f',
|
|
100
|
-
};
|
|
101
|
-
const primary = {
|
|
102
|
-
100: '#EDE9FF',
|
|
103
|
-
200: '#D2CAFD',
|
|
104
|
-
300: '#A89AF9',
|
|
105
|
-
400: '#7F6DF3',
|
|
106
|
-
500: '#4630EB',
|
|
107
|
-
600: '#3423CA',
|
|
108
|
-
700: '#2518A9',
|
|
109
|
-
800: '#190F88',
|
|
110
|
-
900: '#100970',
|
|
111
|
-
1000: '#161856',
|
|
112
|
-
};
|
|
113
|
-
const baseColors = {
|
|
114
|
-
blue,
|
|
115
|
-
gray,
|
|
116
|
-
green,
|
|
117
|
-
orange,
|
|
118
|
-
pink,
|
|
119
|
-
primary,
|
|
120
|
-
red,
|
|
121
|
-
yellow,
|
|
122
|
-
black: '#001020',
|
|
123
|
-
white: '#ffffff',
|
|
124
|
-
beige: '#F7F6F3',
|
|
125
|
-
navy: '#1A1A35',
|
|
126
|
-
lila: '#A3A1F7',
|
|
127
|
-
};
|
|
128
|
-
exports.legacyColors = {
|
|
129
|
-
...baseColors,
|
|
130
|
-
semantic: {
|
|
131
|
-
border: baseColors.gray[300],
|
|
132
|
-
background: baseColors.gray['000'],
|
|
133
|
-
success: baseColors.green[500],
|
|
134
|
-
error: baseColors.red[500],
|
|
135
|
-
warning: baseColors.yellow[700],
|
|
136
|
-
link: baseColors.primary[500],
|
|
137
|
-
text: baseColors.black,
|
|
138
|
-
dark: {
|
|
139
|
-
border: baseColors.gray[800],
|
|
140
|
-
background: baseColors.gray[1000],
|
|
141
|
-
success: baseColors.green[300],
|
|
142
|
-
error: baseColors.red[300],
|
|
143
|
-
warning: baseColors.yellow[300],
|
|
144
|
-
link: baseColors.primary[300],
|
|
145
|
-
text: baseColors.gray[100],
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
};
|