From 472e02e0b03e9a755726dfa049f2ce47021c21d3 Mon Sep 17 00:00:00 2001 From: arraysid Date: Wed, 28 May 2025 00:47:28 +0700 Subject: [PATCH] refactor: clean up unused ThemeProvider code and CSS variables --- .../landing/src/app/_components/providers.tsx | 18 +------- libs/shadcn-ui/src/index.css | 43 ------------------- 2 files changed, 1 insertion(+), 60 deletions(-) diff --git a/apps/landing/src/app/_components/providers.tsx b/apps/landing/src/app/_components/providers.tsx index a8f9024..6f21b25 100644 --- a/apps/landing/src/app/_components/providers.tsx +++ b/apps/landing/src/app/_components/providers.tsx @@ -3,21 +3,9 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import type { ThemeProviderProps } from 'next-themes'; import { ReactNode } from 'react'; -// import { ThemeProvider as NextThemesProvider } from 'next-themes'; export function Providers({ children }: ThemeProviderProps) { - return ( - - {/* */} - {children} - {/* */} - - ); + return {children}; } export const queryClient = new QueryClient(); @@ -27,7 +15,3 @@ function QueryProvider({ children }: { children: ReactNode }) { {children} ); } - -// function ThemeProvider({ children, ...props }: ThemeProviderProps) { -// return {children}; -// } diff --git a/libs/shadcn-ui/src/index.css b/libs/shadcn-ui/src/index.css index efa9f02..2010ef1 100644 --- a/libs/shadcn-ui/src/index.css +++ b/libs/shadcn-ui/src/index.css @@ -140,49 +140,6 @@ --sidebar-ring: oklch(0.623 0.214 259.815); } -/* .dark { - --background: oklch(0.141 0.005 285.823); - --foreground: oklch(0.985 0 0); - --card: oklch(0.21 0.006 285.885); - --card-foreground: oklch(0.985 0 0); - --popover: oklch(0.21 0.006 285.885); - --popover-foreground: oklch(0.985 0 0); - --primary: oklch(0.546 0.245 262.881); - --primary-foreground: oklch(0.379 0.146 265.522); - --secondary: oklch(0.274 0.006 286.033); - --secondary-foreground: oklch(0.985 0 0); - --muted: oklch(0.274 0.006 286.033); - --muted-foreground: oklch(0.705 0.015 286.067); - --accent: oklch(0.274 0.006 286.033); - --accent-foreground: oklch(0.985 0 0); - --destructive: oklch(0.704 0.191 22.216); - --border: oklch(1 0 0 / 10%); - --input: oklch(1 0 0 / 15%); - --ring: oklch(0.488 0.243 264.376); - --chart-1: oklch(0.488 0.243 264.376); - --chart-2: oklch(0.696 0.17 162.48); - --chart-3: oklch(0.769 0.188 70.08); - --chart-4: oklch(0.627 0.265 303.9); - --chart-5: oklch(0.645 0.246 16.439); - --sidebar: oklch(0.21 0.006 285.885); - --sidebar-foreground: oklch(0.985 0 0); - --sidebar-primary: oklch(0.546 0.245 262.881); - --sidebar-primary-foreground: oklch(0.379 0.146 265.522); - --sidebar-accent: oklch(0.274 0.006 286.033); - --sidebar-accent-foreground: oklch(0.985 0 0); - --sidebar-border: oklch(1 0 0 / 10%); - --sidebar-ring: oklch(0.488 0.243 264.376); -} */ - -@layer base { - * { - @apply border-border outline-ring/50; - } - body { - @apply bg-background text-foreground; - } -} - /* https://github.com/tailwindlabs/tailwindcss/issues/13129 */ .container { margin-left: auto;