This repository was archived by the owner on May 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy paththeme.ts
More file actions
91 lines (84 loc) · 1.68 KB
/
theme.ts
File metadata and controls
91 lines (84 loc) · 1.68 KB
1
2
3
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import { extendTheme, ITheme } from 'native-base';
/**
* Learn more about extending/customizing theme:
* https://docs.nativebase.io/default-theme
* https://docs.nativebase.io/customizing-theme
* https://docs.nativebase.io/customizing-components
* https://docs.nativebase.io/utility-props#style-props
* https://reactnavigation.org/docs/themes/
*/
const schema = {
50: '#f8fafc',
100: '#f1f5f9',
200: '#e2e8f0',
300: '#cbd5e1',
400: '#818cf8',
500: '#4f46e5',
600: '#0284c7',
700: '#004282',
800: '#002851',
900: '#000e21',
};
const dark = {
primary: schema[300],
background: schema[900],
card: schema[900],
text: schema[50],
border: schema[400],
notification: schema[400],
};
const light = {
primary: schema[700],
background: schema[50],
card: schema[50],
text: schema[900],
border: schema[600],
notification: schema[600],
};
export const theme: ITheme = extendTheme({
config: {
useSystemColorMode: true,
initialColorMode: 'light',
},
colors: {
primary: schema,
text: schema,
dark: dark,
light: light,
},
fonts: {},
components: {
Button: {
defaultProps: {
colorScheme: 'primary',
variant: 'solid',
},
},
Input: {
defaultProps: {
colorScheme: 'primary',
variant: 'filled',
},
},
Select: {
defaultProps: {
colorScheme: 'primary',
variant: 'filled',
},
},
ModalContent: {
baseStyle: {
_light: { bg: 'primary.50' },
_dark: { bg: 'primary.900' },
},
},
},
});
export const navLightTheme = {
dark: false,
colors: light,
};
export const navDarkTheme = {
dark: true,
colors: dark,
};