Skip to content

3D Color Mapper & Sandbox

Distribute color palettes across mockups interactively. Drag to spin the floating 3D website stack, adjust isometric spacing depth, customize individual layers, and export tailored Tailwind theme configurations.

Palette Slots

#FFFFFF
#7F77DD
#F8FAFC
#2C2B30
Rotate X (Tilt) 55°
Rotate Z (Spin) -35°
Exploded Depth 30px
Drag to spin • Click layers to map
Sign Up
Copied configuration!

What the 3D mapper maps, and what it does not

What it does

Assigns four palette colours to five layers of an isometric website mockup — canvas background, sidebar navigation, content cards, heading text and CTA button — and renders them as a stacked 3D scene so you can judge depth, hierarchy and contrast together. It is a layer mapper, not a colour-space converter: your four hex values are placed on the layers exactly as entered, and nothing is transformed into Lab, LCH or OKLCH.

When you would use it

You have a palette and need to know whether it survives contact with an interface: does the card read against the canvas, does the CTA stand out without vibrating, does the sidebar need its own text colour. It is also the quickest way to produce role-named tokens (background / sidebar / card / text / button) instead of colour-named ones.

How to use it

  1. Set the four palette slots. The defaults are a near-white canvas, an indigo accent, a surface white and a near-black ink.
  2. Assign each of the five layers to one of the four slots. Layers can share a slot — the default mapping gives both Heading Text and Sidebar Navigation the same dark slot.
  3. Drag the mockup to spin it, or use the sliders: Rotate X (15–85°, default 55°), Rotate Z (−180° to 180°, default −35°) and layer spacing depth (5–75 px, default 30).
  4. Switch the export tabs and copy the mapping as a Tailwind theme block, CSS custom properties, Sass variables or Figma token JSON.

Worked example — the default mapping, exported

With the default slots (#f8fafc, #635bff, #ffffff, #0a2540) and the default assignments — background→slot 1, sidebar→slot 4, card→slot 3, text→slot 4, button→slot 2 — the Tailwind export is exactly the block below. Note that sidebar and text deliberately share one slot: a dark navy that works both as a panel fill and as body ink, which is why the mapper shows them as separate layers carrying the same colour.

colors: {
  theme3d: {
    background: '#f8fafc',
    sidebar: '#0a2540',
    card: '#ffffff',
    text: '#0a2540',
    button: '#635bff',
  }
}

How the calculation works

The mockup is a CSS 3D stack. Each layer is translated on the Z axis by a multiple of the depth value (sidebar 1×, cards 2×, button 4×) and blurred in proportion, which is what produces the floating look; the whole scene is one rotateX() rotateZ() transform on the container, so dragging only changes two numbers. When you assign a slot to a layer, the mapper also chooses black or white for that layer's own text using a plain luminance test — 0.2126 R + 0.7152 G + 0.0722 B against a 0.6 threshold — so a dark card automatically gets light text. That is a readability fallback, not a WCAG measurement.

Limitations

  • Four slots, five layers. If you need five distinct colours, two layers must share.
  • The automatic black/white text choice uses a luminance threshold, not a contrast ratio. It can put white text on a mid-tone that fails 4.5:1 — check the pair in the contrast checker.
  • The 3D scene illustrates hierarchy; it is not a layout. Only the colour tokens are exported, with no spacing, type or shadow values.
  • It does not convert colour spaces or generate palettes. Hex in, hex out.
  • Layer text colours are not part of the export — the exported tokens are the five fills, and you choose the text colour yourself.