Use Pydantic brand colours in the `clai2` web UI, in dark and light mode
Merged
MP
2mo ago+132+132+012345678901234567890123456789-75-75-01234567890123456789
Part 5 of the clai2 web UI stack (#10261 → #10262 → #10263 → #10265 → this PR). Based on #10265. No linked issue: requested by the CLAI maintainer.
Why. The web UI should look like Pydantic by default rather than a neutral grey.
What changes. Only CSS variables and a few accents, taken from pydantic.dev's own tokens.
- Dark (default): Paraffin
#1D0214ground, plum#280F20/#36182Dsurfaces, Paper#FDFCF6text, Lithium#E520E9send button, focus ring, current-session marker and running dots. Aqua#77FFD8for additions, Persimmon#FF6550for removals. - Light: Paper
#FDFCF6/#F4F2E8grounds, white composer, Lithium accents, the site's green and plum. - A faint Lithium and Aqua wash behind the new-session hero, with the project name in Lithium. Syntax colours come from the same palette.
- Fonts stay system fonts: the brand faces (Dwight, ABC Diatype) are licensed, and the page's CSP allows no remote fonts.
- Body text contrast is at least 5:1 in both themes and secondary text at least 3.7:1, checked numerically.
New public surface. None.
Verification. npm run build (strict tsc --noEmit plus Vite). Headed Playwright against clai2 --web with claude-code:claude-haiku-4-5, in both themes: the hero, / completion, a streamed turn with a read, an edit diff and a shell run. Computed colours were read back from the page. No page errors.
What changes for existing users. Nothing until they enable web.
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration, release note, and exact API-check waiver.
- PR title is fit for the release changelog.