From a0caa8d8b11d797e6e538f2c7326c920aa195638 Mon Sep 17 00:00:00 2001 From: NoAvatar Date: Thu, 17 Oct 2024 06:03:37 +1000 Subject: [PATCH] Integrate NextUI --- src/app/globals.css | 24 ------------------------ src/app/layout.tsx | 13 ++++++++++--- tailwind.config.ts | 22 +++++++++++++++++++++- 3 files changed, 31 insertions(+), 28 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index 13d40b8..b5c61c9 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1,27 +1,3 @@ @tailwind base; @tailwind components; @tailwind utilities; - -:root { - --background: #ffffff; - --foreground: #171717; -} - -@media (prefers-color-scheme: dark) { - :root { - --background: #0a0a0a; - --foreground: #ededed; - } -} - -body { - color: var(--foreground); - background: var(--background); - font-family: Arial, Helvetica, sans-serif; -} - -@layer utilities { - .text-balance { - text-wrap: balance; - } -} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 87893ee..156eadf 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,6 +3,7 @@ import localFont from "next/font/local"; import "./globals.css"; import Header from "./components/section/Header"; import Footer from "./components/section/Footer"; +import { NextUIProvider } from "@nextui-org/react"; const geistSans = localFont({ src: "./fonts/GeistVF.woff", @@ -30,9 +31,15 @@ export default function RootLayout({ -
- {children} -