Skip to main content

Opacity

Control the opacity of elements with simple, one-class utilities.

Opacity utilities

Classopacity
.opacity-00
.opacity-100.1
.opacity-250.25
.opacity-500.5
.opacity-750.75
.opacity-1001
100
75
50
25
<div class="opacity-75">...</div>

Usage

Opacity utilities are used heavily in components like buttons (disabled state) and toasts. You can combine them with color utilities for expressive, translucent UI.