refactor: clean up unused ThemeProvider code and CSS variables

This commit is contained in:
arraysid
2025-05-28 00:47:28 +07:00
parent 8d71173897
commit 472e02e0b0
2 changed files with 1 additions and 60 deletions
+1 -17
View File
@@ -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 (
<QueryProvider>
{/* <ThemeProvider
attribute="class"
defaultTheme="light"
enableSystem
disableTransitionOnChange
> */}
{children}
{/* </ThemeProvider> */}
</QueryProvider>
);
return <QueryProvider>{children}</QueryProvider>;
}
export const queryClient = new QueryClient();
@@ -27,7 +15,3 @@ function QueryProvider({ children }: { children: ReactNode }) {
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
);
}
// function ThemeProvider({ children, ...props }: ThemeProviderProps) {
// return <NextThemesProvider {...props}>{children}</NextThemesProvider>;
// }
-43
View File
@@ -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;