Complete the code to apply a reusable button style using Tailwind CSS.
<button class="[1]">Click me</button>
p-1 alone instead of a reusable pattern.text-center which don't style buttons.The class btn-primary is a reusable pattern for buttons that applies consistent styling.
Complete the code to reuse a card component style with Tailwind CSS.
<div class="[1] p-4 rounded shadow">Content</div>
bg-blue-100 without a reusable pattern.flex which don't represent a card style.The card class is a reusable pattern that groups common styles for card components.
Fix the error in the code by choosing the correct reusable pattern class.
<nav class="navbar [1]">Menu</nav>
bg-green-300 which are not reusable patterns.text-bold which is not a valid Tailwind class.The class nav-primary is a reusable pattern for navigation bars, ensuring consistent style.
Fill both blanks to create a reusable card with a button inside using Tailwind CSS.
<div class="[1] p-6 rounded-lg shadow-lg"> <button class="[2]">Submit</button> </div>
text-center or bg-yellow-200 instead of reusable patterns.The card class styles the container, and btn-primary styles the button as reusable patterns.
Fill all three blanks to build a reusable header with navigation and a button using Tailwind CSS.
<header class="[1] p-4 bg-gray-100"> <nav class="[2]"> <button class="[3]">Login</button> </nav> </header>
text-lg which are not reusable patterns.The header-main class styles the header, nav-primary styles the navigation, and btn-primary styles the button as reusable patterns.