Full Opacity Scale
AtomicKit ships every 5% step fromopacity-0 through opacity-100 — 21 values in total. All classes map directly to the CSS opacity property.
Code Examples
Overlay on an image — darken a background behind text or UI:Best Practices
1
Use low opacity for overlays and media dimming
Values in the
opacity-10 to opacity-50 range work well for color washes, image overlays, and decorative background layers. They let the content underneath show through while shifting the visual tone.2
Use mid opacity for disabled and loading states
Values in the
opacity-60 to opacity-75 range clearly communicate that a component is temporarily inactive. The element remains visible and understandable, just visually de-emphasized.3
Scope opacity to the right layer
Apply opacity to a wrapper or background layer rather than the entire component when you only want to dim the background. This keeps text and interactive elements at full contrast while the decorative layer fades.
4
Avoid overusing transparency
Too many transparent layers stacked on top of one another can produce muddy, hard-to-read interfaces. If you find yourself using opacity to compensate for a color that’s too strong, adjust the color token instead.
Accessibility
Related Utilities
- Box Shadow — Add elevation and depth without affecting transparency.
- Colors — Use color tokens instead of opacity to achieve lighter fills and tints.