Skip to content

Add a light theme to the docs site - #42

Merged
almogtavor merged 1 commit into
mainfrom
docs-light-mode
Nov 17, 2026
Merged

almogtavor merged 1 commit into
mainfrom
docs-light-mode

Conversation

@almogtavor

Copy link
Copy Markdown
Member

The docs site was dark only. This adds a light theme with a switch in the navigation bar.

  • The default stays dark, and the system preference is not followed. The browser keeps the reader's choice.
  • The light theme keeps the logo palette, with a darker yellow (#8A6400) and gray (#5F5E5E) so that links, table headers and code stay readable on white.
  • The style sheet now reads four theme variables (--bg, --fg, --muted, --accent), and the light theme only replaces those four.

I built the site locally (npm ci && npm run build) and looked at the landing page, the API page and the sparse hybrid page in both themes.

The site stays dark by default. A switch in the navigation bar selects a
light theme, and the browser keeps the choice. The light theme uses a
darker yellow and gray so that links, table headers and code stay
readable on white.
@almogtavor
almogtavor requested a review from Etelis as a code owner November 17, 2026 15:30
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-17 16:08 UTC

@almogtavor
almogtavor merged commit 3a4bb11 into main Nov 17, 2026
5 checks passed
@almogtavor
almogtavor deleted the docs-light-mode branch November 17, 2026 16:07
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