forked from kriasoft/graphql-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy paththeme.ts
57 lines (52 loc) · 1.09 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
55
56
57
/**
* @copyright 2016-present Kriasoft (https://git.io/vMINh)
*/
const palette = Object.freeze({
primary: "#3f51b5",
secondary: "#303f9f",
text: Object.freeze({
primary: "",
secondary: "",
disabled: "",
}),
});
const typography = Object.freeze({
fontFamily: [
"-apple-system",
"BlinkMacSystemFont",
'"Segoe UI"',
"Roboto",
'"Helvetica Neue"',
"Arial",
"sans-serif",
].join(","),
});
export interface Theme {
mode: "light" | "dark";
palette: typeof palette;
typography: typeof typography;
}
export const lightTheme: Theme = Object.freeze({
mode: "light",
palette: Object.freeze({
...palette,
text: Object.freeze({
primary: "rgba(0, 0, 0, 0.87)",
secondary: "rgba(0, 0, 0, 0.54)",
disabled: "rgba(0, 0, 0, 0.12)",
}),
}),
typography,
});
export const darkTheme: Theme = Object.freeze({
mode: "dark",
palette: Object.freeze({
...palette,
text: Object.freeze({
primary: "#fff",
secondary: "rgba(255, 255, 255, 0.7)",
disabled: "rgba(255, 255, 255, 0.5)",
}),
}),
typography,
});