Skip to content

Commit 52a9557

Browse files
committed
feat: upgrade to tailwind v4.0
1 parent 0623ba4 commit 52a9557

File tree

7 files changed

+208
-459
lines changed

7 files changed

+208
-459
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# React Tailwindcss Boilerplate build with Vite
44

5-
This is a boilerplate build with Vite, React 18, TypeScript, Vitest, Testing Library, Commitlint, TailwindCSS 3, Eslint and Prettier.
5+
This is a boilerplate build with Vite, React 18, TypeScript, Vitest, Commitlint, TailwindCSS 3, Eslint and Prettier.
66

77
## What is inside?
88

@@ -12,8 +12,7 @@ This project uses many tools like:
1212
- [ReactJS](https://reactjs.org)
1313
- [TypeScript](https://www.typescriptlang.org)
1414
- [Vitest](https://vitest.dev)
15-
- [Testing Library](https://testing-library.com)
16-
- [Commitlint gitmoji](https://www.npmjs.com/package/commitlint-config-gitmoji)
15+
- [Commitlint Angular Conventional Commit](https://www.npmjs.com/package/@commitlint/config-conventional)
1716
- [Tailwindcss](https://tailwindcss.com)
1817
- [Eslint](https://eslint.org)
1918
- [Prettier](https://prettier.io)
@@ -62,24 +61,24 @@ yarn run build
6261

6362
### Commitlint
6463
#### Structure
65-
The Gitmoji Structure of commit styles is below
64+
The Structure of commit styles is below
6665

6766
```bash
68-
:gitmoji: type(scope?): subject
67+
type(scope?): subject
6968
body?
7069
footer?
7170
```
7271

7372
Example
7473

7574
```bash
76-
:sparkles: feat(changelog): support chinese title
75+
feat(changelog): support chinese title
7776

78-
:bug: fix(config): fix a subject bug
77+
fix(config): fix a subject bug
7978

80-
:memo: docs: update README.md
79+
docs: update README.md
8180

82-
:bulb: docs(plugin): update comments
81+
docs(plugin): update comments
8382
```
8483

8584
## License

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@
1818
"dependencies": {
1919
"@commitlint/cli": "^19.6.1",
2020
"@commitlint/config-conventional": "^19.6.0",
21+
"@tailwindcss/vite": "^4.0.0",
2122
"eslint-plugin-prettier": "^5.2.1",
2223
"eslint-plugin-react": "^7.35.0",
2324
"react": "^19.0.0",
24-
"react-dom": "^19.0.0"
25+
"react-dom": "^19.0.0",
26+
"tailwindcss": "^4.0.0"
2527
},
2628
"devDependencies": {
2729
"@types/node": "^22.10.10",
@@ -38,7 +40,6 @@
3840
"husky": "^8.0.0",
3941
"postcss": "^8.5.1",
4042
"prettier": "3.3.3",
41-
"tailwindcss": "^3.4.17",
4243
"typescript": "^5.2.2",
4344
"vite": "^5.3.4"
4445
}

postcss.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/index.css

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
@tailwind base;
2-
@tailwind components;
3-
@tailwind utilities;
1+
@import "tailwindcss";

tailwind.config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react-swc";
3+
import tailwindcss from "@tailwindcss/vite";
34
import path from "path";
45

56
// https://vitejs.dev/config/
67
export default defineConfig({
78
base: "/",
8-
plugins: [react()],
9+
plugins: [react(), tailwindcss()],
910
server: {
1011
port: 5173,
1112
},

0 commit comments

Comments
 (0)