From acd47baaeaa9d9a9d8a0cab5ab4b8c30438579ed Mon Sep 17 00:00:00 2001 From: Madhur Date: Tue, 11 Jan 2022 12:08:17 -0800 Subject: [PATCH] Updated tailwindcss to v3 and other minor updates --- CHANGELOG.md | 25 + package.json | 23 +- postcss.config.js | 6 + public/index.html | 2 +- src/assets/styles/tailwind.css | 3030 +++++++---------- src/components/Cards/CardBarChart.js | 4 +- src/components/Cards/CardLineChart.js | 4 +- src/components/Cards/CardPageVisits.js | 10 +- src/components/Cards/CardProfile.js | 32 +- src/components/Cards/CardSettings.js | 52 +- src/components/Cards/CardSocialTraffic.js | 12 +- src/components/Cards/CardStats.js | 6 +- src/components/Cards/CardTable.js | 78 +- src/components/Dropdowns/IndexDropdown.js | 28 +- .../Dropdowns/NotificationDropdown.js | 12 +- src/components/Dropdowns/PagesDropdown.js | 28 +- src/components/Dropdowns/TableDropdown.js | 8 +- src/components/Dropdowns/UserDropdown.js | 14 +- src/components/Footers/Footer.js | 38 +- src/components/Footers/FooterAdmin.js | 14 +- src/components/Footers/FooterSmall.js | 16 +- src/components/Headers/HeaderStats.js | 4 +- src/components/Navbars/AdminNavbar.js | 4 +- src/components/Navbars/AuthNavbar.js | 18 +- src/components/Navbars/IndexNavbar.js | 20 +- src/components/Sidebar/Sidebar.js | 88 +- src/layouts/Admin.js | 2 +- src/layouts/Auth.js | 2 +- src/views/Index.js | 128 +- src/views/Landing.js | 104 +- src/views/Profile.js | 38 +- src/views/auth/Login.js | 30 +- src/views/auth/Register.js | 32 +- tailwind.config.js | 19 - 34 files changed, 1645 insertions(+), 2286 deletions(-) create mode 100644 postcss.config.js diff --git a/CHANGELOG.md b/CHANGELOG.md index 0715867a0..119d394ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,30 @@ # Change Log +## [1.2.0] 2022-01-11 +Upgraded Tailwind CSS from version 2 to version 3 +Followed https://tailwindcss.com/docs/upgrade-guide#renamed-gray-scales to update color names +- All `{type}-lightBlue-{number}` classes were renamed to `{type}-sky-{number}` +- All `{type}-blueGray-{number}` classes were renamed to `{type}-slate-{number}` +- Removed conflicting bg-white and bg-sky-500 class +- Moved tailwindcss, postcss and autoprefixer to `devDependencies` section in `package.json` +- Added `postcss.config.js` +### Major style changes +- The upgrade of Tailwind CSS from version 2 to version 3, will cause multiple style changes, check them out on the official Tailwind CSS websites: + - https://tailwindcss.com/blog/tailwindcss-v3 + - https://tailwindcss.com/docs/upgrade-guide +### Deleted dependencies +- `@tailwindcss/forms` (Official repository says @tailwindcss/forms is designed for Tailwind CSS v2.0) +### Updated dependencies +``` +@fortawesome/fontawesome-free 5.15.3 → 5.15.4 +@popperjs/core 2.5.1 → 2.9.1 +react 17.0.1 → 17.0.2 +react-dom 17.0.1 → 17.0.2 +tailwindcss 2.0.4 → 3.0.11 +typescript 4.0.3 → 4.5.4 +postcss 8.2.8 → 8.4.5 +``` + ## [1.1.0] 2021-03-19 ### Bug fixing - Rename `master` branch to `main` diff --git a/package.json b/package.json index 37565ea44..471ff4849 100644 --- a/package.json +++ b/package.json @@ -1,24 +1,25 @@ { "name": "notus-react", - "version": "1.1.0", + "version": "1.2.0", "description": "Notus React - A free Tailwind CSS and React UI Kit and Admin by Creative Tim.", "repository": "https://github.com/creativetimofficial/notus-react", "license": "MIT", "dependencies": { - "@fortawesome/fontawesome-free": "5.15.3", - "@popperjs/core": "2.9.1", - "@tailwindcss/forms": "0.2.1", - "autoprefixer": "10.2.5", + "@fortawesome/fontawesome-free": "5.15.4", + "@popperjs/core": "2.11.2", "chart.js": "2.9.4", "gulp": "4.0.2", "gulp-append-prepend": "1.0.8", - "postcss": "8.2.8", - "react": "17.0.1", - "react-dom": "17.0.1", + "react": "17.0.2", + "react-dom": "17.0.2", "react-router": "5.2.0", "react-router-dom": "5.2.0", - "react-scripts": "4.0.3", - "tailwindcss": "2.0.4" + "react-scripts": "4.0.3" + }, + "devDependencies": { + "autoprefixer": "^10.4.1", + "postcss": "^8.4.5", + "tailwindcss": "^3.0.11" }, "scripts": { "start": "react-scripts start", @@ -44,6 +45,6 @@ ] }, "optionalDependencies": { - "typescript": "4.2.3" + "typescript": "4.5.4" } } diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 000000000..33ad091d2 --- /dev/null +++ b/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, +} diff --git a/public/index.html b/public/index.html index a3e691331..efa505e90 100644 --- a/public/index.html +++ b/public/index.html @@ -48,7 +48,7 @@ Notus React by Creative Tim | Free and Open Source UI Kit - +