Challenge - 5 Problems
Box Shadow Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Understanding Tailwind Box Shadow Classes
Which Tailwind CSS class applies a medium-sized shadow with a subtle blur and spread?
Attempts:
2 left
💡 Hint
Think about the naming convention: sm is small, md is medium, lg is large.
✗ Incorrect
The shadow-md class applies a medium shadow with moderate blur and spread. The shadow-sm is smaller, shadow-lg is larger, and shadow-xl is extra large.
📝 Syntax
intermediate2:00remaining
Correct Tailwind Shadow Class Usage
Which option correctly applies a large shadow to a button in Tailwind CSS?
Tailwind
<button class="???">Click me</button>Attempts:
2 left
💡 Hint
Tailwind uses short, consistent class names for shadows.
✗ Incorrect
The correct class for a large shadow is shadow-lg. Other options are invalid and will not apply any shadow.
❓ rendering
advanced2:00remaining
Visual Result of Shadow Classes
What will you see if you apply
shadow-xl to a card element?Attempts:
2 left
💡 Hint
Extra large shadows create a strong elevation effect.
✗ Incorrect
The shadow-xl class adds a large, soft shadow that makes the element look raised above the page.
❓ selector
advanced2:00remaining
Combining Tailwind Shadow Utilities
Which combination of Tailwind classes adds a medium shadow and a hover effect that increases the shadow size?
Attempts:
2 left
💡 Hint
Hover effects usually increase the shadow size for emphasis.
✗ Incorrect
shadow-md sets the base shadow, and hover:shadow-lg makes the shadow larger on hover, creating a nice interactive effect.
❓ accessibility
expert2:00remaining
Accessibility Considerations with Box Shadows
Which statement best explains how to use box shadows accessibly in Tailwind CSS designs?
Attempts:
2 left
💡 Hint
Accessibility means making sure everyone can see and understand the design clearly.
✗ Incorrect
Good accessibility means using shadows that help separate elements without causing confusion or reducing readability, especially for users with vision challenges.