Skip to content

Commit 4bfe1ba

Browse files
committed
2025.02.10 update tailwind
1 parent 6285a67 commit 4bfe1ba

File tree

6 files changed

+325
-568
lines changed

6 files changed

+325
-568
lines changed

app/globals.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import 'tailwindcss';
42

53
:root {
64
--background: #f4f4f4;
@@ -16,6 +14,14 @@
1614
}
1715
}
1816

17+
@theme {
18+
--color-background: var(--background);
19+
--color-foreground: var(--foreground);
20+
}
21+
22+
@layer base {
23+
}
24+
1925
body {
2026
color: var(--foreground);
2127
font-family: Arial, Helvetica, sans-serif;

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function Home() {
99
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
1010
<li className="mb-2">
1111
Get started by editing{' '}
12-
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">app/page.tsx</code>.
12+
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded-sm font-semibold">app/page.tsx</code>.
1313
</li>
1414
<li>Save and see your changes instantly.</li>
1515
</ol>

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
},
1919
"devDependencies": {
2020
"@eslint/eslintrc": "^3",
21+
"@tailwindcss/postcss": "^4.0.0",
2122
"@types/node": "^20",
2223
"@types/react": "^19",
2324
"@types/react-dom": "^19",
2425
"eslint": "^9",
2526
"eslint-config-next": "15.1.6",
2627
"postcss": "^8",
27-
"tailwindcss": "^3.4.1",
28+
"tailwindcss": "^4.0.0",
2829
"typescript": "^5"
2930
}
3031
}

0 commit comments

Comments
 (0)