Skip to content

Commit 65260bd

Browse files
committed
refactor(website): update tailwindcss to 4.0
1 parent 8f44151 commit 65260bd

File tree

9 files changed

+294
-49
lines changed

9 files changed

+294
-49
lines changed

pnpm-lock.yaml

Lines changed: 282 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/components/logo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function Logo() {
88
return (
99
<div className="flex flex-col items-center gap-4 m-0 mx-auto p-8 w-fit">
1010
<Image src={logo as StaticImageData} alt="logo" width="150" height="150" />
11-
<h1 className="text-2xl">ESLint React</h1>
11+
<span className="text-2xl">ESLint React</span>
1212
</div>
1313
);
1414
}

website/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"@mdx-js/mdx": "^3.1.0",
2626
"@next/bundle-analyzer": "^15.1.2",
2727
"@next/eslint-plugin-next": "^15.1.2",
28+
"@tailwindcss/postcss": "^4.0.0-beta.8",
2829
"@tsconfig/node22": "^22.0.0",
2930
"@tsconfig/strictest": "^2.0.5",
3031
"@types/node": "^22.10.2",
@@ -33,7 +34,6 @@
3334
"@vitejs/plugin-react": "^4.3.4",
3435
"@workspace/configs": "workspace:*",
3536
"@workspace/eslint-plugin-deps": "workspace:*",
36-
"autoprefixer": "^10.4.20",
3737
"clsx": "2.1.1",
3838
"effect": "^3.11.9",
3939
"eslint": "^9.17.0",
@@ -47,7 +47,7 @@
4747
"rimraf": "^6.0.1",
4848
"sass": "^1.83.0",
4949
"tailwind-merge": "^2.5.5",
50-
"tailwindcss": "^3.4.17",
50+
"tailwindcss": "^4.0.0-beta.8",
5151
"typescript": "^5.7.2",
5252
"typescript-eslint": "^8.18.1",
5353
"vite": "^6.0.5"

website/pages/_app.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import "#/styles/tw.css";
2-
import "#/styles/base.scss";
1+
import "#/styles/base.css";
32
import "#/styles/overrides.scss";
43

54
import type { AppProps } from "next/app";

website/postcss.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = {
22
plugins: {
3-
tailwindcss: {},
4-
autoprefixer: {},
3+
"@tailwindcss/postcss": {},
54
},
65
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "tailwindcss";
2+
13
:root {
24
--font-family-body:
35
"SF Pro Text",

website/styles/overrides.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
html {
2+
-webkit-font-smoothing: auto;
3+
-moz-osx-font-smoothing: auto;
4+
}
5+
16
.nextra-nav-container {
27
nav {
38
a {

website/styles/tw.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

website/tailwind.config.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)