💄 new lightmode theme
Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
parent
9ef09e96c5
commit
5922ef2241
9 changed files with 39 additions and 33 deletions
|
|
@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue