Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix(examples): downgrade tailwind #9855

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/with-tailwind/apps/docs/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import "tailwindcss";
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
Expand Down
5 changes: 2 additions & 3 deletions examples/with-tailwind/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
"type": "module",
"private": true,
"scripts": {
"dev": "next dev --port 3001",
"dev": "next dev --port 3001 --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint --max-warnings 0",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@repo/ui": "workspace:*",
"@tailwindcss/postcss": "^4.0.0",
"next": "^15.1.6",
"react": "^19.0.0",
"react-dom": "^19.0.0"
Expand All @@ -27,7 +26,7 @@
"@types/react-dom": "^19.0.3",
"autoprefixer": "^10.4.20",
"postcss": "^8.5.1",
"tailwindcss": "^4.0.0",
"tailwindcss": "^3.4.17",
"typescript": "5.7.3"
}
}
3 changes: 2 additions & 1 deletion examples/with-tailwind/apps/docs/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default {
plugins: {
"@tailwindcss/postcss": {},
tailwindcss: {},
autoprefixer: {},
},
};
4 changes: 3 additions & 1 deletion examples/with-tailwind/apps/web/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
@import "tailwindcss";
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
Expand Down
5 changes: 2 additions & 3 deletions examples/with-tailwind/apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
"type": "module",
"private": true,
"scripts": {
"dev": "next dev --port 3000",
"dev": "next dev --port 3000 --turbopack",
"build": "next build",
"start": "next start",
"lint": "next lint --max-warnings 0",
"check-types": "tsc --noEmit"
},
"dependencies": {
"@repo/ui": "workspace:*",
"@tailwindcss/postcss": "^4.0.0",
"next": "^15.1.6",
"react": "^19.0.0",
"react-dom": "^19.0.0"
Expand All @@ -27,7 +26,7 @@
"@types/react-dom": "^19.0.3",
"autoprefixer": "^10.4.20",
"postcss": "^8.5.1",
"tailwindcss": "^4.0.0",
"tailwindcss": "^3.4.17",
"typescript": "5.7.3"
}
}
3 changes: 2 additions & 1 deletion examples/with-tailwind/apps/web/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default {
plugins: {
"@tailwindcss/postcss": {},
tailwindcss: {},
autoprefixer: {},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
},
"devDependencies": {
"@repo/typescript-config": "workspace:*",
"tailwindcss": "^4.0.0"
"tailwindcss": "^3.4.17"
}
}
3 changes: 1 addition & 2 deletions examples/with-tailwind/packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
"@repo/eslint-config": "workspace:*",
"@repo/tailwind-config": "workspace:*",
"@repo/typescript-config": "workspace:*",
"@tailwindcss/cli": "^4.0.0",
"@types/react": "^19.0.7",
"autoprefixer": "^10.4.20",
"postcss": "^8.5.1",
"tailwindcss": "^4.0.0",
"tailwindcss": "^3.4.17",
"typescript": "5.7.3"
}
}
5 changes: 1 addition & 4 deletions examples/with-tailwind/packages/ui/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
// If you want to use other PostCSS plugins, see the following:
// https://tailwindcss.com/docs/using-with-preprocessors

module.exports = {
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
Expand Down
4 changes: 3 additions & 1 deletion examples/with-tailwind/packages/ui/src/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
@import "tailwindcss";
@tailwind base;
@tailwind components;
@tailwind utilities;
2 changes: 1 addition & 1 deletion examples/with-tailwind/packages/ui/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Config } from "tailwindcss";
import sharedConfig from "@repo/tailwind-config/tailwind.config";
import sharedConfig from "@repo/tailwind-config";

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