Lesson 41 +20 XP

Effects Cheatsheet

Effects Cheatsheet

Shadows

GoalClasses
Small shadowshadow-sm
Defaultshadow
Largeshadow-lg / shadow-xl
Coloredshadow-md shadow-sky-500/20
Innerinset-shadow-sm
Drop shadow (logo)drop-shadow-lg

Opacity & blend

GoalClasses
50% opacityopacity-50
Multiply blendmix-blend-multiply
Screen blendmix-blend-screen
Isolate blendingisolate

Filters

GoalClasses
Blurblur-md
Graygrayscale
Invertinvert
Sepiasepia
Brightenbrightness-150
Saturatesaturate-150
Hue rotatehue-rotate-90
Drop shadowdrop-shadow-lg

Backdrop filters

GoalClasses
Blur backdropbackdrop-blur-md
Gray backdropbackdrop-grayscale
Brighten backdropbackdrop-brightness-110
Glassmorphismbg-white/10 backdrop-blur-md

Common patterns

  • Hover grayscale: grayscale hover:grayscale-0 transition
  • Glass navbar: bg-white/80 backdrop-blur-md sticky top-0
  • Colored glow: shadow-lg shadow-sky-500/30

TL;DR

  • shadow- and drop-shadow- for depth.
  • mix-blend- vs bg-blend- (backdrop vs own backgrounds).
  • backdrop-blur-* enables glassmorphism.
  • Filters combine and don't affect layout.