Repository navigation
Site: a light look, the system's or picked with the header's button - #1300
Merged
Merged
Conversation
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>
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.
Every page of baocode.dev gets a light look beside the dark one.
head.jssets<html data-theme>before the page shows, so nothing flashes, and the styles' light colors are under:root[data-theme="light"].bao-light-color-theme.json, with Chrome's light look in its browser demo. Narrow screens' pictures of it have light versions.style.cssgets the same light set; the button is in every header and intool/build_changelog.dart's template.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