Run the following command to install tailwind css
npm install -D tailwindcss
In the root of the project generate the tailwind css configuration file by using this command
npx tailwindcss init
For optional performance , enable all the things in the tailwind configuration file
Enable this, for optimizing build and ensure better performances result
To ensure Tailwind removes all unused CSS classes, enable purge and provide the path to all files that consume the Tailwind-CSS classes in your tailwind.config.js file. This will result in a smaller sized style bundle.
Add Tailwind CSS to your style.css file to enable globally
To confirm that TailwindCSS is working correctly, simply add a button to your html file in any of your components.
After this check the result. Tailwind css is setup correctly
Step 1 : Create a new directory Homestead by using this command cd ~/Homestead Step…
Step 1: Create a directory where you want to store project such as mkdir ~/vagrant_projects…
Specifically, there are certain naming conventions available across all programming languages, also known as Snake…
If you want to solve the Access-Control-Allow-Orgin header problems, you can setup the cors proxy.…
React Native Hybrid: Is React native hybrid? a popular question that mostly developers asked. Let…
This website uses cookies.