Tailwind CSS Styling Guide
Styling Components
1. Add Classes to HTML Elements
<button class="bg-blue-500 text-white font-bold py-2 px-4 rounded">Submit</button>2. Use Utility Classes in CSS Files
/* Custom CSS class */
.my-button {
@apply bg-blue-500 text-white font-bold py-2 px-4 rounded;
}3. Configure Tailwind CSS
Further Resources
Last updated