diff --git a/src/app/App.js b/src/app/App.js index 477da72..cfa0ee2 100644 --- a/src/app/App.js +++ b/src/app/App.js @@ -42,6 +42,7 @@ const theme = extendTheme({ height: "100%", }, body: { + background: mode("gray.50", "gray.800")(props), color: mode("green.800", "green.50")(props), transition: "all 0.25s", }, diff --git a/src/app/HomePage.js b/src/app/HomePage.js index f61ffbd..d7c6bf8 100644 --- a/src/app/HomePage.js +++ b/src/app/HomePage.js @@ -15,7 +15,12 @@ import { import { useHistory, useLocation } from "react-router-dom"; import { useLazyQuery } from "@apollo/client"; -import { Heading1, useLocalStorage, usePageTitle } from "./util"; +import { + Heading1, + useCommonStyles, + useLocalStorage, + usePageTitle, +} from "./util"; import OutfitPreview from "./components/OutfitPreview"; import SpeciesColorPicker from "./components/SpeciesColorPicker"; @@ -207,6 +212,7 @@ function SubmitPetForm() { import("./WardrobePage"); }; + const { brightBackground } = useCommonStyles(); const inputBorderColor = useColorModeValue("green.600", "green.500"); const inputBorderColorHover = useColorModeValue("green.400", "green.300"); const buttonBgColor = useColorModeValue("green.600", "green.300"); @@ -225,6 +231,7 @@ function SubmitPetForm() { aria-label="Enter a pet's name" borderColor={inputBorderColor} _hover={{ borderColor: inputBorderColorHover }} + background={brightBackground} boxShadow="md" width="14em" className={css` @@ -252,12 +259,16 @@ function SubmitPetForm() { } function FeedbackFormSection() { + const { brightBackground } = useCommonStyles(); const pitchBorderColor = useColorModeValue("gray.300", "green.400"); const formBorderColor = useColorModeValue("gray.300", "blue.400"); return ( - + {children} @@ -379,6 +392,8 @@ function FeedbackForm() { [content, email, toast] ); + const { brightBackground } = useCommonStyles(); + return ( setEmail(e.target.value)} + background={brightBackground} />