forked from thedaviddelta/lingva-translate
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
45 lines (43 loc) · 1.17 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
import { extendTheme } from "@chakra-ui/react";
import { mode, StyleFunctionProps } from "@chakra-ui/theme-tools";
const forceDefaultTheme = process.env["NEXT_PUBLIC_FORCE_DEFAULT_THEME"];
export default extendTheme({
styles: {
global: {
"html, body, #__next": {
height: "100%"
},
"#__next": {
isolation: "isolate"
}
}
},
colors: {
lingva: {
50: "#e7f5ed",
100: "#bde3cb",
200: "#92d1ab",
300: "#64c08a",
400: "#3cb372",
500: "#00a659",
600: "#009750",
700: "#008544",
800: "#007439",
900: "#005525"
}
},
config: {
initialColorMode: forceDefaultTheme === "light" || forceDefaultTheme === "dark" ? forceDefaultTheme : "system"
},
components: {
Select: {
variants: {
flushed: (props: StyleFunctionProps) => ({
field: {
borderColor: mode("lingva.500", "lingva.200")(props)
}
})
}
}
}
});