feat(webui): brand logo and favicon#40
Merged
Merged
Conversation
- webui/src/assets/favicon.svg: standalone icon with the brand
accent color baked in, wired into index.html via the
HtmlWebpackPlugin favicon option.
- webui/src/Logo.tsx: same artwork as a Preact component that uses
fill=currentColor so it inherits the surrounding color and works
in both light and dark themes without per-theme assets.
- App.tsx + styles.css: render <Logo size={72} /> as an absolutely-
positioned, muted (opacity 0.45 over var(--fg-dim)) decoration in
the top-right corner of the page header. pointer-events: none so
it never intercepts clicks.
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.
Gives the webui a real visual identity — a brand-blue chip-glyph that appears as the favicon, as a muted decoration in every page header, and front-and-center in the empty "select a page" state.
What's in the box
webui/src/assets/favicon.svg— the chip glyph, baked with the brand accent color (#0078d4), tightened viewBox so it fills the favicon cell. Wired intoindex.htmlvia HtmlWebpackPlugin'sfaviconoption.webui/src/Logo.tsx— the same artwork as a Preact component withfill="currentColor", so wherever the logo is rendered it inherits the surrounding text color and works in both light and dark themes without per-theme assets.App.tsx+styles.css:.page-header-logo— absolutely positioned, 72-px,var(--fg-dim)atopacity: 0.6,pointer-events: none. Sits in the top-right corner of every page header as a quiet brand mark..empty(no-page selected) — flex-column layout placing a 96-px logo above the "select a page" text, both inheritingvar(--fg-dim)atopacity: 0.6to match the page-header treatment.Notes
currentColorso light/dark just works.pointer-events: noneon the page-header logo so it never intercepts clicks on the header.