feat: replace non-square black W favicon with the brand W tile#238
Merged
Conversation
The favicon was the bare black W silhouette at 160x162. It is close to invisible on a dark browser tab strip, and Google's favicon guidelines want a square icon sized to a multiple of 48px, which a 160x162 PNG is not -- so the SERP favicon can be dropped. Use the same purple (#7030a0) tile with the gold (#ffcc00) W as commander, and regenerate the PNG square at 48x48. The colours are fixed, so the icon renders identically in light and dark themes. Docusaurus emits only one link for the `favicon` field, so the SVG and the apple-touch-icon go in top-level `headTags`. Those hrefs are emitted verbatim rather than baseUrl-prefixed, hence the extracted `baseUrl` const. Refs wopee-io-plg/plg#46 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Closes the
websitehalf of the favicon work: wopee-io-plg/plg#46 (sub-issue of wopee-io-plg/plg#41). Pairs with autonomous-testing/cmd#1159, which ships the identical icon in commander.Why
static/img/favicon.pngwas the bare black W silhouette at 160x162. Two defects:What
static/img/favicon.svg#7030a0tile, gold#ffcc00Wstatic/img/favicon.pngstatic/img/apple-touch-icon.pngdocusaurus.config.jsheadTagsfor the SVG + apple-touch linksDocusaurus emits exactly one
<link>for itsfaviconfield, so the other two go in top-levelheadTags. Those hrefs are emitted verbatim — unlikefavicon, they are not baseUrl-prefixed — sobaseUrlis now a const that both the config field and the hrefs interpolate. Without that, the icons would 404 the daybaseUrlstops being/.The glyph was traced, not redrawn
static/img/logo.pngis an alpha-only silhouette (every opaque pixel is#000000).favicon.svgis that alpha channel traced via marching-squares + Ramer-Douglas-Peucker, measured at 99.66% IoU against the source — under one pixel of error at 16x16.Verification
Ran a real
npm run buildand inspectedbuild/index.html:All three assets emit into
build/img/.tscreports only the pre-existingHead cannot be used as a JSX componenterrors insrc/theme/*, which this branch does not touch. The repo has no prettier config anddocusaurus.config.jswas already prettier-dirty onmain, so I matched the file's existing style rather than reformatting it.🤖 Generated with Claude Code