Skill ID: VisualFlair_34
Description: Control how opaque or transparent an element is.
Where to apply: Overlays on images, disabled buttons, subtle background effects.
Key Tailwind Classes:
opacity-50
,
bg-black/50
(for background opacity)
Gotcha:
opacity-*
affects the
entire
element, including its text and any child elements. If you only want a semi-transparent background but fully opaque text on top, use background opacity utilities like
bg-black/50
or
bg-blue-500 bg-opacity-75
.