📐Opacity
Also known as Transparency (Design), Layer Opacity, Opacity (CSS)
How solid a thing looks. At 0% you see right through it. At 100% it is solid.
Think of it like
Frosted glass lets a bit of light through. Clear glass lets it all through, and a wall lets none.
Example
A dialog opens over a page. A black layer at 50% opacity dims the page, so the dialog stands out.
Why it matters
It lets you dim, layer and soften things without adding new colors.
Definition
Example code
css
.backdrop {
background: black;
opacity: 0.5;
}Common mistake
Key takeaways
- 10 to 100. From not seen at all to fully solid.
- 2Mixes with behind. The layer below shows through.
- 3Watch contrast. Faded text gets hard to read.