mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## Why? We are not extending the tailwind theme for `--color-background` and `--color-foreground`. (Before) https://github.com/user-attachments/assets/d336dab3-a00f-46cb-9587-055a6c5272fa (After) https://github.com/user-attachments/assets/123e829d-aa7e-4b57-aa21-261fc05350f8 Follow-up fix for https://github.com/vercel/next.js/pull/75407.
27 lines
488 B
CSS
27 lines
488 B
CSS
@import "tailwindcss";
|
|
|
|
:root {
|
|
--background: #ffffff;
|
|
--foreground: #171717;
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--font-sans: var(--font-geist-sans);
|
|
--font-mono: var(--font-geist-mono);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background: #0a0a0a;
|
|
--foreground: #ededed;
|
|
}
|
|
}
|
|
|
|
body {
|
|
background: var(--background);
|
|
color: var(--foreground);
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|