:root { --e-global-color-background-accent: #282622;
--e-global-color-text-accent: #ffffff; --e-global-color-5a04d78: #010101; --e-global-color-b5ff3b3: #fefefe; } body.dark-mode { --e-global-color-background: var(--e-global-color-background-accent);
--e-global-color-text: var(--e-global-color-text-accent); --e-global-color-5a04d78: #fefefe; --e-global-color-b5ff3b3: #010101; } .theme-toggle-wrapper {
display: flex;
align-items: center;
gap: 0.5rem;
font-family: inherit;
font-size: 14px;
color: #888888; } body.dark-mode .theme-toggle-wrapper {
color: #fff;
}
.theme-switch {
position: relative;
display: inline-block;
width: 60px;
height: 30px;
}
.theme-switch input {
opacity: 0;
width: 0;
height: 0;
}
.slider {
position: absolute;
cursor: pointer;
background-color: #ccc; border: 2px solid #999; border-radius: 34px;
top: 0;
left: 0;
right: 0;
bottom: 0;
transition: background-color 0.3s ease;
}
.slider::before {
content: "";
position: absolute;
height: 22px;
width: 22px;
left: 4px;
bottom: 3px;
background-color: #fff; transition: transform 0.3s ease;
border-radius: 50%;
}
input:checked + .slider::before {
transform: translateX(28px);
}
.icon {
position: absolute;
top: 5px;
font-size: 14px;
pointer-events: none;
}
.icon.sun {
left: 5px;
}
.icon.moon {
right: 5px;
} .icon.sun,
.icon.moon {
filter: grayscale(100%);
opacity: 0.5; font-size: 14px;
}
.logo-dark {
display: none;
}
body.dark-mode .logo-light {
display: none;
}
body.dark-mode .logo-dark {
display: block;
}