From 33c02d205e83a74256288acc44e7812f45fed70c Mon Sep 17 00:00:00 2001 From: Jake Jarvis Date: Mon, 28 Feb 2022 20:07:27 -0500 Subject: [PATCH] use camelCase in themes config --- components/Layout/Layout.tsx | 12 +---- lib/config/themes.ts | 87 +++++++++++++++++++----------------- package.json | 1 + pages/_document.tsx | 11 ++++- yarn.lock | 5 +++ 5 files changed, 64 insertions(+), 52 deletions(-) diff --git a/components/Layout/Layout.tsx b/components/Layout/Layout.tsx index 360aeb10..ba9a0318 100644 --- a/components/Layout/Layout.tsx +++ b/components/Layout/Layout.tsx @@ -3,7 +3,7 @@ import { useTheme } from "next-themes"; import classNames from "classnames"; import Header from "../Header/Header"; import Footer from "../Footer/Footer"; -import themes, { toCSS } from "../../lib/config/themes"; +import themes from "../../lib/config/themes"; import styles from "./Layout.module.css"; @@ -18,16 +18,8 @@ const Layout = ({ container = true, stickyHeader = true, className, children, .. return ( <> - {/* convert themes object into inlined css variables */} -