💄 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');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
border: 0;
|
||||
background: none;
|
||||
}
|
||||
.sun { fill: #3B2C29; }
|
||||
.sun { fill: #2E4033; }
|
||||
.moon { fill: transparent; }
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue