Skip to content

Commit fdf7f43

Browse files
authored
fix(examples): downgrade tailwind (#9855)
### Description Tailwind v4 was showing some bugginess, so we're having to downgrade. - Not properly resolving packages and CSS with pnpm - Prefixes not working
1 parent ef0d09e commit fdf7f43

File tree

12 files changed

+2225
-1837
lines changed

12 files changed

+2225
-1837
lines changed

examples/with-tailwind/apps/docs/app/globals.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
@import "tailwindcss";
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
24

35
:root {
46
--foreground-rgb: 0, 0, 0;

examples/with-tailwind/apps/docs/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"type": "module",
55
"private": true,
66
"scripts": {
7-
"dev": "next dev --port 3001",
7+
"dev": "next dev --port 3001 --turbopack",
88
"build": "next build",
99
"start": "next start",
1010
"lint": "next lint --max-warnings 0",
1111
"check-types": "tsc --noEmit"
1212
},
1313
"dependencies": {
1414
"@repo/ui": "workspace:*",
15-
"@tailwindcss/postcss": "^4.0.0",
1615
"next": "^15.1.6",
1716
"react": "^19.0.0",
1817
"react-dom": "^19.0.0"
@@ -27,7 +26,7 @@
2726
"@types/react-dom": "^19.0.3",
2827
"autoprefixer": "^10.4.20",
2928
"postcss": "^8.5.1",
30-
"tailwindcss": "^4.0.0",
29+
"tailwindcss": "^3.4.17",
3130
"typescript": "5.7.3"
3231
}
3332
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
plugins: {
3-
"@tailwindcss/postcss": {},
3+
tailwindcss: {},
4+
autoprefixer: {},
45
},
56
};

examples/with-tailwind/apps/web/app/globals.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
@import "tailwindcss";
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;
24

35
:root {
46
--foreground-rgb: 0, 0, 0;

examples/with-tailwind/apps/web/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"type": "module",
55
"private": true,
66
"scripts": {
7-
"dev": "next dev --port 3000",
7+
"dev": "next dev --port 3000 --turbopack",
88
"build": "next build",
99
"start": "next start",
1010
"lint": "next lint --max-warnings 0",
1111
"check-types": "tsc --noEmit"
1212
},
1313
"dependencies": {
1414
"@repo/ui": "workspace:*",
15-
"@tailwindcss/postcss": "^4.0.0",
1615
"next": "^15.1.6",
1716
"react": "^19.0.0",
1817
"react-dom": "^19.0.0"
@@ -27,7 +26,7 @@
2726
"@types/react-dom": "^19.0.3",
2827
"autoprefixer": "^10.4.20",
2928
"postcss": "^8.5.1",
30-
"tailwindcss": "^4.0.0",
29+
"tailwindcss": "^3.4.17",
3130
"typescript": "5.7.3"
3231
}
3332
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
plugins: {
3-
"@tailwindcss/postcss": {},
3+
tailwindcss: {},
4+
autoprefixer: {},
45
},
56
};

examples/with-tailwind/packages/tailwind-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
},
88
"devDependencies": {
99
"@repo/typescript-config": "workspace:*",
10-
"tailwindcss": "^4.0.0"
10+
"tailwindcss": "^3.4.17"
1111
}
1212
}

examples/with-tailwind/packages/ui/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
"@repo/eslint-config": "workspace:*",
2626
"@repo/tailwind-config": "workspace:*",
2727
"@repo/typescript-config": "workspace:*",
28-
"@tailwindcss/cli": "^4.0.0",
2928
"@types/react": "^19.0.7",
3029
"autoprefixer": "^10.4.20",
3130
"postcss": "^8.5.1",
32-
"tailwindcss": "^4.0.0",
31+
"tailwindcss": "^3.4.17",
3332
"typescript": "5.7.3"
3433
}
3534
}

examples/with-tailwind/packages/ui/postcss.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
// If you want to use other PostCSS plugins, see the following:
2-
// https://tailwindcss.com/docs/using-with-preprocessors
3-
4-
module.exports = {
1+
export default {
52
plugins: {
63
tailwindcss: {},
74
autoprefixer: {},
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
@import "tailwindcss";
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

examples/with-tailwind/packages/ui/tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Config } from "tailwindcss";
2-
import sharedConfig from "@repo/tailwind-config/tailwind.config";
2+
import sharedConfig from "@repo/tailwind-config";
33

44
const config: Pick<Config, "prefix" | "presets" | "content"> = {
55
content: ["./src/**/*.tsx"],

0 commit comments

Comments
 (0)