Skip to content

fix(docs): theme-aware landing panels + tighter headline - #780

Merged
thebuilder merged 2 commits into
mainfrom
claude/landing-light-panels
Aug 6, 2026
Merged

fix(docs): theme-aware landing panels + tighter headline#780
thebuilder merged 2 commits into
mainfrom
claude/landing-light-panels

Conversation

@thebuilder

Copy link
Copy Markdown
Owner

What & why

In light mode the landing's code, instrument, install, HUD, and tile panels were still dark — a deliberate "instrument surface" choice that clashed with the light page. This makes every panel follow the theme.

Changes

  • Panels follow the theme. Panel surface, -2, inset, text, muted, hairlines, and the focal highlight all derive from the --color-* theme tokens — light surfaces in light mode, dark in dark.
  • Syntax highlighting is theme-aware. Moved code token colors from inline styles to .rio-tok--* classes: a high-contrast light palette by default, with the original bright palette under :root[data-theme="dark"]. Code stays readable in both modes.
  • Tighter headline — "Know when an element meets the viewport." (H1 + the OG card), so it wraps in fewer lines.

The custom OG card stays dark by design (OG images have no viewer theme); only its headline text changed.

Verification

  • Light mode: instrument/install/HUD/code panels render light with dark, high-contrast syntax (#37324a base, violet #7c3aed, green #0f7a4d, blue #0b6bb3). Confirmed via computed styles + screenshot.
  • Dark mode: unchanged (dark panels, bright #c4b5fd/#8ee7a6 syntax). Confirmed.
  • biome clean · typecheck 0 errors · fallow audit exits 0 · blume build OK.

🤖 Generated with Claude Code

The code, instrument, install, HUD, and tile panels were fixed dark in
both color modes, so in light mode they clashed with the page. Make
every panel follow the theme:
- Panel surfaces, text, hairlines, inset, and the focal highlight derive
from the --color-* theme tokens (light surfaces in light mode, dark in
dark).
- Syntax highlighting moves from inline colors to `.rio-tok--*` classes
with a light palette by default and a dark override under
`:root[data-theme="dark"]`, so code stays readable in both modes.
Also shorten the hero headline to "Know when an element meets the
viewport." (H1 + the OG card) so it wraps tighter.
Verified light and dark via computed styles + screenshots: light mode
now shows light panels with dark, high-contrast syntax; dark mode is
unchanged. biome clean, fallow exits 0, typecheck 0 errors, build OK.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz CodeflowRun & review this pull request in StackBlitz Codeflow.

@vercel

vercelBot commented Aug 6, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
react-intersection-observerReadyReadyPreviewAug 6, 2026 7:56am
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
react-intersection-observer-storybookSkippedSkippedAug 6, 2026 7:56am

@pkg-pr-new

pkg-pr-newBot commented Aug 6, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/react-intersection-observer@780

commit: e86625f

Make the "built by thebuilder" credit a link to the author's GitHub
profile, styled to stand out from the muted line with an accent hover.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
vercelBottemporarily deployed to Preview – react-intersection-observer-storybook August 6, 2026 07:55 Inactive
@thebuilder
thebuilder merged commit a25b644 into mainAug 6, 2026
10 checks passed
@thebuilder
thebuilder deleted the claude/landing-light-panels branch August 6, 2026 08:08
Sign up for freeto 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.

1 participant

@thebuilder