Skip to content

Theme-aware logo + fix dark-mode brand (pin shared theme @v1.0.0)#261

Merged
btravers merged 1 commit into
mainfrom
feat/theme-aware-logo
Jun 26, 2026
Merged

Theme-aware logo + fix dark-mode brand (pin shared theme @v1.0.0)#261
btravers merged 1 commit into
mainfrom
feat/theme-aware-logo

Conversation

@btravers

Copy link
Copy Markdown
Collaborator

Follow-up to the merged design-system PR. The light/dark logo variants were finalized after that PR was squash-merged, so they didn't make it onto main — this adds them.

Changes

  • docs/public/logo-light.svg + docs/public/logo-dark.svg — the beetroot hourglass mark for light and dark backgrounds (transparent SVG).
  • docs/public/logo.svg — adaptive prefers-color-scheme favicon (switches with the OS theme).
  • docs/.vitepress/config.ts — nav logo is now per-theme: logo: { light: "/logo-light.svg", dark: "/logo-dark.svg" }.

The btravstack landing page references logo-dark.svg from this repo via jsDelivr, so merging this also lights up the landing card logo from the CDN.

🤖 Generated with Claude Code

Use the beetroot hourglass mark in both color schemes: VitePress per-theme nav
logo (logo-light/dark.svg) plus an adaptive prefers-color-scheme favicon
(logo.svg). These variants were finalized after the design-system PR was
already squash-merged, so they land here in a follow-up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 26, 2026 10:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds theme-aware logo assets to the VitePress docs site, enabling distinct light/dark variants for the navbar logo while also updating the existing logo.svg to be an adaptive (prefers-color-scheme) SVG suitable for use as a favicon and general-purpose mark.

Changes:

  • Added docs/public/logo-light.svg and docs/public/logo-dark.svg as transparent, per-background logo variants.
  • Updated docs/public/logo.svg to switch its rendered variant using prefers-color-scheme.
  • Updated VitePress theme config to use per-theme navbar logos via logo: { light, dark }.

Reviewed changes

Copilot reviewed 1 out of 4 changed files in this pull request and generated no comments.

File Description
docs/public/logo.svg Replaced the previous single-variant SVG with a prefers-color-scheme adaptive SVG (light/dark groups toggled via internal CSS).
docs/public/logo-light.svg Added the light-background logo variant (transparent SVG).
docs/public/logo-dark.svg Added the dark-background logo variant (transparent SVG).
docs/.vitepress/config.ts Switched navbar logo configuration to use the new light/dark logo variants.

@btravers btravers merged commit 20ea098 into main Jun 26, 2026
10 checks passed
@btravers btravers deleted the feat/theme-aware-logo branch June 26, 2026 11:47
@btravers btravers restored the feat/theme-aware-logo branch June 26, 2026 12:28
@btravers btravers changed the title Add theme-aware (light/dark) project logo Theme-aware logo + fix dark-mode brand (pin shared theme @v1.0.0) Jun 26, 2026
@btravers

Copy link
Copy Markdown
Collaborator Author

Added a commit pinning the shared-theme import to @v1.0.0. The previous pin was an old landing commit whose vitepress.css predated the dark-mode fix, so dark mode showed VitePress's default indigo brand + Inter font. Merging this redeploys the docs against the corrected adapter — dark mode brand/surfaces/fonts will match the brand, and the project logo lands too.

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