Make the favicon track the header icon's primary color per theme
The nav's Terminal icon uses text-primary, which resolves to a different brass shade in light vs dark mode - the favicon was hardcoded to only the dark-mode shade. Uses prefers-color-scheme so the favicon glyph always matches whichever primary the header is actually showing. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
+10
-3
@@ -1,5 +1,12 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">
|
||||||
<rect width="24" height="24" rx="5" fill="#15171a" />
|
<style>
|
||||||
<path d="M12 19h8" stroke="#e9a857" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />
|
rect { fill: #15171a; }
|
||||||
<path d="m4 17 6-6-6-6" stroke="#e9a857" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />
|
path { stroke: #c8842e; }
|
||||||
|
@media (prefers-color-scheme: dark) {
|
||||||
|
path { stroke: #e9a857; }
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<rect width="24" height="24" rx="5" />
|
||||||
|
<path d="M12 19h8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />
|
||||||
|
<path d="m4 17 6-6-6-6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" />
|
||||||
</svg>
|
</svg>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 386 B After Width: | Height: | Size: 496 B |
Reference in New Issue
Block a user