Text effects (stroke, shadow, gradient text) should support branding while preserving readability.
Safe effects
- Subtle text-shadow on large headings.
- Gradient text only for display headlines.
- Avoid effect-heavy body text.
A11y warning
Fancy text effects can reduce contrast and legibility for low-vision users.
Important interview questions and answers
- Q: Where should text effects be avoided?
A: Long-form content and critical instructional text. - Q: Why can text-shadow hurt readability?
A: Overblown blur lowers edge clarity and perceived contrast. - Q: Good compromise for branded headings?
A: Mild effect with strong fallback color and contrast checks.
Practice: Change one property in the playground and observe cascade + layout in DevTools.