0
0
Tailwindmarkup~20 mins

Default color palette and shades in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Tailwind Color Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Tailwind's Default Blue Shades
Which Tailwind CSS class applies the default blue color at shade 500?
Abg-blue-500
Btext-blue-50
Cborder-blue-900
Dhover:bg-blue-100
Attempts:
2 left
💡 Hint
Shade 500 is the base color in Tailwind's palette.
📝 Syntax
intermediate
2:00remaining
Correct Usage of Tailwind Color Shade in Text
Which option correctly applies the Tailwind red color at shade 700 to text?
Aborder-red-700
Bbg-red-700
Chover:text-red-50
Dtext-red-700
Attempts:
2 left
💡 Hint
Text color classes start with 'text-'.
selector
advanced
2:00remaining
Selecting the Correct Tailwind Class for a Light Gray Background
Which Tailwind CSS class applies the lightest gray background from the default palette?
Abg-gray-50
Bbg-gray-900
Cbg-gray-500
Dbg-gray-1000
Attempts:
2 left
💡 Hint
Lower shade numbers are lighter colors.
layout
advanced
2: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?
Abg-green-700 lg:bg-green-300
Bbg-green-700 sm:bg-green-300
Cbg-green-300 lg:bg-green-700
Dbg-green-300 md:bg-green-700
Attempts:
2 left
💡 Hint
Use the 'lg:' prefix for large screens and base class for small screens.
accessibility
expert
2:00remaining
Choosing Accessible Tailwind Color Shades for Text Contrast
Which Tailwind text color shade provides the best contrast on a white background for accessibility?
Atext-gray-50
Btext-gray-900
Ctext-gray-200
Dtext-gray-400
Attempts:
2 left
💡 Hint
Darker shades provide better contrast on light backgrounds.