Complete the code to add a base style for all paragraphs using Tailwind's @layer directive.
@layer [1] { p { @apply text-base text-gray-700; } }
The @layer base is used to define base styles like default paragraph text.
Complete the code to create a custom button component style inside the correct Tailwind layer.
@layer [1] { .btn-primary { @apply bg-blue-600 text-white px-4 py-2 rounded; } }
The @layer components is for custom reusable component styles like buttons.
Fix the error in this utility class definition by choosing the correct layer.
@layer [1] { .text-shadow { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); } }
Utility classes like .text-shadow belong in the @layer utilities layer.
Fill both blanks to define a custom component and a utility class in the correct layers.
@layer [1] { .card { @apply bg-white shadow-md rounded p-6; } } @layer [2] { .text-glow { text-shadow: 0 0 8px rgba(255,255,255,0.8); } }
Custom UI parts like .card go in components. Helper classes like .text-glow go in utilities.
Fill all three blanks to organize base styles, components, and utilities correctly.
@layer [1] { h1 { @apply text-4xl font-bold; } } @layer [2] { .btn-secondary { @apply bg-gray-300 text-gray-800 px-3 py-1 rounded; } } @layer [3] { .border-fancy { border-image: linear-gradient(to right, red, orange) 1; } }
Base styles like h1 go in base. Custom buttons go in components. Helper classes like .border-fancy go in utilities.