Skip to content
Experiments

FAQ: using isometric art in product UI

Answers to the questions product teams ask us most.

Performance is rarely a problem for one hero cube, but a scene with fifty transformed blocks is a different story. Each block may become its own compositing layer, and every layer costs memory. Open the Layers panel before you ship and count them. If the number surprises you, flatten the static parts into a single SVG.

At a glance

Isometric angles
Projection Angle Line ratio
True isometric 30° 1 : 1.732
Pixel art 26.57° 1 : 2
Dimetric 15° / 45° varies

Start with the floor

Tile engines figured out draw order decades ago. Sort by the sum of the column and row, draw from the smallest sum to the largest, and most scenes just work. Tall objects that span several tiles need special care, but the simple rule covers floors, walls and small props, which is most of what a blog illustration needs.

Download

cubefold-cube-starter.zipHTML and CSS for a shaded cube, with a hover state. 571 B
Download cubefold-cube-starter.zip

Questions

Can I use this without JavaScript?

Yes. Every scene in our tutorials is pure HTML and CSS; JavaScript only adds optional interactions.

Does it work on phones?

It does, as long as the scene is scaled with clamp() and never wider than the viewport.

Can I use the code in client work?

Yes. All tutorial code is MIT licensed, so you can use it anywhere with attribution in the source.

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

12 comments

  1. June Park

    Has anyone tried this with container queries? Feels like a good fit.

    Reply to June Park
  2. Gus Lindgren

    Our designer drew the scene in Figma and I rebuilt it with your approach in an afternoon.

    Reply to Gus Lindgren
  3. Alex Moreau

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

    Reply to Alex Moreau
  4. Hana Sato

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

    Reply to Hana Sato
  5. Dana Ortiz

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

    Reply to Dana Ortiz
    1. Tess Walsh

      Yes, container queries work well; we will cover them soon.

      Reply to Tess Walsh
  6. Eli Novak

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

    Reply to Eli Novak
  7. Nina Ahlberg

    We used the grid background on our docs site and it looks great with a dark theme too.

    Reply to Nina Ahlberg
    1. Quinn Adler

      Agreed, this is the part most tutorials skip.

      Reply to Quinn Adler
      1. Soren Dahl

        Glad it helped. The values are in the colour ratios reference.

        Reply to Soren Dahl
  8. Omar Haddad

    Bookmarked. The table alone is worth it.

    Reply to Omar Haddad
    1. Farah Aziz

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

      Reply to Farah Aziz

Leave a comment

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