From c9603a40eaeb37f5b0f980026a334e76ee45a302 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 4 Jan 2021 09:17:30 +0000 Subject: [PATCH] tweak site bg color, to let card elements "pop" This has been bothering me for a long time, but I couldn't really figure out what to do about it. But tweaking the site bg color a smidge has helped us really add texture to the cards I want to have pop out, like the outfit polaroids! I kinda went all-in in a burst, but tbh I think it looks great :3 I haven't really touched the wardrobe page with it yet though, that'll probably need some tweaking... for now I'm overriding it to keep the old background! --- src/app/App.js | 1 + src/app/HomePage.js | 23 +++++++++++++++++++--- src/app/UserOutfitsPage.js | 18 +++++------------ src/app/WardrobePage/WardrobePageLayout.js | 8 ++++++-- src/app/components/ItemCard.js | 8 ++++---- src/app/components/WIPCallout.js | 6 ++++++ src/app/util.js | 8 +++++++- 7 files changed, 49 insertions(+), 23 deletions(-) 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} />