fix(docs): theme-aware landing panels + tighter headline - #780
Merged
Conversation
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>
|
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
commit: |
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
Bot
temporarily deployed
to
Preview – react-intersection-observer-storybook
August 6, 2026 07:55
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
-2, inset, text, muted, hairlines, and the focal highlight all derive from the--color-*theme tokens — light surfaces in light mode, dark in dark..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.The custom OG card stays dark by design (OG images have no viewer theme); only its headline text changed.
Verification
#37324abase, violet#7c3aed, green#0f7a4d, blue#0b6bb3). Confirmed via computed styles + screenshot.#c4b5fd/#8ee7a6syntax). Confirmed.blume buildOK.🤖 Generated with Claude Code