Skip to content

Commit deee689

Browse files
authored
Tailwindcss v4 (#14)
# Description Adds tailwind v4 to the project ## Type of change Please mark relevant options with an `x` in the brackets. - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Algorithm update - updates algorithm documentation/questions/answers etc. - [ ] Other (please describe):
1 parent 9784422 commit deee689

File tree

8 files changed

+402
-485
lines changed

8 files changed

+402
-485
lines changed

.github/workflows/validate.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ jobs:
3535
- run: pnpm install --prefer-offline --frozen-lockfile
3636
- run: pnpm run typecheck
3737

38+
check-unused:
39+
needs: lint
40+
name: ✂️ Check unused code
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v4
44+
- uses: pnpm/action-setup@v4
45+
- uses: actions/setup-node@v4
46+
with:
47+
node-version-file: "package.json"
48+
cache: "pnpm"
49+
- run: pnpm install --prefer-offline --frozen-lockfile
50+
- run: pnpm run check:unused
51+
3852
vitest:
3953
needs: typecheck
4054
name: ⚡ Unit Tests

app/tailwind.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";
2+
3+
@theme {
4+
/* Your theme styles go here */
5+
}

knip.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"$schema": "https://unpkg.com/knip@5/schema.json",
33
"entry": ["scripts/*.{ts,js}", "app/routes.ts", "app/server/*.ts", "app/library/icon/Icon.tsx"],
44
"remix": true,
5+
"lefthook": true,
56
"project": ["**/*.{js,cjs,mjs,jsx,ts,cts,mts,tsx}"],
6-
"ignore": ["app/library/icon/icons/types.ts"],
7-
"ignoreDependencies": ["@babel/preset-typescript", "babel-plugin-react-compiler"]
7+
"ignore": ["app/library/icon/icons/types.ts", "react-router.config.ts"],
8+
"ignoreDependencies": ["@babel/preset-typescript", "babel-plugin-react-compiler", "tailwindcss"]
89
}

package.json

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"@react-router/node": "7.1.2",
3232
"clsx": "2.1.1",
3333
"hono": "4.6.12",
34-
"i18next": "23.15.2",
34+
"i18next": "24.2.1",
3535
"i18next-browser-languagedetector": "8.0.0",
3636
"i18next-fetch-backend": "6.0.0",
3737
"isbot": "5.1.17",
@@ -42,7 +42,7 @@
4242
"react-router": "7.1.2",
4343
"react-router-hono-server": "2.6.2",
4444
"remix-hono": "0.0.16",
45-
"remix-i18next": "7.0.0",
45+
"remix-i18next": "7.0.2",
4646
"tailwind-merge": "2.5.4",
4747
"zod": "3.23.8"
4848
},
@@ -52,25 +52,24 @@
5252
"@dotenvx/dotenvx": "1.24.5",
5353
"@react-router/dev": "7.1.2",
5454
"@react-router/fs-routes": "7.1.2",
55-
"@testing-library/react": "16.0.1",
55+
"@tailwindcss/vite": "4.0.0",
56+
"@testing-library/react": "16.2.0",
5657
"@types/node": "22.9.1",
5758
"@types/prompt": "1.1.9",
5859
"@types/react": "19.0.0",
5960
"@types/react-dom": "19.0.1",
60-
"@vitest/browser": "3.0.2",
61-
"@vitest/coverage-v8": "3.0.2",
62-
"@vitest/ui": "3.0.2",
63-
"autoprefixer": "10.4.20",
61+
"@vitest/browser": "3.0.3",
62+
"@vitest/coverage-v8": "3.0.3",
63+
"@vitest/ui": "3.0.3",
6464
"babel-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
6565
"chalk": "5.3.0",
6666
"happy-dom": "15.11.6",
6767
"knip": "5.39.4",
6868
"lefthook": "1.8.4",
6969
"playwright": "1.49.0",
70-
"postcss": "8.4.49",
7170
"prompt": "1.3.0",
72-
"react-router-devtools": "1.0.5",
73-
"tailwindcss": "3.4.15",
71+
"react-router-devtools": "1.1.0",
72+
"tailwindcss": "4.0.0",
7473
"tsx": "4.19.2",
7574
"typescript": "5.6.3",
7675
"vite": "6.0.11",

0 commit comments

Comments
 (0)