Removed theme provider component from next

This commit is contained in:
samueloh99
2023-06-22 15:33:16 -03:00
parent 5ea2453a71
commit ceecbc2b6e
3 changed files with 40 additions and 42 deletions

View File

@@ -42,14 +42,12 @@ export default function RootLayout({ children }: RootLayoutProps) {
fontDisplay.variable
)}
>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<div className="relative flex min-h-screen flex-col">
<SiteHeader />
<div className="flex-1">{children}</div>
<SiteFooter />
</div>
<TailwindIndicator />
</ThemeProvider>
<div className="relative flex min-h-screen flex-col">
<SiteHeader />
<div className="flex-1">{children}</div>
<SiteFooter />
</div>
<TailwindIndicator />
</body>
</html>
</>

View File

@@ -2,7 +2,7 @@
@tailwind components;
@tailwind utilities;
/* @layer base {
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 47.4% 11.2%;
@@ -68,15 +68,15 @@
--radius: 0.5rem;
}
} */
}
@layer base {
* {
@apply border-border;
}
body {
/* @apply bg-background text-foreground; */
/* font-feature-settings: "rlig" 1, "calt" 1; */
@apply bg-background text-foreground;
font-feature-settings: "rlig" 1, "calt" 1;
}
h1,
h2,

View File

@@ -23,36 +23,36 @@ module.exports = {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
// background: "hsl(var(--background))",
// foreground: "hsl(var(--foreground))",
// primary: {
// DEFAULT: "hsl(var(--primary))",
// foreground: "hsl(var(--primary-foreground))",
// },
// secondary: {
// DEFAULT: "hsl(var(--secondary))",
// foreground: "hsl(var(--secondary-foreground))",
// },
// destructive: {
// DEFAULT: "hsl(var(--destructive))",
// foreground: "hsl(var(--destructive-foreground))",
// },
// muted: {
// DEFAULT: "hsl(var(--muted))",
// foreground: "hsl(var(--muted-foreground))",
// },
// accent: {
// DEFAULT: "hsl(var(--accent))",
// foreground: "hsl(var(--accent-foreground))",
// },
// popover: {
// DEFAULT: "hsl(var(--popover))",
// foreground: "hsl(var(--popover-foreground))",
// },
// card: {
// DEFAULT: "hsl(var(--card))",
// foreground: "hsl(var(--card-foreground))",
// },
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
},
borderRadius: {
lg: `var(--radius)`,