Next.js Discord

Discord Forum

Abort error

Unanswered
Mini Satin posted this in #help-forum
Open in Discord
Mini SatinOP
Why my visual next js different?

8 Replies

How is it different?
Mini SatinOP
My appearance is bright, whereas in general it is dark
when I create a new page, it looks like this
@Mini Satin when I create a new page, it looks like this
This happens due to global.css in your app folder
@Mini Satin My appearance is bright, whereas in general it is dark
This depends on the light/dark settings of your OS/browser
Mini SatinOP
This is my global. Css, I have never replaced it after installing: @tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
good
if you understand CSS then you understand why it is showing your webpage like that