Skip to content

Use thoughtbot's brand in /diff-explainer - #68

Merged
stevepolitodesign merged 2 commits into
mainfrom
claude/rails-consultant-issue-61-97b1da
Nov 6, 2026
Merged

stevepolitodesign merged 2 commits into
mainfrom
claude/rails-consultant-issue-61-97b1da

Conversation

@stevepolitodesign

@stevepolitodesign stevepolitodesign commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Prior to this, the code walkthrough pages we hand to clients and
teammates looked generic. They didn't look like ours.

Now they use the colors and fonts from our brand playbook: the
warm grays and thoughtbot red. Here's a walkthrough of this
change
built with the new look.

Note that our heading and body fonts are paid, and the page can't load
them, so people will see Helvetica or Arial instead. We also kept a
few colors the brand doesn't have, so the different kinds of notes on
the page stay easy to tell apart. There's no logo.

We also tidied the summary box at the top. The things to watch for
show up as the same colored boxes as the notes further down, the text
fills the box, and there's room again before the first file.

Closes #61

Written by Claude Opus 5.5 (claude-opus-5-5) with /pr --auto. No human
has edited this yet.

Walkthrough pages go to clients and teammates, and nothing on them said
who made them. The template now uses the brand's warm grays, red, and
type from the playbook.

- Red is never text, per the playbook, so diff lines and note labels use
  the body color. Red shows up as tints, borders, and a top rule.
- Cosmica and PP Mori are paid and not on Google Fonts, which is the only
  stylesheet host Artifacts load. Most readers get Helvetica Neue, the
  same fallback thoughtbot.com declares.
- The palette is only red and grays. Note kinds keep blue, amber, and
  purple, and added lines stay green, so they're easy to tell apart.
  A strict red-and-grays version made tradeoff and alternative look the
  same and added lines hard to spot.
- JetBrains Mono ligatures are off. They drew `=>` and `-->` as arrows,
  which misreports a diff and bent the ASCII figures.
- No logo. Considered the robot mark above the title; left it off.

Adds a `brand-kept` grader so a model that rewrites the style block fails.

Closes #61

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
--why: #2a5bd7; --risk: #c0362c; --ins: #1d7a3c; --tradeoff: #8a5800; --alternative: #6a4cbb;
--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
--bg: #ffffff; --surface: #faf9f9; --fg: #201313; --muted: #7b6e68; --line: #eae6e4;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: In light mode --surface (#faf9f9) is barely different
from --bg (#ffffff), about 1.05:1, and code blocks and notes have no
border, so they nearly blend into the page. We might want a darker
surface, though the playbook's next gray (#eae6e4) drops muted text to
3.96:1, under AA.

On a light screen, the gray boxes around code and notes are so pale
they're hard to see. It's like writing on a sticky note that's almost
the same white as the paper it's stuck to: the words are fine, but you
can't tell where the note starts and stops.

Claude Opus 5.5 (claude-opus-5-5)

--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
--bg: #ffffff; --surface: #faf9f9; --fg: #201313; --muted: #7b6e68; --line: #eae6e4;
--brand: #e03131; --why: #2a5bd7; --risk: #e03131; --ins: #1d7a3c; --tradeoff: #8a5800; --alternative: #6a4cbb;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tradeoff: We keep blue, amber, purple, and green for the note
kinds and added lines, since the brand palette is only red and grays.
A strict red-and-grays version made tradeoff and alternative look the
same; note labels are body-colored now too, so the left border carries
the color alone.

The page marks each note as a why, a risk, a tradeoff, or an
alternative, with a colored stripe down its side. With only red and
gray to pick from, two of those kinds would look identical. It's like
color-coded file folders: if two piles share a color, you have to read
every label to tell them apart.

Claude Opus 5.5 (claude-opus-5-5)

--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
--bg: #ffffff; --surface: #faf9f9; --fg: #201313; --muted: #7b6e68; --line: #eae6e4;
--brand: #e03131; --why: #2a5bd7; --risk: #e03131; --ins: #1d7a3c; --tradeoff: #8a5800; --alternative: #6a4cbb;
--heading: Cosmica, "Helvetica Neue", Helvetica, Arial, sans-serif;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tradeoff: We list Cosmica and PP Mori first, but nothing loads
them, since they're paid and Artifacts only load stylesheets from
Google Fonts. Readers get Helvetica Neue on Apple devices and Arial on
most others, the same fallback thoughtbot.com declares.

Unless someone has our brand fonts installed on their own computer,
the page shows its headings and text in a stand-in font. It's like a
recipe that calls for a specialty flour: if your pantry doesn't have
it, you bake with the regular kind.

Claude Opus 5.5 (claude-opus-5-5)

li h2 { font-size: 1.15rem; overflow-wrap: anywhere; }

code, pre { font-family: var(--mono); font-size: 0.875rem; }
code, pre { font-family: var(--mono); font-size: 0.875rem; font-variant-ligatures: none; }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Risk: Ligatures are off because JetBrains Mono drew => and
--> as single arrows, which misreports a diff and bent the ASCII
figures. No grader checks for it, so a model that rewrites this rule
would still pass; we might want a regex grader next to brand-kept.

The code font on its own merges some character pairs into one symbol,
so two typed characters showed up as one arrow. We turned that off,
but nothing would catch it if it got turned back on. It's like a
typewriter that sometimes stamps a fancy symbol for two keys you
pressed: the page no longer matches what was typed.

Claude Opus 5.5 (claude-opus-5-5)

ins, del { text-decoration: none; }
ins { color: var(--ins); background: color-mix(in srgb, var(--ins) 12%, transparent); }
del { color: var(--risk); background: color-mix(in srgb, var(--risk) 12%, transparent); }
ins { background: color-mix(in srgb, var(--ins) 15%, transparent); }

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tradeoff: Added and removed lines keep the body text color and
only get a tinted background, because the playbook says thoughtbot red
is never text. The +/- and the tint are what mark them now.

Lines that were added or removed used to be written in green or red.
Now the words stay the normal color and only the highlight behind them
changes. It's like marking up a printout with a highlighter instead of
rewriting the lines in red pen.

Claude Opus 5.5 (claude-opus-5-5)

The "Start here" watch list was a `<dl>` with Risk, Tradeoff, and
Alternative rows. It's one `<aside data-note>` per item now, the same
callout the file notes use, so the page has one look and one color key.

Two layout fixes rode along:

- `ol { margin: 0 }` came after `main > * + *` with the same weight, so
  it erased the gap between "Start here" and the first file. Broken on
  main too. It now only clears the bottom margin.
- Paragraphs in the box stopped at 65 characters while the watch list
  ran full width. They fill the box now.

`SKILL.md` still called the watch list a `<dl>`; one sentence changes to
match. The `watch-list-callouts` grader fails on the old template and
passes on the new one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stevepolitodesign
stevepolitodesign marked this pull request as ready for review November 6, 2026 18:58
@stevepolitodesign

Copy link
Copy Markdown
Contributor Author

We'll eventually want a designer to help with this, but for now I think it's a good start.

@stevepolitodesign
stevepolitodesign merged commit 5b1536c into main Nov 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use thoughtbot's branding in /diff-explainer

1 participant