Skip to content

Commit 6abdc3c

Browse files
committed
downgrade to tailwind v3
1 parent 46acfc7 commit 6abdc3c

File tree

7 files changed

+342
-559
lines changed

7 files changed

+342
-559
lines changed

examples/vite/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@
1515
"@tanstack/react-query-devtools": "^5.69.0",
1616
"react": "^19.0.0",
1717
"react-dom": "^19.0.0",
18-
"tailwindcss": "^4.0.15",
1918
"tanstack-query-builder": "^0.9.3",
2019
"tanstack-query-builder-example-mocks": "^0.9.3"
2120
},
2221
"devDependencies": {
23-
"@tailwindcss/vite": "^4.0.15",
2422
"@types/react": "^19.0.12",
2523
"@types/react-dom": "^19.0.4",
2624
"@vitejs/plugin-react": "^4.3.4",
2725
"@vitest/browser": "^3.0.9",
26+
"autoprefixer": "^10.4.21",
2827
"msw": "^2.7.3",
2928
"playwright": "^1.51.1",
29+
"postcss": "^8.5.3",
3030
"sass": "^1.86.0",
31+
"tailwindcss": "^3.4.17",
3132
"typescript": "^5.8.2",
3233
"vite": "^6.2.2",
3334
"vitest": "^3.0.9",

examples/vite/postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

examples/vite/src/index.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
.btn {
46
@apply px-4 py-2 rounded;

examples/vite/tailwind.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/** @type {import('tailwindcss').Config} */
2+
export default {
3+
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
4+
theme: {
5+
extend: {},
6+
},
7+
plugins: [],
8+
};

examples/vite/vite.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
/// <reference types="vitest" />
22

3-
import tailwindcss from '@tailwindcss/vite';
43
import react from '@vitejs/plugin-react';
54
import { defineConfig } from 'vite';
65

76
const isStackblitz = process.env.SHELL === '/bin/jsh';
87

98
// https://vitejs.dev/config/
109
export default defineConfig({
11-
plugins: [react(), tailwindcss()],
10+
plugins: [react()],
1211
optimizeDeps: { exclude: ['tanstack-query-builder'] },
1312
server: { port: 3000 },
1413
resolve: {

0 commit comments

Comments
 (0)