From c6a0732824d9b7eeedb05495dc784a693d3377e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20Schl=C3=A4fli?= Date: Wed, 22 Nov 2023 10:33:52 +0100 Subject: [PATCH] remove theme provider --- packages/design-system/src/ThemeProvider.tsx | 58 -------------------- 1 file changed, 58 deletions(-) delete mode 100644 packages/design-system/src/ThemeProvider.tsx diff --git a/packages/design-system/src/ThemeProvider.tsx b/packages/design-system/src/ThemeProvider.tsx deleted file mode 100644 index 123b357..0000000 --- a/packages/design-system/src/ThemeProvider.tsx +++ /dev/null @@ -1,58 +0,0 @@ -import React, { createContext } from 'react' - -type Theme = { - primaryBg: string - primaryBgMedium: string - primaryBgDark: string - primaryBgHover: string - primaryBgMediumHover: string - primaryBgDarkHover: string - primaryBorder: string - primaryBorderDark: string - primaryBorderHover: string - primaryBorderDarkHover: string - primaryBorderFocus: string - primaryBorderDarkFocus: string - primaryText: string - primaryTextHover: string - primaryProseHover: string - primaryFill: string - primaryFillHover: string -} - -interface Props { - theme?: Partial - children: React.ReactNode -} - -const BASE_THEME: Theme = { - primaryBg: 'bg-uzh-red-20', - primaryBgMedium: 'bg-uzh-red-60', - primaryBgDark: 'bg-uzh-red-80', - primaryBgHover: 'sm:hover:bg-uzh-red-20', - primaryBgMediumHover: 'sm:hover:bg-uzh-red-60', - primaryBgDarkHover: 'sm:hover:bg-uzh-red-80', - primaryBorder: 'border-uzh-red-40', - primaryBorderDark: 'border-uzh-red-80', - primaryBorderHover: 'sm:hover:border-uzh-red-40', - primaryBorderDarkHover: 'sm:hover:border-uzh-red-80', - primaryBorderFocus: 'focus:border-uzh-red-40', - primaryBorderDarkFocus: 'focus:border-uzh-red-80', - primaryText: 'text-uzh-red-100', - primaryTextHover: 'sm:hover:text-uzh-red-100', - primaryProseHover: 'sm:hover:prose-a:text-uzh-red-100', - primaryFill: 'fill-uzh-red-80', - primaryFillHover: 'sm:hover:fill-uzh-red-100', -} - -export const ThemeContext = createContext(BASE_THEME) - -export function ThemeProvider({ theme = {}, children }: Props) { - return ( - - {children} - - ) -} - -export default ThemeProvider