Skip to content

docs(website): readable mobile sidebar & TOC (dark-on-dark) - #82

Merged
sam-goodwin merged 1 commit into
mainfrom
cursor/ec61472d
Apr 22, 2026
Merged

sam-goodwin merged 1 commit into
mainfrom
cursor/ec61472d

Conversation

@sam-goodwin

Copy link
Copy Markdown
Member

Summary

  • The website forces data-theme=\"dark\" and remaps Starlight's color tokens to the parchment palette. Both --sl-color-white and --sl-color-black were aliased to --alc-fg-1 (dark walnut).
  • Starlight uses --sl-color-black as the background of the mobile sidebar pane and mobile "On this page" TOC dropdown, so those panels rendered as dark walnut text on a dark walnut surface (unreadable on mobile, fine on desktop).
  • Map --sl-color-black to --alc-bg-nav (lightest nav surface) and leave --sl-color-white as --alc-fg-1 (darkest text). Added a comment explaining the trap so it doesn't regress.

Test plan

  • bun run dev:site and load /getting-started at mobile width (≤640px)
  • Open hamburger sidebar → links readable on parchment, active item highlighted in moss
  • Tap "On this page" pill → TOC dropdown is light parchment with dark walnut links
  • Desktop layout unchanged (sidebar uses --sl-color-bg-sidebar, already mapped correctly)

Made with Cursor

Starlight uses --sl-color-black as the background for the mobile sidebar
pane and mobile TOC dropdown. The token was aliased to --alc-fg-1 (dark
walnut), producing dark walnut text on a dark walnut panel. Map it to
--alc-bg-nav so mobile menus render readable parchment.

Made-with: Cursor
@sam-goodwin sam-goodwin changed the title fix(website): readable mobile sidebar & TOC (dark-on-dark) docs(website): readable mobile sidebar & TOC (dark-on-dark) Apr 22, 2026
@sam-goodwin
sam-goodwin marked this pull request as ready for review April 22, 2026 06:54
@sam-goodwin
sam-goodwin merged commit 48c1610 into main Apr 22, 2026
1 check failed
@sam-goodwin
sam-goodwin deleted the cursor/ec61472d branch April 22, 2026 06:54
sam-goodwin added a commit that referenced this pull request Aug 4, 2026
DavidJFelix pushed a commit to DavidJFelix/alchemy-effect that referenced this pull request Aug 7, 2026
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.

1 participant