0
0
Tailwindmarkup~20 mins

Box shadow utilities in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Box Shadow Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Tailwind Box Shadow Classes
Which Tailwind CSS class applies a medium-sized shadow with a subtle blur and spread?
Ashadow-md
Bshadow-lg
Cshadow-sm
Dshadow-xl
Attempts:
2 left
💡 Hint
Think about the naming convention: sm is small, md is medium, lg is large.
📝 Syntax
intermediate
2: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>
Ashadow-large
Bshadow-lg
Cshadow-big
Dshadow-large-md
Attempts:
2 left
💡 Hint
Tailwind uses short, consistent class names for shadows.
rendering
advanced
2:00remaining
Visual Result of Shadow Classes
What will you see if you apply shadow-xl to a card element?
AA very large, soft shadow around the card making it appear elevated
BNo shadow visible on the card
CA small, sharp shadow only on the bottom edge
DA colored shadow with red tint around the card
Attempts:
2 left
💡 Hint
Extra large shadows create a strong elevation effect.
selector
advanced
2:00remaining
Combining Tailwind Shadow Utilities
Which combination of Tailwind classes adds a medium shadow and a hover effect that increases the shadow size?
Ashadow-sm hover:shadow-sm
Bshadow-xl hover:shadow-md
Cshadow-lg hover:shadow-md
Dshadow-md hover:shadow-lg
Attempts:
2 left
💡 Hint
Hover effects usually increase the shadow size for emphasis.
accessibility
expert
2:00remaining
Accessibility Considerations with Box Shadows
Which statement best explains how to use box shadows accessibly in Tailwind CSS designs?
AAvoid shadows completely because they always reduce readability
BAlways use the largest shadow available to make elements stand out regardless of contrast
CUse shadows with sufficient contrast and avoid shadows that cause visual confusion for users with low vision
DUse colored shadows with bright colors to attract attention, ignoring contrast
Attempts:
2 left
💡 Hint
Accessibility means making sure everyone can see and understand the design clearly.