Colour contrast still applies to illustrations that carry meaning. A bar chart drawn as blocks needs enough contrast between the bars and the floor, and labels on the faces need the same contrast as body text. Decorative scenes have more freedom, but we still avoid pale blocks on a pale background.
What you built
- A cube with three shaded faces
- A floor grid from gradients
- A hover state that lifts the block
Dana Ortiz
Tiny typo in the second code block: the unit is missing on the translate value.
Chen Wei
This finally made the order of rotations click for me. I had them the wrong way round for weeks.
Alex Moreau
The paper cube exercise sounds fun. Are the templates available somewhere?
Sam WhitfieldAuthor
Thanks! A follow-up is already in the drafts.
Tess Walsh
Fixed now, thanks for spotting it.
Sam WhitfieldAuthor
The templates are in the downloads section of the reference post.
Kofi Mensah
Great write-up. Would love a follow-up on doing the same thing with SVG.
Omar Haddad
Is there a way to do the shadow without a pseudo-element? Our CMS strips empty spans.
Bea Kowalski
Bookmarked. The table alone is worth it.
Hana Sato
The part about layer counts was eye-opening. Our landing page had over a hundred.
Quinn Adler
Short and useful. More quick tips like this, please.