Design tokens and Nunito: one visual language for Arrow Puzzle
How a handful of named constants for spacing, radius, colour and type made Arrow Puzzle look consistent on phones, tablets and desktop browsers.

When we first built Arrow Puzzle, every screen picked its own padding, its own corner radius and its own shade of grey. That worked until we tried to make the game look good on a phone, a tablet and a desktop browser at the same time. This post is about the small, unglamorous decision that fixed it: design tokens.
What a token is, here
A token is just a named constant that lives in one place. Spacing runs on a seven-step scale from 4 to 48 logical pixels. Corner radii come in four sizes: 8, 12, 16 and 24. Every tappable thing is at least 48 pixels across, the usual guidance for touch targets. Window breakpoints and maximum content widths are tokens too, so a layout never hard-codes a number it cannot explain.
Colours live next to them, in a theme file that defines a light set and a dark set with the same structure: background, grid, empty cell, elevated surface, star colours and shadow.

One palette across both themes
The ten piece colours from our design document stay identical in light and dark mode, so a red snake is the same red everywhere. Only the surroundings change. That keeps the puzzle readable at a glance and means we never have to re-learn which colour is which when the theme flips.
One typeface
We bundled Nunito, a rounded sans-serif under the SIL Open Font License, as a single variable-weight file and set it as the font for the whole text theme. It ships inside the app, so Android, iOS and the web build all render the same letterforms.
Checking the rules hold
Tokens only help if the screens actually use them, so we back them with tests: an overflow smoke test that renders the main screens across a matrix of window sizes, plus accessibility and reduced-motion checks. Pack banner gradients are deliberately dark enough for white labels to reach a 4.5:1 contrast ratio.
What we learned
The payoff came later. Reworking Level Select, Home and Settings was far cheaper because the vocabulary already existed. If you are starting a game UI, write the tokens down before the second screen, not after the fifth.
Arrow Puzzle is free to play in your browser at https://arrow-puzzle.nodevstudios.com and on Google Play.
More from the Arrow Puzzle devlog
All posts
21 November 2026Building a puzzle game with Flutter and RiverpodA look at how Arrow Puzzle is organised: logic kept apart from the UI, custom painters for the snakes, and a small, testable core.
17 November 2026How we make sure every Arrow Puzzle level can be solvedA puzzle that cannot be solved is a bug. Here is how Arrow Puzzle generates dense, winding levels and verifies each one before it ships.
15 November 2026A logo drawn in code, and a Home screen to matchArrow Puzzle's logo is not an image file. It is four game pieces and a wordmark painted by the same code that draws the board.