svgl/styles/theme.js

52 lines
1.0 KiB
JavaScript
Raw Normal View History

2022-01-16 22:27:55 +00:00
import { extendTheme } from "@chakra-ui/react";
import { mode } from "@chakra-ui/theme-tools";
2022-03-03 14:48:37 +00:00
import components from "./components";
2022-01-16 22:27:55 +00:00
2022-03-03 14:48:37 +00:00
const theme = extendTheme(
{
components,
},
{
config: {
2022-03-05 17:15:53 +00:00
initialColorMode: "light",
2022-03-03 14:48:37 +00:00
useSystemColorMode: false,
},
colors: {
dark: {
50: "#fafafa",
100: "#f5f5f5",
200: "#e6e6e6",
300: "#d6d6d6",
400: "#a5a5a5",
500: "#767676",
600: "#575757",
700: "#434343",
800: "#292929",
900: "#000000",
2022-01-16 22:27:55 +00:00
},
2022-03-03 14:48:37 +00:00
lightDark: {
900: "#16161a",
},
light: {
100: "#f9f9f9",
},
},
fonts: {
2022-03-25 14:57:20 +00:00
body: "Inter-Medium, sans-serif",
2022-03-03 14:48:37 +00:00
heading: "Poppins-Regular, sans-serif",
},
styles: {
global: (props) => ({
"html, body": {
height: "100%",
maxHeight: "100vh",
2022-03-25 14:57:20 +00:00
backgroundColor: mode("gray.100", "lightDark.900")(props),
2022-03-03 14:48:37 +00:00
},
}),
borderColor: "red",
},
2022-01-16 22:27:55 +00:00
}
2022-03-03 14:48:37 +00:00
);
2022-01-16 22:27:55 +00:00
2022-03-03 14:48:37 +00:00
export default theme;