Skip to content

Site: a light look, the system's or picked with the header's button - #1300

Merged
leookun merged 1 commit into
mainfrom
site-light-theme
Nov 25, 2026
Merged

leookun merged 1 commit into
mainfrom
site-light-theme

Conversation

@leookun

@leookun leookun commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

Every page of baocode.dev gets a light look beside the dark one.

  • Follows the system by default. The header's new button goes round from the system's to light or dark and back; the pick is kept for the next visit. head.js sets <html data-theme> before the page shows, so nothing flashes, and the styles' light colors are under :root[data-theme="light"].
  • Home page: colors moved to variables with a light set. The sand gold is kept (deepened only where it is text), the primary button turns dark, the hero's sky becomes a tint, the charts are recolored, and Grok's and Perplexity's white marks get dark ones.
  • The window on the home page gets Bao Light, taken from the app's bao-light-color-theme.json, with Chrome's light look in its browser demo. Narrow screens' pictures of it have light versions.
  • Other pages: style.css gets the same light set; the button is in every header and in tool/build_changelog.dart's template.
  • Tooltip: the button's name and current pick, on screens with a mouse only.
  • Small fixes: the Chrome mark on /download's store button is drawn as a logo rather than an outlined blob. On a phone, GitHub shows its mark alone in the other pages' header, and the changelog's language link is no longer hidden.

Checked in headless Chrome: light, dark and phone widths of each page; switching live and by the button, the pick kept across pages; no console errors. The dark look is unchanged.

🤖 Generated with BaoCode

Every page of baocode.dev now has a light look beside the dark one. It
follows the system by default; the header's new button goes round from
the system's to light or dark and back, the pick kept for the next visit.
head.js sets <html data-theme> before the page shows, so nothing flashes.

- The home page's colors are variables, with a light set: the sand gold
  kept (deepened only as text), the primary button dark, the hero's sky
  a tint, the charts recolored, Grok's and Perplexity's marks dark.
- The window on the home page gets Bao Light, from the app's own
  bao-light-color-theme.json, its browser demo Chrome's light look; the
  narrow screens' pictures of it have light ones.
- The other pages' style.css has the same light set.
- The button's tip, its name and the one picked, shows on a screen with
  a mouse only.
- Also: the store button's Chrome mark on /download drawn as a logo, not
  outlined into a blob; on a phone, GitHub is its mark alone in the other
  pages' header, and the changelog's language link is no longer hidden.

Co-Authored-By: BaoCode <noreply@baocode.dev>
@leookun
leookun merged commit 7a632d1 into main Nov 25, 2026
3 checks passed
@leookun
leookun deleted the site-light-theme branch November 25, 2026 04: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