feat: use css variables for svg icon colors

This commit is contained in:
2026-05-07 11:57:44 +02:00
parent ca5b19209c
commit 0879dde851
9 changed files with 28 additions and 22 deletions

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
</defs> </defs>

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 608 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
</defs> </defs>

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 608 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
</defs> </defs>

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 608 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
</defs> </defs>

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 608 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
</defs> </defs>

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 608 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
<clipPath id="clip"> <clipPath id="clip">
<circle cx="50" cy="50" r="45" /> <circle cx="50" cy="50" r="45" />

Before

Width:  |  Height:  |  Size: 636 B

After

Width:  |  Height:  |  Size: 685 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
<clipPath id="clip"> <clipPath id="clip">
<circle cx="50" cy="50" r="45" /> <circle cx="50" cy="50" r="45" />

Before

Width:  |  Height:  |  Size: 636 B

After

Width:  |  Height:  |  Size: 685 B

View File

@@ -1,8 +1,8 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100">
<defs> <defs>
<radialGradient id="bg" cx="35%" cy="35%" r="75%"> <radialGradient id="bg" cx="35%" cy="35%" r="75%">
<stop offset="0%" stop-color="#FB923C" /> <stop offset="0%" style="stop-color: var(--accent, #0466c8)" />
<stop offset="100%" stop-color="#C2410C" /> <stop offset="100%" style="stop-color: var(--accent-dark, #1d4ed8)" />
</radialGradient> </radialGradient>
<clipPath id="clip"> <clipPath id="clip">
<circle cx="50" cy="50" r="45" /> <circle cx="50" cy="50" r="45" />

Before

Width:  |  Height:  |  Size: 636 B

After

Width:  |  Height:  |  Size: 685 B

View File

@@ -16,7 +16,7 @@
--color-foreground-muted: #6a6b70; --color-foreground-muted: #6a6b70;
--color-foreground: #f8f9fa; --color-foreground: #f8f9fa;
--color-accent: #FB923C; --color-accent: #0466c8;
} }
:root { :root {
@@ -66,7 +66,8 @@
color-scheme: dark; color-scheme: dark;
} }
html, body { html,
body {
background-color: var(--color-background); background-color: var(--color-background);
color: var(--text); color: var(--text);
} }
@@ -74,6 +75,7 @@ html, body {
.scrollbar-hide::-webkit-scrollbar { .scrollbar-hide::-webkit-scrollbar {
display: none; display: none;
} }
.scrollbar-hide { .scrollbar-hide {
-ms-overflow-style: none; -ms-overflow-style: none;
scrollbar-width: none; scrollbar-width: none;
@@ -84,17 +86,21 @@ html, body {
display: block; display: block;
height: 8px; height: 8px;
} }
.scrollbar-hide::-webkit-scrollbar-track { .scrollbar-hide::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
border-radius: 4px; border-radius: 4px;
} }
.scrollbar-hide::-webkit-scrollbar-thumb { .scrollbar-hide::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.2);
border-radius: 4px; border-radius: 4px;
} }
.scrollbar-hide::-webkit-scrollbar-thumb:hover { .scrollbar-hide::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.3);
} }
button.in-watchlist .watchlist-icon { button.in-watchlist .watchlist-icon {
fill: currentColor !important; fill: currentColor !important;
} }