Skip to content

Glossary: Tailwind CSS

Opacity modifier

Also written: bg-black/50, opacity-50

A slash and number after a color class, like `bg-black/50`, makes just that color see-through. `opacity-50` instead fades the whole element and its contents.

Where the book teaches it

Related terms

Palette