Skip to content

Commit 3168152

Browse files
authored
build: upgrade Tailwind CSS to v4 (#125)
* build!: bump tailwind to v4 and update necessary changes * build: upgrade related dependencies * chore: update shadcn components * fix: update scroll area and extend to have vertical orientation * refactor: replace existing toast with sonner * replace existing toast with sonner toast * extract common logic into a function `showSubmittedData` * build: update sidebar and related components * fix: broken scrollbar color * fix: remove unused tailwind config and backup sidebar * fix: add horizontal padding to tasks drawer * fix: update colors in chat * fix: update button cursor to pointer * build: remove unused packages and update knip config * fix: update broken auth pages styles * fix: update broken faded-button style * fix: vertical scroll issue in setting content
1 parent 284aad7 commit 3168152

103 files changed

Lines changed: 3654 additions & 3997 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"rsc": false,
55
"tsx": true,
66
"tailwind": {
7-
"config": "tailwind.config.js",
7+
"config": "",
88
"css": "src/index.css",
99
"baseColor": "slate",
1010
"cssVariables": true,

knip.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import type { KnipConfig } from 'knip';
22

33
const config: KnipConfig = {
4-
ignore: ['src/components/ui/**', 'src/routeTree.gen.ts']
4+
ignore: ['src/components/ui/**', 'src/routeTree.gen.ts'],
5+
ignoreDependencies: ["tailwindcss", "tw-animate-css"]
56
};
67

78
export default config;

package.json

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,44 +14,45 @@
1414
},
1515
"dependencies": {
1616
"@hookform/resolvers": "^3.9.1",
17-
"@radix-ui/react-alert-dialog": "^1.1.2",
18-
"@radix-ui/react-avatar": "^1.1.1",
19-
"@radix-ui/react-checkbox": "^1.1.2",
20-
"@radix-ui/react-collapsible": "^1.1.1",
21-
"@radix-ui/react-dialog": "^1.1.2",
22-
"@radix-ui/react-dropdown-menu": "^2.1.2",
17+
"@radix-ui/react-alert-dialog": "^1.1.7",
18+
"@radix-ui/react-avatar": "^1.1.4",
19+
"@radix-ui/react-checkbox": "^1.1.5",
20+
"@radix-ui/react-collapsible": "^1.1.4",
21+
"@radix-ui/react-dialog": "^1.1.7",
22+
"@radix-ui/react-dropdown-menu": "^2.1.7",
2323
"@radix-ui/react-icons": "^1.3.2",
24-
"@radix-ui/react-label": "^2.1.0",
25-
"@radix-ui/react-popover": "^1.1.2",
26-
"@radix-ui/react-radio-group": "^1.2.1",
27-
"@radix-ui/react-scroll-area": "^1.2.1",
28-
"@radix-ui/react-select": "^2.1.2",
29-
"@radix-ui/react-separator": "^1.1.0",
30-
"@radix-ui/react-slot": "^1.1.0",
31-
"@radix-ui/react-switch": "^1.1.1",
32-
"@radix-ui/react-tabs": "^1.1.1",
33-
"@radix-ui/react-toast": "^1.2.2",
34-
"@radix-ui/react-tooltip": "^1.1.4",
35-
"@radix-ui/react-visually-hidden": "^1.1.0",
24+
"@radix-ui/react-label": "^2.1.3",
25+
"@radix-ui/react-popover": "^1.1.7",
26+
"@radix-ui/react-radio-group": "^1.2.4",
27+
"@radix-ui/react-scroll-area": "^1.2.4",
28+
"@radix-ui/react-select": "^2.1.7",
29+
"@radix-ui/react-separator": "^1.1.3",
30+
"@radix-ui/react-slot": "^1.2.0",
31+
"@radix-ui/react-switch": "^1.1.4",
32+
"@radix-ui/react-tabs": "^1.1.4",
33+
"@radix-ui/react-tooltip": "^1.2.0",
3634
"@tabler/icons-react": "^3.24.0",
35+
"@tailwindcss/vite": "^4.1.3",
3736
"@tanstack/react-query": "^5.62.3",
3837
"@tanstack/react-router": "^1.86.1",
3938
"@tanstack/react-table": "^8.20.5",
4039
"axios": "^1.8.2",
4140
"class-variance-authority": "^0.7.1",
4241
"clsx": "^2.1.1",
43-
"cmdk": "1.0.4",
42+
"cmdk": "1.1.1",
4443
"date-fns": "^4.1.0",
4544
"js-cookie": "^3.0.5",
46-
"lucide-react": "^0.468.0",
45+
"lucide-react": "^0.487.0",
4746
"react": "^19.0.0",
4847
"react-day-picker": "8.10.1",
4948
"react-dom": "^19.0.0",
5049
"react-hook-form": "^7.54.0",
5150
"react-top-loading-bar": "^3.0.2",
52-
"recharts": "^2.14.1",
53-
"tailwind-merge": "^2.5.5",
54-
"tailwindcss-animate": "^1.0.7",
51+
"recharts": "^2.15.2",
52+
"sonner": "^2.0.3",
53+
"tailwind-merge": "^3.2.0",
54+
"tailwindcss": "^4.1.3",
55+
"tw-animate-css": "^1.2.5",
5556
"zod": "^3.23.8",
5657
"zustand": "^5.0.2"
5758
},
@@ -68,16 +69,13 @@
6869
"@types/react": "^19.0.1",
6970
"@types/react-dom": "^19.0.1",
7071
"@vitejs/plugin-react-swc": "^3.7.2",
71-
"autoprefixer": "^10.4.20",
7272
"eslint": "^9.16.0",
7373
"eslint-plugin-react-hooks": "^5.1.0",
7474
"eslint-plugin-react-refresh": "^0.4.16",
7575
"globals": "^15.13.0",
7676
"knip": "^5.41.1",
77-
"postcss": "^8.4.49",
7877
"prettier": "^3.4.2",
79-
"prettier-plugin-tailwindcss": "^0.6.9",
80-
"tailwindcss": "^3.4.16",
78+
"prettier-plugin-tailwindcss": "^0.6.11",
8179
"typescript": "~5.7.2",
8280
"typescript-eslint": "^8.17.0",
8381
"vite": "^6.2.6"

0 commit comments

Comments
 (0)