Faragiri
English

Choose a language 2

Learn Visual design Interface design · Layout, Spacing, Colour in an interface and 2 more

A housekeeping tablet, in numbers: seven spacing steps, nine tokens named for their jobs, four elevation levels, and why dark mode is not an inversion.

5Branches
5Nodes below
3Depth

Recommended Before This

0 / 1

Every number on a screen came from somewhere, and there are only two places: a scale, or somebody's afternoon. A housekeeping app where the padding is 12, 13, 16 and 20 is not four decisions, it is one decision taken four times by three people.

Dmitri is rebuilding the tablet app a hotel's housekeeping team uses in Tallinn: a list of rooms, a status per room, and a photograph attached when something is broken. It is held at arm's length in a corridor by somebody wearing gloves, which decides most of what follows.

One spacing scale, and nothing between its steps

Spacing scale 4, 8, 12, 16, 24, 32, 48, and nothing between. Seven values for every gap, padding and margin in the app, which sounds restrictive until you count the distinct spacing values in the file it replaced, which was 31. A scale is not about beauty, it is about the second person: a value on the scale can be matched by somebody who was not in the room, and 13 cannot.

Seven steps, zero in-between

The seven allowed spacing values that replaced 31 ad-hoc measurements

Every gap, padding and margin comes from one stepped ladder from 4 to 48 so a second designer never guesses between 12 and 13.

Allowed spacing steps in pixels on Dmitri's housekeeping tablet app.

  1. 4Step 1
  2. 8Step 2
  3. 12Step 3
  4. 16Step 4
  5. 24Step 5
  6. 32Step 6
  7. 48Step 7

The original file held 31 distinct spacing numbers. Collapsing them to seven named steps turns design reviews from taste debates into simple scale checks where 13 is a bug rather than a preference.

Modular Type Scale & CSS Flex/Grid Motion Lab

Test harmonic typography ratios and live Flexbox/Grid layouts with 1-click CSS export.

From that follows the rule worth writing down, because it changes how a review works: a value not on the scale is a bug, not a preference. It moves the conversation from whether 13 looks better than 12 to whether the scale needs a step, which is a different and much rarer question. Applying it across a resizing screen is a scale, applied consistently.

Six precision milled brushed-steel gauge blocks lined in clean disciplined geometric increments over muted emerald-sage linen.
Using one strict spacing scale removes arbitrary pixel nudges and creates visual rhythm automatically across every screen.

Colour is named for its job

Name a token for its job: surface, ink, action, danger. Not blue-500, not grey-100. A token called blue-500 has to be renamed the day the brand changes and cannot be renamed the day a designer decides the action colour should be green, whereas an action token survives both. Dmitri's app runs on nine: surface, surface-raised, surface-sunken, ink, ink-quiet, line, action, danger, and one for the four room statuses.

Nine tokens, two modes

What each mode does with the same nine names

The names never change and only two of the nine behave the same way in both columns.

Light modeA grey page with white cards on it
Dark modeA nearly black page, where a shadow does nothing
surfaceLight greyNearly black
surface-raisedWhite, plus a shadowLighter than the page, shadow does nothing
inkNear blackNear white, and never pure white
actionThe same hue, darkerThe same hue, lighter
How depth is carriedShadowLightness

Neither column is derived from the other, which is the point: a dark mode generated by inverting the light one produces the last row wrong and everything above it slightly off.

Then the thing everybody gets wrong in the second week: dark mode is not an inversion; surfaces get lighter as they rise. In light mode a raised card is white on a grey page and a shadow puts it above. In dark mode the page is nearly black, a shadow on nearly black is invisible, and the card reads as raised because it is lighter than what it sits on. So elevation is a shadow in light mode and a lightness step in dark, and a token set that only flips its values produces a dark mode where nothing has any depth. The full argument, including what happens to the status colours, is semantic colour, states and dark mode.

Four levels of elevation, with their numbers

Four elevation levels: base, raised, overlay, modal, and no fifth, because a fifth cannot be told from the fourth at arm's length. The values in light mode: nothing at base, 0 2px 4px at 12% for raised, 0 4px 12px at 16% for overlay, and 0 8px 24px at 20% for modal. Each step roughly doubles the blur and adds a little opacity, which is what makes the four read as a sequence rather than as four shadows.

Four levels, light mode

What sits on what, and the shadow that says so

Each step roughly doubles the blur and adds a little opacity, which is what makes four shadows read as one sequence.

  1. BaseThe page itself. No shadow, and everything else is measured from hereno shadow
  2. RaisedRoom cards. Lifted just enough to be separate from the list behind them0 2px 4px at 12%
  3. OverlayThe status picker, which appears over a card and closes on a tap outside0 4px 12px at 16%
  4. ModalReport a fault. Takes the whole screen's attention and traps focus0 8px 24px at 20%

There is no fifth level because at 60 cm in corridor light nobody can separate a fifth from the fourth. The stack says what rests on what; it says nothing about which is used most, which is the base by a very long way.

