npx create-react-app my-project
cd my-project
npm install -D tailwindcss
- The init command to generate your tailwind.config.js file.
npx tailwindcss init
- In file tailwind.config.js paste these line:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}
- Add the @tailwind directives for each of Tailwind’s layers to your ./src/index.css file.
@tailwind base;
@tailwind components;
@tailwind utilities;
Start your build process Run your build process with :
npm run start
Terminal
Start using Tailwind’s utility classes to style your content.
-----------EXAMPLE-----------
App.js
export default function App() {
return (
<h1 className="text-3xl font-bold underline">
Hello world!
</h1>
)
}
Install my-project with npm
npm install frontend
cd frontend
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@mui/material": "^5.14.17",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"react": "^18.2.0",
"react-alert": "^7.0.3",
"react-dom": "^18.2.0",
"react-router-dom": "^5.3.4",
"react-scripts": "5.0.1",
"web-vitals": "^2.1.4"
You can check the package.json file and setup with your version ¯\ (ツ)/¯
Login page responsive | Signup page responsive |
---|---|
POST /auth/login
url | method | body |
---|---|---|
API_BASE_URL + "/auth/login" |
POST |
JSON.stringify(loginRequest) |
POST /auth/signup
url | method | body |
---|---|---|
API_BASE_URL + "/auth/signup" |
POST |
JSON.stringify(signupRequest) |
GET /user/me
url | method | body |
---|---|---|
API_BASE_URL + "/user/me" |
GET |
For support, email to anivnmusicvideo@gmail.com