forked from thedaviddelta/lingva-translate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
47 lines (46 loc) · 1.27 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
import { extendTheme } from "@chakra-ui/react";
import { mode } from "@chakra-ui/theme-tools";
export default extendTheme({
colors: {
lingva: {
50: "#e7f5ed",
100: "#bde3cb",
200: "#92d1ab",
300: "#64c08a",
400: "#3cb372",
500: "#00a659",
600: "#009750",
700: "#008544",
800: "#007439",
900: "#005525"
}
},
config: {
initialColorMode: process.env["DEFAULT_DARK_THEME"] === "true" ? "dark" : "light",
useSystemColorMode: false
},
components: {
Textarea: {
variants: {
outline: props => ({
borderColor: mode("lingva.500", "lingva.200")(props),
_hover: {
borderColor: mode("lingva.700", "lingva.400")(props),
},
_readOnly: {
userSelect: "auto"
}
})
}
},
Select: {
variants: {
flushed: props => ({
field: {
borderColor: mode("lingva.500", "lingva.200")(props)
}
})
}
}
}
});