diff --git a/gatsby-config.ts b/gatsby-config.ts index 4583437a394..f38438bdd9e 100644 --- a/gatsby-config.ts +++ b/gatsby-config.ts @@ -177,12 +177,6 @@ const config: GatsbyConfig = { }, }, // CSS in JS - { - resolve: `gatsby-plugin-emotion`, - options: { - labelFormat: "[filename]--[local]", - }, - }, { resolve: "@chakra-ui/gatsby-plugin", options: { diff --git a/package.json b/package.json index 6894990e7cf..3de1dbffef9 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,6 @@ "focus-trap-react": "^10.0.0", "framer-motion": "^6.5.1", "gatsby": "^5.4.1", - "gatsby-plugin-emotion": "^8.4.0", "gatsby-plugin-gatsby-cloud": "^5.4.0", "gatsby-plugin-image": "^3.4.0", "gatsby-plugin-layout": "^3.24.0", diff --git a/src/components/Layout.tsx b/src/components/Layout.tsx index 6af89be19cd..12fe2537ef2 100644 --- a/src/components/Layout.tsx +++ b/src/components/Layout.tsx @@ -1,12 +1,7 @@ import React, { useState, useEffect } from "react" import { ApolloProvider } from "@apollo/client" -import { useColorModeValue, Text } from "@chakra-ui/react" -import { ThemeProvider } from "@emotion/react" - import { Flex } from "@chakra-ui/react" -import { lightTheme, darkTheme } from "../theme" - import Footer from "./Footer" import ZenMode from "./ZenMode" import Nav from "./Nav" @@ -18,6 +13,7 @@ import FeedbackWidget from "./FeedbackWidget" import { SkipLink } from "./SkipLink" import { ZenModeContext } from "../contexts/ZenModeContext" +import { lightTheme as oldTheme } from "../theme" import { useKeyPress } from "../hooks/useKeyPress" @@ -55,9 +51,6 @@ const Layout: React.FC = ({ pageContext, children, }) => { - // TODO: tmp - for backward compatibility with old theme - const theme = useColorModeValue(lightTheme, darkTheme) - const [isZenMode, setIsZenMode] = useState(false) const [shouldShowSideNav, setShouldShowSideNav] = useState(false) @@ -108,63 +101,61 @@ const Layout: React.FC = ({ return ( - - - - - - + + + + + + + +