-
Notifications
You must be signed in to change notification settings - Fork 3
/
theme.ts
54 lines (53 loc) · 1.03 KB
/
theme.ts
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
import {extendTheme} from 'native-base';
import {Platform} from 'react-native';
export const theme = extendTheme({
colors: {
primary: {
50: '#dffef2',
100: '#b9f3de',
200: '#91ebc9',
300: '#68e1b5',
400: '#40d9a0',
500: '#26bf86',
600: '#1a9569',
700: '#0c6a4a',
800: '#01412c',
900: '#00170c',
},
},
components: {
Text: {
baseStyle: {},
defaultProps: {},
variants: {
error: {
color: 'red.500',
py: 1,
},
},
sizes: {},
},
Badge: {
defaultProps: {
rounded: 8,
px: 4,
mr: 2,
},
},
Box: {
defaultProps: {},
},
Input: {
baseStyle: ({colorMode}) => {
return {
padding: Platform.OS === 'ios' ? 4 : 2,
borderColor: colorMode === 'dark' ? 'gray.800' : 'gray.300',
backgroundColor: colorMode === 'dark' ? 'gray.800' : 'white',
};
},
},
},
config: {
useSystemColorMode: true,
},
});