Challenge - 5 Problems
Tailwind Color Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Tailwind's Default Blue Shades
Which Tailwind CSS class applies the default blue color at shade 500?
Attempts:
2 left
💡 Hint
Shade 500 is the base color in Tailwind's palette.
✗ Incorrect
In Tailwind CSS, the shade 500 is the base color. The class 'bg-blue-500' applies the blue color at shade 500 as a background.
📝 Syntax
intermediate2:00remaining
Correct Usage of Tailwind Color Shade in Text
Which option correctly applies the Tailwind red color at shade 700 to text?
Attempts:
2 left
💡 Hint
Text color classes start with 'text-'.
✗ Incorrect
To color text in Tailwind, use the 'text-' prefix followed by the color and shade. 'text-red-700' applies red shade 700 to text.
❓ selector
advanced2:00remaining
Selecting the Correct Tailwind Class for a Light Gray Background
Which Tailwind CSS class applies the lightest gray background from the default palette?
Attempts:
2 left
💡 Hint
Lower shade numbers are lighter colors.
✗ Incorrect
In Tailwind, gray-50 is the lightest gray shade. 'bg-gray-50' applies this light gray as background.
❓ layout
advanced2:00remaining
Using Tailwind Colors in a Responsive Card Layout
You want a card with a green background that changes from shade 300 on small screens to shade 700 on large screens. Which classes achieve this?
Attempts:
2 left
💡 Hint
Use the 'lg:' prefix for large screens and base class for small screens.
✗ Incorrect
Tailwind applies the base class to all screen sizes. Using 'bg-green-300' for base and 'lg:bg-green-700' overrides it on large screens.
❓ accessibility
expert2:00remaining
Choosing Accessible Tailwind Color Shades for Text Contrast
Which Tailwind text color shade provides the best contrast on a white background for accessibility?
Attempts:
2 left
💡 Hint
Darker shades provide better contrast on light backgrounds.
✗ Incorrect
For good accessibility, text on white background should be dark enough. 'text-gray-900' is the darkest gray and provides best contrast.