- Use borders and box-shadow utility classes.
- Working of hover modifier in Tailwind CSS.
- Build a simple web page with flexbox utility classes.
- Hosting through the Firebase platform
![Screenshot 2023-05-09 at 8 39 13 PM](https://private-user-images.githubusercontent.com/92979885/237139103-9b7e4673-961c-4969-93bf-26b88539ef92.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1OTA1OTYsIm5iZiI6MTcyMDU5MDI5NiwicGF0aCI6Ii85Mjk3OTg4NS8yMzcxMzkxMDMtOWI3ZTQ2NzMtOTYxYy00OTY5LTkzYmYtMjZiODg1MzllZjkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzEwVDA1NDQ1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQyODhiMDhjNjkyZDI4NTllN2MwZDNhMGUxZTRmZTE2Y2NiOTAwNzA3OGQ4Yjg4YzA5NDQzOWEzNzVkN2M4MzYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.DqxtlXNoFkQCm8Az3Z9vz5nUXhMKslvHAIjooB0logE)
npm -y init
- Now, we will install the tailwind CLI tool as a devDependency, which means that the Tailwind CLI tool is a package only required during the development. Enter the following command in your terminal.
npm install -D tailwindcss
- The terminal will load the installation of the packages. Now, open your package.json file and check that 'tailwindcss' appears as a devDependency, which you should find in lines 12 and 13.
- Now that the Tailwind CLI tool is installed, we can run it by entering the following command in your terminal.
npx tailwindcss init
- In the tailwind.config.js file, update the “content” property in line 3 with the following code:
content: ["./src/**/*.{html,js}"],
- Finally, enter the following code in the input.css file.
@tailwind base;
@tailwind components;
@tailwind utilities;
- How to start Tailwind: We need to build the utility classes using the Tailwind CLI Tool. Open the terminal and enter the following command:
npx tailwindcss -i ./src/input.css -o ./dist/output.css --watch
PS: The terminal will now rebuild only the utility classes used in your code every time you save new changes. Thereafter, leave your terminal open during your development.