Skip to content

Fix contrast, Counter SSR and painting imports found on bot.space - #8

Open
onemoremayur wants to merge 1 commit into
mainfrom
kits/site-fixes
Open

onemoremayur wants to merge 1 commit into
mainfrom
kits/site-fixes

Conversation

@onemoremayur

@onemoremayur onemoremayur commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Building the real bot.space pages surfaced four kit issues. The site works around them for now; this PR fixes them in the kit.

  1. Contrast. Each channel skin link and subtitle keeps its native hue. The ones that failed are darkened, or lightened on dark, just enough to pass WCAG AA on the surface they sit on:

    Colour Old New Contrast Surface
    WhatsApp link #1EABE9 #117DAC 4.6 white quick reply
    Instagram link #0294F6 #0160A0 4.7 chip
    Instagram subtitle #71787E #61676D 5.7 header
    Instagram dark link #0294F6 #33ACFD 4.6 dark chip
    • scripts/check.ts now tests every skin's link and subtitle, so a failing pair breaks the build.
    • The InboxComposer "Reply…" placeholder moves from slate-500 (3.2) to slate-600.
  2. Timeline audits. Beats fade in by design, so an audit taken mid-play reads low contrast. I documented play="still" for anything above the fold, which the site already does, rather than changing the motion.

  3. Painting imports.

    • Tile and the scenes now take paintingSrc as a URL or as an image import object ({ src }, Next's StaticImageData), so a Turbopack import works as is.
    • A painting name with no file no longer renders url("flower-shop"); the ghibli ground shows its flat colour instead.
  4. Counter SSR. The server render shows to, and so does any counter already on screen at load. Only a counter below the fold drops to from and counts up when it scrolls in. A server render returns 48,210 for to={48210}.

These are patch bumps for @botspace/tokens and @botspace/marketing. Typecheck, build and npm test pass.


Generated by Claude Code


Run Proof
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

- Skin links and subtitles darkened (or lightened on dark) just enough
  to pass AA; check.ts now tests every skin's link and subtitle.
- InboxComposer placeholder: slate-600.
- Counter: server render and on-screen-at-load show the final value.
- Tile/scenes: paintingSrc accepts { src } import objects; a bare
  painting name no longer becomes url("flower-shop").
- Timeline: note to use play="still" above the fold for audits.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017btD1i1CfTmbQUsbYPMh8z
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.

2 participants