fix: invert toggle logic and add styling

This commit is contained in:
Stevan Freeborn
2023-04-21 09:40:29 -05:00
parent 96e456069b
commit b2ac193c91
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -133,11 +133,11 @@
} }
input:checked+.slider { input:checked+.slider {
background-color: #05254a; background-color: #64adac;
} }
input:focus+.slider { input:focus+.slider {
box-shadow: 0 0 1px #05254a; box-shadow: 0 0 1px #64adac;
} }
input:checked+.slider:before { input:checked+.slider:before {
+1
View File
@@ -113,6 +113,7 @@ export default function SideBar({
setTheme(theme === 'light' ? 'dark' : 'light') setTheme(theme === 'light' ? 'dark' : 'light')
} }
type="checkbox" type="checkbox"
checked={theme === 'dark'}
/> />
<span <span
className={`${styles.slider} ${styles.round}`} className={`${styles.slider} ${styles.round}`}