What broke
A font that turned "96,08" into "96 ,08", but only in a real browser
The first font Claude picked for the stock app's redesign made the comma as wide as a digit, so prices rendered as "96 ,08". The type check and the build missed it, and so did a second bug in the same evening. Screenshots from a real browser caught both.
The short version
What went wrongThe redesign's first font made the comma as wide as a digit under tabular figures, so prices showed as "96 ,08". A colour format the chart library couldn't parse also crashed the price chart.
How we found itScreenshots from a real browser caught both bugs, while the type check and the build passed. Nothing in the toolchain lays out glyphs or checks colour strings against a runtime library.
The rule nowFor visual changes, check with real-browser screenshots plus a scrollWidth/clientWidth measurement. Read a font's GSUB table before switching, and give chart libraries only formats they parse, locked by a test.
This post documents something Claude got wrong. The claim rests on a commit or a file, not on memory. All of Claude's mistakes
On 15 November 2026 the stock app got a new look. Until then it ran stock shadcn colours, the Inter font and no images. Its brand colour was the same green that meant “gain”, and its logo was a curve that only went up. Henning asked whether the app could look better. Claude proposed a direction, and Henning said go ahead.
The redesign went out in two commits that evening. Both had a bug that the type check and the build did not catch. Both were caught by screenshots from a real browser.
Round one: the comma that took up a digit’s width
The first font Claude chose was Schibsted Grotesk. It looked right in every check that reads code. In a real browser, a price showed up as “96 ,08”, and a date as “15 . november”.
The cause is the font’s tabular figures. The app turns on the tnum OpenType feature, which makes every digit the same width so columns of numbers line up. Most fonts apply that only to digits. Schibsted Grotesk applies it to the comma, period, percent sign and colon too. Each of those became as wide as a digit, so a gap opened next to the decimal comma.
That would not have been a small cosmetic issue. The app’s design notes say tabular figures are on in more than a hundred places, so the bug would have hit almost every number in the app. In a trading app, numbers are most of what’s on screen.
Claude’s own session log for that evening says it plainly: the first choice was wrong, and the screenshot caught it, not the type check or the build.
28 fonts, tested by machine
Instead of trying another font and taking another screenshot, Claude tested 28 fonts by machine. The test read each font’s GSUB table, the OpenType table that defines glyph substitutions. It asked two questions per font:
- Which glyphs does
tnumreplace? - Are the default digits already the same width?
That turned a question of taste into one that could be checked. The test also explained what the app had been getting away with. Inter, the old font, also swaps punctuation under tnum, but it swaps in narrow versions, so nobody had noticed.
The pick was Familjen Grotesk. Its digits are the same width by default, and tnum touches nothing else. The design doc now states the requirement: tabular figures without wide punctuation, plus support for æ, ø and å.
Round one was verified in Edge, driven by Playwright, against a test build behind the app’s login. Fifteen pages were checked in the dark theme on mobile and desktop, and four in the light theme. All returned 200, and none scrolled sideways.
The same pass found two more bugs. The status page was 518 pixels wide on a 390-pixel phone screen. A screenshot of the top of the page doesn’t show that, so the testing notes now add a measurement: compare the document’s scrollWidth with its clientWidth at mobile width. The cause was text with no break point. That text has no box of its own, so you only find it by comparing elements’ scrollWidth with their clientWidth. The front page’s operations card also showed a green “OK” when the status service didn’t answer at all. It now says “Unknown”.
Round two: a colour the chart library could not read
About an hour later, Henning pointed out that he had meant the app itself, not just the header images: the charts, the numbers, the learning page. Round two added one number formatter shared by the web app and the API, and one theme for 31 charts that had each hard-coded their own colours.
The type check passed and the build passed. In the browser, the price chart crashed with “Cannot parse color: hsl(41 9% 56%)”.
The new theme stored colours in the modern space-separated hsl() form. CSS and SVG accept it. Version 4 of lightweight-charts, the library behind the price and fund charts, does not. It needs commas.
The fix has two parts. The theme now gives chart libraries only rgb(r, g, b) values. A new test locks that format, and it also checks that the fallback colours in the code match the tokens in the stylesheet. The design doc adds a rule: when you give a chart library a colour, take it from the theme helper. A CSS variable or a comma-less hsl() works in CSS but not in that library.
The same round found the agent page scrolling sideways on mobile, again because of a row of symbols with no break point.
Round two was checked with 23 full-page screenshots in the dark theme, 9 on mobile and 8 in the light theme. After the fixes there were no console errors and no sideways scrolling, and 1,509 tests passed. Two single API calls returned 500 under parallel load, one in each round. Neither could be reproduced on its own.
A third trap that no screen would show
Claude’s log for round two also records a bug that went the other way. The number formatter uses a non-breaking space between thousands. When Claude wrote the code, the file-writing tool turned the escaped character into a literal, invisible non-breaking space, in both the function and its test. If someone later “cleaned it up” into a normal space, the test would still have passed. The fix was to write the character as an explicit character code.
What this cost
Two rounds, one evening, two bugs that the type check and the build did not catch. The font bug would have touched nearly every number in the app. The colour bug crashed the price chart. Neither showed up until something drew real pixels.
The rule
The type check and the build tell you the code holds together. They don’t tell you what it looks like. For anything visual, the check is a screenshot from a real browser, plus a measurement for what a screenshot can hide: scrollWidth against clientWidth at mobile width.
For fonts specifically: before you switch, read the font’s GSUB table to see what tnum touches. After you switch, look at “96,08” and “+0,53 %” in a tabular-figures cell in a real browser. For chart libraries: give them colours in a format they are known to parse, and lock that format with a test.