feat: Blue information tone for Alert and banners
Back to our planNumbering: epic #813; banner #814; lightbox #815; figure #816; Payload block #817; blue tone #818; content edit #819; guidelines #820. Where the text below says 01 to 07, read these numbers (01=#815, 02=#816, 03=#817, 04=#819, 05=#814, 06=#818, 07=#820).
Problem
In plain words: an "information" banner today looks gray, almost like plain page text, so a notice about an upcoming meeting doesn't stand out from warnings or from the page. The owner wants information banners to have their own calmer blue look (2026-11-07, Claude in Chrome side panel). The theme has no blue token. Alert's info tone is border-muted-foreground/30 bg-muted-foreground/10 text-foreground (src/platform/ui/Alert.tsx), checked as the ['foreground', 'muted-foreground'] pair in ALERT_TONES/TINTED_PAIRS (src/platform/theme/tokens.ts). The only blue in the theme is --chart-2, a chart mark color that is checked at 3:1 for marks, not for text, so it must not be borrowed.
Proposed fix
- New tokens:
info(the tint and border color) andinfo-strong(text on the tint), added toTHEME_TOKENSinsrc/platform/theme/tokens.ts, valued in light and dark insrc/themes/default/theme.css, and mapped insrc/platform/theme/tailwind.css. This follows thewarning/warning-strongpattern. - Contrast: add
['info-strong', 'info']toALERT_TONES, soTINTED_PAIRSchecks it at 4.5:1 onbackground,surfaceandcardatTINT_ALPHA(0.1), in both modes (themes.test.ts). Pick values that pass with a margin and record them with their ratios in a comment, as--destructive-strongdoes. - [DECISION] change
infofor every use, don't add a new tone.- A second "blue info" next to a "gray info" would be two names for one meaning, against #769's goal of one tone vocabulary.
- The grep below shows
infois only used by banners and the gallery, so changing it everywhere is safe. - A neutral gray message, if one is needed later, belongs under #769's
neutraltone.
- Not by color alone: the
Infoicon (lucide) stays, and banners carry words. No change needed. The test checks the icon is still rendered. - #769 coordination: comment on #769 that
infonow has its own token pair. Its tone list should be success, warning, danger/error, info and neutral, withinfo=info/info-strong. Don't rename tones here.
Every place that uses the info tone today (grep for 'info' and tone="info" under src/, on 2026-11-07):
src/platform/ui/Alert.tsx: theinfovariant and theInfoiconsrc/platform/richtext/blockConfigs.ts:Banner.style, defaultinfo, so every banner block an editor didn't change is affectedsrc/platform/richtext/BannerBlock.tsx: passesstyleas the tone (every post banner)src/platform/ui/Alert.test.tsx(lines 10 and 48),src/platform/richtext/RichText.test.tsx(line 83): testssrc/app/(frontend)/dev/gallery/LayoutGallery.tsx: gallery- No form or account flow uses
info. They usesuccessanderror(Form.client.tsx,SignUpForm.client.tsx,VerifyAccount.client.tsx,ResetPasswordForm.client.tsx,ConfirmEmail.client.tsx), and the cancelled-event notice useserror(src/app/(frontend)/events/[slug]/page.tsx). - Not the same thing:
keyFacts'icon: 'info'(src/platform/richtext/editorial/keyFacts*.ts) is an icon name, not an Alert tone. It isn't affected. - Live content: list the posts with a
bannerblock of styleinfofrom the live database (read-only query) on the PR, so the reviewer checks each page.
Native-first check:
- (1) The theme contract (
tokens.ts,theme.css,tailwind.css) is the native place for a color in this repo (decisions 0006, 0012). Tailwind's ownblue-*palette classes are banned outside the theme (guard rail 3,eslint.theme.config.mjs). - (2)–(3) Not applicable: a color value, not a feature.
Acceptance criteria
- Not done: Tests come first:
themes.test.tsfails with the new['info-strong', 'info']pair until the tokens exist, andAlert.test.tsxexpects the info tone's new classes and its icon. Then the code. - Not done:
infoandinfo-strongexist in the contract, both modes oftheme.css, and the Tailwind mapping. The theme contract test passes, with each pair at least 4.5:1 on background, surface and card in light and dark. - Not done:
Alertinfousesborder-info/30 bg-info/10 text-info-strong(or whatever the shared #769 definition becomes), with no literal colors. - Not done: An axe check passes for every tone in light and dark (
Alert.test.tsx). - Not done: Every place listed above, and every live post with an
infobanner, is checked by the reviewer and listed on the PR. - Not done: The gallery (
LayoutGallery.tsx) shows all four tones, anddocs/ui/component-set.md'sAlertrow saysinfois blue. - Not done: Checked at 320, 430, 768, 1024, 1280 and 1920 px in light and dark: the event page and post with the meeting banner, a form message, the gallery.
- Not done: Documentation follows behavior: the token table in
docs/guidelines/nextjs-tailwind.md#design-tokenslistsinfoandinfo-strongwith their values (a fact in a guideline; the reviewer notes it as within the owner's request). TheAlertcomment inAlert.tsxis updated. - Not done: #769 has the coordination comment.
Files likely touched
src/platform/theme/tokens.ts,src/platform/theme/tailwind.css,src/platform/theme/themes.test.tssrc/themes/default/theme.csssrc/platform/ui/Alert.tsx,src/platform/ui/Alert.test.tsxsrc/app/(frontend)/dev/gallery/LayoutGallery.tsxdocs/ui/component-set.md,docs/guidelines/nextjs-tailwind.md
Must not touch
src/platform/ui/Badge.tsxandCardtones (#769)src/platform/richtext/blockConfigs.ts(05)--chart-*tokens
Area
styling, frontend
Priority
priority: medium
Generated by Claude Code, opens in a new tab