What it does
- Five components: buttons, a card, a list row, a toast and a form field
- Three spacings each, drawn as tinted bands you can see and change
- Tap the step of the scale it was meant to be, or fine-tune with the slider
- The right steps and the reason behind them after every round
FAQ
What is a spacing scale?
A short list of allowed distances for paddings, gaps and margins, usually built on a 4 px base: 4, 8, 12, 16, 24, 32, 40, 48. Designers pick from the list instead of typing any number.
Why 4 and 8 px?
Eight divides cleanly, matches common line heights and keeps tap targets in round numbers. Four gives the finer steps inside controls where eight would be too coarse.
What do I do with a value that is off the scale?
Snap it to the nearest step. A value one or two pixels off a step is almost always a drifted copy of it, and adding a new step makes the system noisier.
📖 Spacing scale: the 4 and 8 px grid for paddings and gaps
More free tools
- Palette Generator - Pick a hue, choose a color harmony, and get a full accessible palette with live AA/AAA contrast checking.
- Contrast Checker - Paste two colors, see the WCAG ratio, and fix a failing pair with a single click.
- Image → Palette - Drop in an image, pull out its dominant colors, and see which pairs are safe to use together.
- Color Blindness Simulator - See a palette through protanopia, deuteranopia, tritanopia and achromatopsia - and catch colors that collapse.
- Type Scale Generator - Pick a base size and a ratio, get a full type scale with live preview, fluid clamp() and tokens to copy.
- Gradient & Mesh Generator - Linear, radial, conic or blobby mesh gradients - drag the points, shuffle the colors, copy the CSS.
- Component States Explorer - Buttons, inputs and cards in every state - hover, focus, pressed, disabled, error - side by side with contrast checks.
- Design Token Converter - Paste W3C tokens, Tokens Studio or Figma Variables JSON and get CSS, SCSS, Tailwind v4 or SwiftUI - aliases included.
- Motion & Easing Playground - Drag cubic-bezier handles, tune a real spring, watch them race, and export motion tokens as CSS linear(), Framer Motion or SwiftUI.
- Auto-Trim - Drop in PNGs and get them back without the empty transparent edges - in bulk, in your browser, as one ZIP.
- Text Expansion Stress Test - See how a UI breaks in German, Spanish or pseudo-localized text - and which CSS fixes make it survive translation.
- Mini A11y Audit - Paste HTML and find missing alt text and labels, unnamed buttons, heading jumps, tiny tap targets and low contrast.
- Multi-size Preview - One message laid out across social and display-ad sizes, with platform safe zones and a draggable focal point. Export every PNG.
- Mobile Preview - Open any website inside iPhone, Pixel, Galaxy and iPad frames at their real viewport sizes. Rotate it or compare four devices at once.
- Hue Hunt - Match five colors by eye with hue, saturation and lightness. Scored by perceptual distance, with a daily challenge to share.
- Pass or Fail - Twenty quick rounds: does this text pass WCAG AA contrast? Trust your eye, then see the real ratios.
- Optical Eye - Fix seven layout flaws by eye: center a play icon, even out padding, size a circle against a square.
- State Panic - Components fall with something happening to them. Pick the right UI state before they hit the floor.
- Easing Golf - Mini golf with animation curves: shape a cubic-bezier so the puck hits every flag on time. Par is three.
- Contrast Survival - The background keeps shifting. Hold the text lightness so it passes WCAG AA, then AAA, as long as you can.
- Token Rush - Swap hard-coded values for the right design tokens, fast. Then flip the theme and see what breaks.
- Kern Me - Space six words by eye. Each has one letter pair too tight or too loose; the answer is the font designer’s own kerning.
- Tab Order - Tap a screen’s buttons, links and fields in the order the Tab key should visit them. Five screens, one WCAG rule.
- Weight Watcher - A sample hides its font weight, size or line height. Slide yours until the two match, six rounds, with the real value after each.
- Radius Match - A rounded box inside a rounded box. Slide the inner radius until the gap is even. The rule: outer radius minus padding.