Next.js Discord

Discord Forum

Change background color by default

Answered
Odorous house ant posted this in #help-forum
Open in Discord
Odorous house antOP
Hello,
How can I change the default color of the backgrounds? I tried this:
Answered by joulev
there is quite some bloat inside the default app/globals.css, remove them
View full answer

7 Replies

Odorous house antOP
export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body className="bg-[#23c446]">
        <SessionProvider>{children}</SessionProvider>
      </body>
    </html>
  );
}


this is my layout.tsx
but here's the result:
how can i do xD
there is quite some bloat inside the default app/globals.css, remove them
Answer
it works, sorry for the silly question