dark/light mode toggle

This commit is contained in:
2024-10-08 23:11:49 +01:00
parent cb7060b5f2
commit e1ccbf205f
7 changed files with 38 additions and 9 deletions

View File

@@ -21,6 +21,26 @@ body {
color: var(--text);
caret-color: var(--primary);
}
.light-mode {
background-color: white;
color: black;
.theme-toggle-image {
content:url("/assets/moon.png");
}
button {
background-color: white;
border: 0px;
margin: 0px
}
}
.theme-toggle-image {
content:url("/assets/sun.png");
}
button {
background-color: black;
border: 0px;
margin: 0px
}
*, *::before, *::after {
transition: all .3s ease-out;