-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.tsx
115 lines (109 loc) · 2.16 KB
/
theme.tsx
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
import { createTheme } from "@shopify/restyle";
const palette = {
purpleLight: "#8C6FF7",
purplePrimary: "#5A31F4",
purpleDark: "#3F22AB",
greenLight: "#56DCBA",
greenPrimary: "#0ECD9D",
greenDark: "#0A906E",
black: "#0B0B0B",
white: "#F0F2F3",
grayDark: "#888",
grayLight: "#F1F4F5",
yellow: "#FFD60A",
red: "#FF5B37",
};
const theme = createTheme({
colors: {
mainBackground: palette.white,
cardPrimaryBackground: palette.grayLight,
greenPrimary: palette.purpleLight,
black: palette.black,
white: palette.white,
iconColor: palette.grayDark,
placeholderText: palette.grayDark,
grayLight: palette.grayLight,
grayDark: palette.grayDark,
text: palette.black,
primary: palette.greenDark,
secondary: palette.purplePrimary,
borderPrimary: palette.grayLight,
borderSecondary: palette.greenLight,
success: palette.greenLight,
warning: palette.yellow,
destructive: palette.red,
},
borderRadius: {
s: 4,
m: 10,
l: 25,
xl: 75,
},
spacing: {
s: 8,
m: 14,
l: 18,
xl: 30,
},
textVariants: {
header: {
fontWeight: "bold",
fontSize: 24,
},
title: {
fontSize: 18,
lineHeight: 24,
},
body: {
fontSize: 14,
lineHeight: 24,
color: "grayDark",
},
button: {
fontSize: 14,
lineHeight: 24,
color: "white",
},
defaults: {
fontSize: 16,
color: "black",
},
},
borderRadii: {
s: 4,
m: 10,
l: 25,
xl: 75,
},
cardVariants: {
elevated: {
borderRadius: "s",
padding: "s",
},
defaults: {
padding: "m",
borderRadius: "m",
},
},
});
export type Theme = typeof theme;
export default theme;
export const darkTheme: Theme = {
...theme,
colors: {
...theme.colors,
mainBackground: palette.white,
cardPrimaryBackground: palette.grayDark,
greenPrimary: palette.purpleLight,
iconColor: palette.grayLight,
placeholderText: palette.grayLight,
text: palette.white,
},
textVariants: {
...theme.textVariants,
defaults: {
...theme.textVariants.header,
color: "white",
},
},
};