Skip to content

Commit 1566c1f

Browse files
committed
chore(cna): fix theme extend for tailwind v4
1 parent be05184 commit 1566c1f

File tree

4 files changed

+32
-24
lines changed

4 files changed

+32
-24
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
@import "tailwindcss";
22

3-
@theme {
4-
--font-sans: var(--font-geist-sans);
5-
--font-mono: var(--font-geist-mono);
6-
}
7-
83
:root {
94
--background: #ffffff;
105
--foreground: #171717;
116
}
127

8+
@theme {
9+
--color-background: #ffffff;
10+
--color-foreground: #171717;
11+
--font-sans: var(--font-geist-sans);
12+
--font-mono: var(--font-geist-mono);
13+
}
14+
1315
@media (prefers-color-scheme: dark) {
1416
:root {
1517
--background: #0a0a0a;
@@ -18,7 +20,7 @@
1820
}
1921

2022
body {
21-
color: var(--foreground);
2223
background: var(--background);
24+
color: var(--foreground);
2325
font-family: Arial, Helvetica, sans-serif;
2426
}
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
@import "tailwindcss";
22

3-
@theme {
4-
--font-sans: var(--font-geist-sans);
5-
--font-mono: var(--font-geist-mono);
6-
}
7-
83
:root {
94
--background: #ffffff;
105
--foreground: #171717;
116
}
127

8+
@theme {
9+
--color-background: #ffffff;
10+
--color-foreground: #171717;
11+
--font-sans: var(--font-geist-sans);
12+
--font-mono: var(--font-geist-mono);
13+
}
14+
1315
@media (prefers-color-scheme: dark) {
1416
:root {
1517
--background: #0a0a0a;
@@ -18,7 +20,7 @@
1820
}
1921

2022
body {
21-
color: var(--foreground);
2223
background: var(--background);
24+
color: var(--foreground);
2325
font-family: Arial, Helvetica, sans-serif;
2426
}
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
@import "tailwindcss";
22

3-
@theme {
4-
--font-sans: var(--font-geist-sans);
5-
--font-mono: var(--font-geist-mono);
6-
}
7-
83
:root {
94
--background: #ffffff;
105
--foreground: #171717;
116
}
127

8+
@theme {
9+
--color-background: #ffffff;
10+
--color-foreground: #171717;
11+
--font-sans: var(--font-geist-sans);
12+
--font-mono: var(--font-geist-mono);
13+
}
14+
1315
@media (prefers-color-scheme: dark) {
1416
:root {
1517
--background: #0a0a0a;
@@ -18,7 +20,7 @@
1820
}
1921

2022
body {
21-
color: var(--foreground);
2223
background: var(--background);
24+
color: var(--foreground);
2325
font-family: Arial, Helvetica, sans-serif;
2426
}
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
@import "tailwindcss";
22

3-
@theme {
4-
--font-sans: var(--font-geist-sans);
5-
--font-mono: var(--font-geist-mono);
6-
}
7-
83
:root {
94
--background: #ffffff;
105
--foreground: #171717;
116
}
127

8+
@theme {
9+
--color-background: #ffffff;
10+
--color-foreground: #171717;
11+
--font-sans: var(--font-geist-sans);
12+
--font-mono: var(--font-geist-mono);
13+
}
14+
1315
@media (prefers-color-scheme: dark) {
1416
:root {
1517
--background: #0a0a0a;
@@ -18,7 +20,7 @@
1820
}
1921

2022
body {
21-
color: var(--foreground);
2223
background: var(--background);
24+
color: var(--foreground);
2325
font-family: Arial, Helvetica, sans-serif;
2426
}

0 commit comments

Comments
 (0)