-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThemeColor.js
More file actions
39 lines (37 loc) · 763 Bytes
/
ThemeColor.js
File metadata and controls
39 lines (37 loc) · 763 Bytes
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
export const ThemeColors = {
primary: '#6200EE',
primaryVariant: '#3700B3',
secondary: '#57DAFB',
secondaryVariant: '#00a8c8',
background: {
light: '#FFFFFF',
dark: '#121212',
},
surface: {
light: "#FFFFFF",
dark: "#1E1E1E"
},
topSurface: {
light: "#FFFFFF",
dark: "#353535"
},
onPrimary: '#FFFFFF',
onSecondary: '#000000',
onBackground: {
light: '#000000',
dark: '#FFFFFF',
},
onSurface: {
light: '#000000',
dark: '#FFFFFF',
},
};
export default getTheme = (mode) => {
let Theme = {};
for (let key in ThemeColors) {
if (ThemeColors[key][mode]) Theme[key] = ThemeColors[key][mode];
else Theme[key] = ThemeColors[key];
}
Theme.isLight = mode === "light";
return Theme;
};