-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.ts
44 lines (41 loc) · 924 Bytes
/
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
// 1. import `extendTheme` function
import { ColorMode, extendTheme } from "@chakra-ui/react"; // 2. Add your color mode config
export interface ChakraConfig {
initialColorMode: ColorMode;
useSystemColorMode: boolean;
}
const config: ChakraConfig = {
initialColorMode: "dark",
useSystemColorMode: false
};
// 3. extend the
export const theme = extendTheme({
config,
layerStyles: {
cardDarkMode: {
bg: "gray.600",
color: "gray.50",
transition: "all .15s ease-in-out",
_hover: {
bg: "gray.700",
cursor: "pointer",
transform: "scale(1.010)"
}
},
cardLightMode: {
bg: "gray.50",
color: "gray.800",
transition: "all .15s ease-in-out",
_hover: {
bg: "gray.100",
cursor: "pointer",
transform: "scale(1.010)"
}
}
},
textStyles: {
logotipo: {
fontFamily: "Pacifico"
}
}
});