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.
| Class | Opacity Value | CSS Property |
|---|---|---|
.opacity-0 | 0% | opacity: 0 |
.opacity-5 | 5% | opacity: 0.05 |
.opacity-10 | 10% | opacity: 0.1 |
.opacity-15 | 15% | opacity: 0.15 |
.opacity-20 | 20% | opacity: 0.2 |
.opacity-25 | 25% | opacity: 0.25 |
.opacity-30 | 30% | opacity: 0.3 |
.opacity-35 | 35% | opacity: 0.35 |
.opacity-40 | 40% | opacity: 0.4 |
.opacity-45 | 45% | opacity: 0.45 |
.opacity-50 | 50% | opacity: 0.5 |
.opacity-55 | 55% | opacity: 0.55 |
.opacity-60 | 60% | opacity: 0.6 |
.opacity-65 | 65% | opacity: 0.65 |
.opacity-70 | 70% | opacity: 0.7 |
.opacity-75 | 75% | opacity: 0.75 |
.opacity-80 | 80% | opacity: 0.8 |
.opacity-85 | 85% | opacity: 0.85 |
.opacity-90 | 90% | opacity: 0.9 |
.opacity-95 | 95% | opacity: 0.95 |
.opacity-100 | 100% | opacity: 1 |
Code Examples
Overlay on an image — darken a background behind text or UI:Best Practices
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.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.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.
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.