Got a project? Tell me about it

The notebook Process

Eleven greys later, I’m naming my colours first

I opened an old project file of mine tonight to borrow a button, and ended up counting greys instead. Eleven. Eleven slightly different greys in one small website, and I’m fairly sure I only ever chose three.

Nobody decides to have eleven greys. They arrive one at a time. A border that needed to be “a bit lighter”. Some small print that looked heavy late at night. Each one felt like a decision when I made it, and each one got made inside a button or a card, where no other part of the design could find it. So the next button made it again, slightly differently.

Giving the decisions names

The cure has a name that sounds more technical than it is: design tokens. A token is just a decision with a label on it. You decide once, write it down, and everything else points at the label instead of making up its own mind.

So for the tidy-up, before drawing anything, I made a list. It fits on a sticky note, which I think is the point.

  • colour-text: #1F2933, a blue-black that’s kinder than pure black
  • colour-text-muted: #52606D, for small print
  • colour-surface: #FFFFFF
  • colour-border: #CBD2D9
  • colour-action: #0B5CAD, the blue you’re allowed to click

Three greys, not eleven. Then the spacing: 4, 8, 12, 16, 24, 32 and 48 pixels, and nothing in between, however much I want 19.

The part I got wrong on the first go was the naming. My first list said blue-600 and grey-3, because that’s what the colours were. Then I pictured the day the blue becomes a green, which brands do, and half a website quietly using something called blue-600 that is now green.

So the names say the job, not the paint. colour-action is whatever colour means “click me” this year. colour-text-muted tells you where to use it without your having to see it. grey-3 tells you nothing, except that there are at least two others.

The button that built itself

Then I drew the button, and there was nothing left to decide. Background colour-action. White label at 16 pixels. Padding of 12 above and below and 24 at the sides. A line of 16-pixel text is 24 pixels tall the way I set it, so 12 plus 24 plus 12 makes a button 48 pixels high, which is comfortable under a thumb.

It took about four minutes. It matched the input field next to it, because both came off the same sticky note and couldn’t do otherwise.

What quietly delighted me is that the same list works on paper. The label stays and the value changes. colour-action is that blue on a screen. On a printed flyer it’s whatever ink mix the printer and I agree on after seeing a proof. One name, two recipes. I’ve tried matching a screen blue to a printed blue by eye before, and it’s a miserable way to spend an afternoon.

I’ll admit making a list first is not how I like to begin. I like to begin with the fun bit, the big heading or the hero image, and tidy up later. Later, it turns out, is how you get eleven greys.

The list felt slow for about an hour. After that everything was quicker, because the arguments about which blue and how much padding had already been had, once, with myself, on a sticky note.

Note to self: if a new grey turns up, it has to say what its job is before it’s allowed in.

Name a colour for its job, not its paint. A grey has to say what it’s for before it’s allowed in.

Say hello.

Got a project, a question, or an idea for something printed? I’d love to hear it.

Write to me