Skip to content
Tools & Workflow

Starter kit: the Cubefold CSS library

Our cube, grid and shadow utilities in one download.

Palettes for isometric work start from one hue. Pick it, then shift only the lightness for the three faces, and cool the shadow slightly towards blue. Adding a second hue for accents is fine, but keep it to small elements such as windows or buttons, or the scene starts to look like a patchwork.

At a glance

Layer budget
Page type Transformed elements Notes
Article Up to 12 Hero and inline figures
Landing page Up to 40 Flatten static scenery
Dashboard Up to 8 Charts only

Start with the floor

Responsive isometric scenes need a plan for narrow screens. Sometimes the answer is to scale everything down with clamp(), and sometimes it is to hide secondary blocks entirely. What rarely works is letting the scene overflow sideways, which makes the page scroll horizontally and feels broken on a phone.

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.

Isometric drawing keeps every parallel line parallel. There is no horizon and no vanishing point, so a block at the back of the scene is exactly as large as one at the front. That sounds like a limitation, but it is the reason the style works so well for diagrams: you can measure anything, compare anything, and line things up without fighting perspective.

Download

cubefold-angle-cheatsheet.pdfOne printable page of isometric angles and ratios. 813 B
Download cubefold-angle-cheatsheet.pdf

Questions

Is isometric art accessible?

Decorative art is fine when hidden from assistive technology. Informative art needs a text alternative.

How many cubes are too many?

Once the Layers panel shows more than about forty layers, flatten the static parts into SVG.

Why does my cube look flat?

Something on an ancestor, such as overflow: hidden or a filter, is flattening the 3D context.

Which angle should I use?

Use true isometric for CSS and the 2:1 ratio for pixel art. Readers will not notice the difference.

Share

Written by

Sam Whitfield

Sam makes tile-based games in the evenings and brings the sorting tricks back to the blog. Currently building a very small harbour.

All 17 posts by Sam Whitfield

11 comments

  1. Alex Moreau

    This finally made the order of rotations click for me. I had them the wrong way round for weeks.

    Reply to Alex Moreau
    1. Sam WhitfieldAuthor

      Fixed now, thanks for spotting it.

      Reply to Sam Whitfield
  2. June Park

    Works nicely in Firefox. Safari needed the prefixed transform-style for us.

    Reply to June Park
  3. Soren Dahl

    The part about layer counts was eye-opening. Our landing page had over a hundred.

    Reply to Soren Dahl
    1. Sam WhitfieldAuthor

      Thanks! A follow-up is already in the drafts.

      Reply to Sam Whitfield
  4. Gus Lindgren

    Tiny typo in the second code block: the unit is missing on the translate value.

    Reply to Gus Lindgren
  5. Tess Walsh

    Love the palette. Could you share the exact lightness values?

    Reply to Tess Walsh
  6. Eli Novak

    Any plans for a video version of this one?

    Reply to Eli Novak
  7. Lena Vogel

    This is the clearest explanation of draw order I have read.

    Reply to Lena Vogel
    1. Pia Jensen

      The templates are in the downloads section of the reference post.

      Reply to Pia Jensen
  8. Rosa Medina

    The paper cube exercise sounds fun. Are the templates available somewhere?

    Reply to Rosa Medina

Leave a comment

Your email address won’t be published. Required fields are marked.