Unverified Commit 7135484d authored by Sam Ko's avatar Sam Ko Committed by GitHub

chore(cna): fix theme extend for tailwind v4 (#76583)

## 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.
parent ede5cf85
@import "tailwindcss";
@theme {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
: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;
......@@ -18,7 +20,7 @@
}
body {
color: var(--foreground);
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
@import "tailwindcss";
@theme {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
: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;
......@@ -18,7 +20,7 @@
}
body {
color: var(--foreground);
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
@import "tailwindcss";
@theme {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
: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;
......@@ -18,7 +20,7 @@
}
body {
color: var(--foreground);
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
@import "tailwindcss";
@theme {
--font-sans: var(--font-geist-sans);
--font-mono: var(--font-geist-mono);
}
: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;
......@@ -18,7 +20,7 @@
}
body {
color: var(--foreground);
background: var(--background);
color: var(--foreground);
font-family: Arial, Helvetica, sans-serif;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment