writing / post19 nov 2026

One red

My site has one red, for the main action and for failures, so an action that can't be undone isn't red here, and on 14 November one commit took red tints out of 20 files that broke the rule.

this post

published
2026-11-19
reading
06 min
parts
8
the exhibit: ~ / system

Twenty files, one red

On 14 November 2026 one commit took red tints out of 20 files of this site.

The site has one red, #ff3b30, and a rule about where it may show. Those 20 files didn't keep the rule. They'd come in with copied code, and nothing checks for that.

The red belongs to Composite, the design system of this site. It has near-black, an off-white it calls bone, a few greys in between, and the red, which it calls signal. The Lab has a page that breaks the rule on purpose: The One Red. This post is about keeping it. An action that can't be undone has no red, and the tints came in with the copied code.

Two uses and no third

Signal has two uses. The glossary has had both since 25 September 2026, and the red itself came into the code one day later. The decision came first. I wanted the red to mean one thing, and the code followed.

The first is the Primary action: the one action in a view, a page or a screen that may use the red fill. In my training app that's the button brief me.

The second is a Fault: "A state where something the visitor started has failed; the only other use of red."

That's it. No third.

What red doesn't do

The design document says red never decorates, never colours a link, and never appears in code. The other colour jobs are closed to it too:

  • Links have no colour of their own. They're bone, like the text.
  • Code is in greys only, and keywords are heavier. The comment on the code colours in the stylesheet says: never signal.
  • Emphasis is weight or case, not colour.
  • Pictures go through a filter that leaves them in the two inks, so a photo brings no colour of its own.
  • Warnings are amber. A wait is amber too: a small square that blinks.

A name from somewhere else

The buttons here come from shadcn/ui, so the code is copied in and then it's ours. Its button has a variant called destructive. You know the one: in most interfaces it's the red delete button.

Here that's not one of the two uses. The commit that set the colours, on 26 September, has the decision in its message:

The destructive variant is for Faults only, as the glossary says.

The name stayed in the code anyway. The token behind it points at the one red, --destructive: var(--signal). So the stylesheet has one red value under two names.

No red on the undo

An action that can't be undone has no red in this system. It has a Confirm, a part that asks one question before the action goes ahead. The glossary entry for the Confirm says: never red.

The title of a Confirm is the question, like forget the x-t30 ii?. Under it is one line that says what's lost. The button is a verb, forget, and cancel sits beside it. The code of the part asks for a verb there, and its example isn't ok.

A button with the destructive variant does exist. It's a red frame with red text, and the design document gives it one job: the action of a Fault itself, like retry.

Three reds on one button

Then the copied parts brought their own red tints. Until 14 November the class string of the destructive button had this in it:

the destructive button until 14 November (shortened)text
bg-destructive/10 hover:bg-destructive/20
dark:bg-destructive/20 dark:hover:bg-destructive/30

This site is dark only, so the second line was the one that showed. A fill of red at 20%, and at 30% with the pointer over it. Each is a red of its own. Add the full red of the text and you get three, on one button, in a system called one red. That annoyed me.

The system has a rule against this for every colour: a state, like hover or pressed, is a solid fill or a token colour, never a change of opacity. The commit of 14 November applied the state rules to the copied parts. It touched 58 files, for motion, focus and disabled states too, and 20 of them lost a red tint. One part of its message is about red:

Red: no destructive tint is left. A destructive Button, Badge or Bubble is a red frame; Alert and Attachment Fault text is solid red. Menu items lose the destructive variant.

the destructive button now (shortened)text
border-destructive text-destructive hover:bg-destructive

The red button had the same fault. In September its hover was red at 90%. The commit message of that day says why it wasn't 80%: at 80% the text on the button had a contrast of 3.85 to 1, and at 90% it had 4.64 to 1. Since 14 November the hover of the red button is bone.

The same red, three apps

Three apps of mine use the same system, and each states the rule in its own place.

  • terminal home, the home screen of my TV: the comment at the top of its colours says red belongs to one control only, the trending card's open button, "and never moves".
  • resync, my iPhone app for the camera: the glossary calls its shutter the red square that fires the camera, the one Primary action of that screen.
  • Durandal, my iPhone training coach: its product document allows one red action on a screen, brief me. The app also gives a word for the day, and one of the three words is ease. The system's drawing of that part says ease is advice, so it's never red and never amber.

Icons follow the rule too. An icon is red only in a Fault, and the dots of its second tone stay grey, so no red tint shows.

What's still open

  • No script checks the rule. It lives in the glossary and in the design document. The tests of the system check the value of the red and its contrast, not where it's used. A new copied part can bring a tint back.
  • Six pieces in the Lab use the red. One is the page that breaks the rule on purpose. The other five are terminal-home, telegraph, pinned, reflow and match-foreground. No list checks each of them against the two uses.
  • Two names for one value. destructive and signal are the same red, and a person reading the code can expect destructive to mean a delete button, as it does in other projects.

It's too early to say if a check is worth writing. For now the rule lives in two documents, and I know that's thin.

So the site has one red under two names, and a rule that lives in two documents. Open any page: red means do this, or this broke. A third red would mean a tint got in again.