pre-commit lint

This commit is contained in:
Lucian Petri
2022-12-30 03:19:36 +02:00
parent 4d53bbe7a8
commit 53673d2aa3
7 changed files with 60 additions and 63 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
export const colors = {
light: {
bg: "gray.100",
text: "black"
text: "black",
},
dark: {
bg: "gray.900",
text: "white"
text: "white",
},
};
@@ -1,13 +1,13 @@
import { color, defineStyle, defineStyleConfig, transition } from "@chakra-ui/styled-system"
import { colors } from "../colors"
import { color, defineStyle, defineStyleConfig, transition } from "@chakra-ui/styled-system";
import { colors } from "../colors";
const baseStyle = defineStyle(({colorMode}) => ({
const baseStyle = defineStyle(({ colorMode }) => ({
minWidth: "100%",
bg: colorMode === "light" ? colors.light.bg : colors.dark.bg,
transition: "background-color 200ms cubic-bezier(0.4, 0, 1, 1)",
color: colorMode === "light" ? colors.light.text : colors.dark.text,
}))
}));
export const containerTheme = defineStyleConfig({
baseStyle,
})
});