From e27f7057314070c4ac79e6e7c545b3fd7c712793 Mon Sep 17 00:00:00 2001 From: southclaws Date: Wed, 29 Nov 2023 16:08:09 +0000 Subject: [PATCH] remove chakra defaults and fix button/link styles by removing borders until chakra is gone --- web/src/app/providers.tsx | 23 +++- .../theme/components/Button/button.recipe.ts | 12 +- .../theme/components/Input/input.recipe.ts | 9 +- web/src/theme/components/Link/link.recipe.ts | 13 ++- web/src/theme/index.ts | 107 ------------------ 5 files changed, 47 insertions(+), 117 deletions(-) delete mode 100644 web/src/theme/index.ts diff --git a/web/src/app/providers.tsx b/web/src/app/providers.tsx index e3dd9c879..2ea1833b8 100644 --- a/web/src/app/providers.tsx +++ b/web/src/app/providers.tsx @@ -1,11 +1,10 @@ "use client"; import { CacheProvider } from "@chakra-ui/next-js"; -import { ChakraProvider } from "@chakra-ui/react"; +import { ChakraProvider, extendTheme } from "@chakra-ui/react"; import { PropsWithChildren } from "react"; import { AuthProvider } from "src/auth/AuthProvider"; -import { extended } from "src/theme"; // Force chakra to always be light mode - because we're removing it eventually. type ColourMode = "light" | "dark"; @@ -24,7 +23,25 @@ export function Providers({ children }: PropsWithChildren) { return (