Darkmode for survey pages. Fixes for eslint.

This commit is contained in:
Desmond Grealy
2023-01-02 18:36:54 -08:00
parent 5f3d32b875
commit 3d13c7c91c
35 changed files with 4778 additions and 330 deletions
+5 -5
View File
@@ -7,8 +7,8 @@ export const colors = {
bg: "gray.900",
text: "white",
},
'dark-blue-btn': {
200: 'rgb(29,78,216)',
300: 'blue',
}
};
"dark-blue-btn": {
200: "rgb(29,78,216)",
300: "blue",
},
};
@@ -3,12 +3,12 @@ import { defineStyleConfig } from "@chakra-ui/styled-system";
const baseStyle = {};
const variants = {
'no-padding': {
"no-padding": {
padding: 0,
}
}
},
};
export const containerTheme = defineStyleConfig({
baseStyle,
variants,
})
});
+2 -3
View File
@@ -7,7 +7,6 @@ const config: ThemeConfig = {
initialColorMode: "light",
useSystemColorMode: true,
disableTransitionOnChange: false,
};
const components = {
@@ -16,12 +15,12 @@ const components = {
const styles: Styles = {
global: (props) => ({
'*': {
"*": {
transition: "background-color 200ms cubic-bezier(0.4, 0, 1, 1)",
// bg: props.colorMode === "light" ? colors.light.bg : colors.dark.bg,
// color: props.colorMode === "light" ? colors.light.text : colors.dark.text,
},
'.oa-basic-theme': {
".oa-basic-theme": {
bg: props.colorMode === "light" ? colors.light.bg : colors.dark.bg,
color: props.colorMode === "light" ? colors.light.text : colors.dark.text,
},