I changed one number and the whole page changed
Confession for the notebook: on small jobs, my type sizes are often just a list of numbers I like the look of. 16 for reading, 20-ish for a subheading, something big for the top. Picked by eye, typed in by hand, and scattered through the file like socks through a house.
I know better. It works fine until somebody says “could it all feel a bit bolder?” and then I’m hunting through every heading, changing 30 to 34 and 42 to 48 and hoping I haven’t missed one. I always miss one.
Today I made myself set a page up properly, and I’m a little embarrassed by how pleased I am.
Properly means I stop choosing sizes and choose a rule. Pick a starting size and a ratio, and every size is the one before it multiplied by the ratio. Start at 16 px with a ratio of 1.25 and you get 16, 20, 25, 31, 39. Five sizes that obviously belong together, and I only made two decisions.
In the code there’s one line that matters:
--ratio: 1.25;
Everything else is worked out from it. The fancy word for this is parametric, which just means the design is a recipe with a few numbers you’re allowed to change.
Then came the fun part. I changed 1.25 to 1.333 and saved. The sizes became 16, 21, 28, 38, 51, and the whole page stood up straighter. Same layout, same words, and it went from polite to confident on the strength of three digits.
I changed it back. Then forward again. I did this more times than I’d like to admit, like a child with a light switch.
Where I got greedy
Naturally I pushed it. A ratio of 1.5 gives 16, 24, 36, 54, 81. On the big monitor, the 81 px heading looked magnificent. On my phone it was one word per line, like a ransom note.
So the rule needs limits, which is fair. Most rules I make up do. The lesson I keep having to relearn is to look at the extremes (the smallest screen, the longest heading) before I fall in love.
Then I got greedy in the other direction and started turning everything into a number I could change. Spacing, corner roundness, line thickness, the lot. By the time my tea had gone cold I had a page with about twenty dials on it and no opinions. If everything can change, I haven’t designed anything. I’ve built a mixing desk.
I stripped it back to three: the starting size, the ratio and one unit of spacing that all the gaps are multiples of. Everything else is simply decided, by me, like in the old days.
The cleverness is nice, but it isn’t why I’ll keep doing this. Next time someone asks for “a bit bolder”, I’ll change one number while they watch, and we can talk about how the page feels. Nobody has to wait while I go looking for the heading I forgot.
Note to self: decide the rule, then check it on the phone before getting smug.
Choose the rule and let it choose the sizes, then check it on the phone before getting smug.
AI & making This entry is about working with AI tools or the 3D printer. The opinions are all mine.