In dark mode those same four are lightness steps of about four points each on the surface token, and the shadows stay but do almost nothing. Getting this to mean something rather than decorate is elevation that means something.

Four matte charcoal square basalt plinths stacked in crisp stepped elevation tiers casting soft progressive shadows over deep emerald-teal cloth.
Defining four numbered elevation levels gives cards, popovers, and modals predictable depth instead of inventing random drop shadows.

Type, at the distance it is actually read

The tablet sits in a trolley and is read from about 60 cm by somebody standing. That gives 14, 16, 20 and 28 at arm's length on a tablet: 14 for the room number's label, 16 for body, 20 for the room number, 28 for the status. Four sizes, and the smallest is 14 rather than 12 because 12 at 60 cm in corridor light is a guess.

Physical posture

One 60 cm trolley distance drives four separate screen decisions

Because the tablet sits at arm's length in a hotel corridor, type sizes, hit targets, line widths and rotation layout all trace back to one distance.

  • Four-size type scale14, 16, 20 and 28; nothing smaller than 14
    • 14 for room number labels (12 is a guess)
    • 16 for body text
    • 20 for room numbers
    • 28 for room status
  • Line lengthMeasure tuned for quick corridor scans
    • Short enough to read while pushing a trolley
60 cm reading distance
  • Touch target floorOperated while standing with gloves on
    • Sized for reach rather than desk precision
  • Rotated tablet layoutStructure keeps hierarchy in either orientation
    • Same four sizes hold across rotation

Writing the 60 cm posture on page one of the design file gives every later typography and layout rule a physical reason instead of a taste argument.

The same distance decides the touch target and the line length, and it is the one input that all four of the leaves below share, which is why it is worth writing on the first page of the file. Sizes and their ratios on a screen are sizes, weights and a readable scale, and the structure they sit in when the tablet is rotated is structure on a screen that resizes.

The stall is making it look designed instead of making it decided

A screen can be tidied endlessly, and tidying feels like progress because the result improves every time. What it never produces is a rule somebody else can follow, so the second screen is tidied separately, by a different person, to a different set of values, and the app drifts apart at exactly the speed it is being improved.

Five-minute audit

Count the distinct padding values in the file to tell tidying from a system

Endless per-screen polishing improves one view while drifting away from every other view; a five-minute count exposes which path you are on.

How many distinct padding values appear across the design file?
  • Under ten values
    A decided systemRules hold even when someone else builds the next screen
    • A second person matches spacing without guessing
    • Reviews verify scale steps instead of debating 12 vs 13
  • Over twenty values
    Screen-by-screen tidyingEach screen looks polished alone and drifts from the rest
    • Different people invent slightly different numbers
    • More tidying never converges the product

Tidying feels productive because the single screen in front of you gets cleaner, yet without shared constraints the app fragments at the exact pace it is polished.

The tell is a count and it takes five minutes: open the file and count the distinct values used for padding. Under ten and there is a system. Over twenty and every screen has been decided on its own, however good each one looks, and no amount of further tidying converges them.

An unstructured scatter of rough natural stones on dark wood contrasted beside a crisp three-by-three grid of uniform cut slate squares on sage linen.
Chasing polish with decorative flourishes makes interfaces noisy; visual design holds together when hierarchy, rhythm, and contrast are decided first.

What to open

Figma has been the default since 2019, when it took the seat from Sketch, and the free tier covers this. The feature that turns the scale above into something enforceable is variables: the seven spacing values and the nine colours are defined once, and a designer who wants 13 has to create a variable called 13, which is a thing somebody notices in a review. Without them a scale is a document nobody opens.

What to open

Turning scales from a forgotten document into enforced variables

Figma variables make off-scale numbers visible in review, self-hosted Penpot protects unreleased work, and shared kit rules carry tokens across teams.

Enforceable visual rules
  • Figma variablesDefault since 2019; sneaking in 13 requires creating a named variable reviewers spot
  • Self-hosted PenpotFree open-source alternative when unreleased hotel software cannot sit in public cloud
  • Component and kit rulesHolds the tokens steady across component states, sizes and multi-year teams

Seven spacing steps, nine semantic colours, four elevations, four type sizes

A scale written in a static doc gets ignored under deadline; encoding it as variables puts friction directly on any undocumented value.

Penpot is the free and open source alternative, self-hostable, and it matters for teams that cannot put an unreleased hotel product in somebody else's cloud. It replaced having no option at all in that situation, which was the honest state of things until recently.

What none of this settles is what happens when the same values meet a component that has three sizes and four states, where seven spacing steps multiply into something nobody can hold in their head: the parts an interface is assembled from. Keeping the values true across three teams and two years is a shared kit, and the rules for using it, and the distance decision that set the type sizes is also what sets the target sizes, which is one interface, every screen size.

Inside this, 5

Alongside this

Above this