Opacity
How much an element hides what is behind it.
See it on the 3D treeGoing deeper
Usually set from 0 (invisible) to 1 or 100% (solid). Applied to a whole layer or element, it fades everything inside it, including text and borders. To make only a background see-through, give that colour its own alpha value and leave the element fully opaque.
Why it matters
It lets you layer, dim and de-emphasise, but the final colour depends on whatever sits behind, which can break contrast unpredictably.
In practice
Behind a dialog you place a black layer at partial opacity, so the page stays recognisable while clearly out of reach.
Common mistake
Fading text to make secondary labels, then finding it unreadable over some backgrounds. A solid, tested colour is safer.
Connected terms
- Alpha ChannelAn alpha channel stores transparency per pixel; opacity often sets it for a whole layer.
- Blend ModeOpacity sets how much shows through; blend mode sets how the colours combine.
- GlassmorphismThat style relies on semi-transparent panels, usually with background blur.
- OverlayOverlays often use partial opacity to dim the content beneath.