Skip to content

feat(pwa): native icon theming — light/dark SVG favicon, monochrome, theme-color - #123

Merged
DavidSchmidt00 merged 2 commits into
stagingfrom
feat/icon-theming
May 19, 2026
Merged

DavidSchmidt00 merged 2 commits into
stagingfrom
feat/icon-theming

Conversation

@DavidSchmidt00

Copy link
Copy Markdown
Owner

Summary

  • icon.svg — embedded @media (prefers-color-scheme: light) CSS. Chrome/Firefox/Edge switch the tab favicon live when the OS theme changes — no JS, no filter hacks. Dark mode: neon green/cyan gradient on dark background. Light mode: forest-green/teal gradient on white background, dark sparkle.
  • index.html — two theme-color meta tags (#0f1117 dark / #ffffff light) so the browser address bar also adapts on Chrome and Safari 15+.
  • Monochrome icon — icon-monochrome-192x192.png added to manifest with purpose: "monochrome". Android 12+ Material You recolours it with the user's wallpaper accent colour automatically.
  • Maskable icon — now tilted 12° with a green glow and sparkle repositioned inside the 80% safe zone (no more boring upright version).

Test plan

  • Toggle OS to light mode — browser tab favicon should switch to green-on-white with no dark filter
  • Check address bar colour adapts on Chrome/Safari mobile
  • On Android 12+ with Material You — install PWA, check notification icon picks up wallpaper accent colour

Generated by Claude Code

claude and others added 2 commits May 19, 2026 17:58
Re-adds 12° tilt (safe at 62% scale), green radial glow behind racket,
and repositions sparkle to (325,138) inside the 80% safe zone so it
survives circular/squircle Android masks.

Co-Authored-By: AI Agent <noreply@agent>
icon.svg: embedded @media (prefers-color-scheme: light) CSS — gradient
switches to forest-green/teal (#16a34a→#0891b2), background goes white,
sparkle goes dark. Chrome/Firefox/Edge update the tab favicon live with
no JS. stop-color, fill overridden via SVG class selectors.

index.html: two theme-color meta tags (dark #0f1117 / light #ffffff) so
the browser chrome (address bar) also adapts on Chrome and Safari 15+.

Manifest: added monochrome icon entry (192px PNG, white silhouette) for
Android 12+ Material You — OS recolours it with the wallpaper accent.

gen-icons.mjs: maskable variant now tilted 12° with glow + sparkle
repositioned inside the 80% safe zone; monochrome SVG added.

Co-Authored-By: AI Agent <noreply@agent>
@DavidSchmidt00
DavidSchmidt00 merged commit 7127002 into staging May 19, 2026
1 check passed
@DavidSchmidt00
DavidSchmidt00 deleted the feat/icon-theming branch May 19, 2026 18:53
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