💄 new lightmode theme

Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
Sid 2024-08-23 13:40:00 +02:00
parent 9ef09e96c5
commit 5922ef2241
Signed by: sidski
GPG key ID: D2BBDF3EDE6BA9A6
9 changed files with 39 additions and 33 deletions

View file

@ -6,7 +6,7 @@ import ThemeIcon from './ThemeIcon.astro';
const isDark = document.documentElement.classList.contains('dark');
const svgPath = document.getElementById('themePath');
if (svgPath) {
svgPath.setAttribute('stroke', isDark ? '#cdd6f4' : '#3B2C29');
svgPath.setAttribute('stroke', isDark ? '#cdd6f4' : '#2E4033');
}
};

View file

@ -12,7 +12,7 @@
border: 0;
background: none;
}
.sun { fill: #3B2C29; }
.sun { fill: #2E4033; }
.moon { fill: transparent; }