Skip to content

Commit 550bd02

Browse files
authored
Merge pull request realstoman#16 from realstoman/upgrade-tailwindcss
Feat: Upgrade tailwindcss
2 parents 5c39f64 + e0f2031 commit 550bd02

9 files changed

+1832
-295
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ A simple portfolio starter theme built with React and Tailwind CSS. This is the
1010

1111
## Features
1212

13-
- [React](https://reactjs.org) with [React Router v6](https://reactrouter.com)
14-
- [Tailwind CSS v2](https://tailwindcss.com)
13+
- [React v18](https://reactjs.org) with [React Router v6](https://reactrouter.com)
14+
- [Tailwind CSS v3](https://tailwindcss.com)
1515
- Context API For State Management
1616
- Custom Hooks
1717
- Framer Motion transitions & animations

craco.config.js

-7
This file was deleted.

package.json

+11-10
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@craco/craco": "^6.4.1",
76
"@testing-library/jest-dom": "^5.11.4",
87
"@testing-library/react": "^11.1.0",
98
"@testing-library/user-event": "^12.1.10",
109
"framer-motion": "4.1.17",
11-
"react": "^18.0.0",
10+
"react": "^18.1.0",
1211
"react-countup": "^6.1.1",
13-
"react-dom": "^18.0.0",
12+
"react-dom": "^18.1.0",
1413
"react-icons": "^4.3.1",
1514
"react-router-dom": "^6.0.2",
1615
"react-scripts": "4.0.3",
@@ -19,10 +18,11 @@
1918
"web-vitals": "^1.0.1"
2019
},
2120
"scripts": {
22-
"start": "craco start",
23-
"build": "craco build",
24-
"test": "craco test",
25-
"eject": "react-scripts eject"
21+
"start": "yarn run build:css && react-scripts start",
22+
"build": "yarn run react-scripts build",
23+
"test": "react-scripts test",
24+
"eject": "react-scripts eject",
25+
"build:css": "postcss src/css/tailwind.css -o src/css/main.css"
2626
},
2727
"eslintConfig": {
2828
"extends": [
@@ -43,8 +43,9 @@
4343
]
4444
},
4545
"devDependencies": {
46-
"autoprefixer": "^9.8.8",
47-
"postcss": "^7.0.39",
48-
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.2.17"
46+
"@tailwindcss/forms": "^0.5.2",
47+
"autoprefixer": "^10.4.7",
48+
"postcss": "^8.4.14",
49+
"tailwindcss": "^3.0.24"
4950
}
5051
}

postcss.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const tailwindcss = require('tailwindcss');
2+
module.exports = {
3+
plugins: [tailwindcss('./tailwind.config.js'), require('autoprefixer')],
4+
};

0 commit comments

Comments
 (0)