Add dark mode for PWA frontend
Run Tests on Branches / Detect Changes (push) Successful in 12s
Run Tests on Branches / Backend Tests (push) Has been skipped
Run Tests on Branches / Frontend Tests (push) Successful in 1m47s
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped

This commit is contained in:
Antoni Nuñez Romeu
2026-07-09 13:18:25 +02:00
parent 2e9b2f2c1f
commit e9a1d7c53d
11 changed files with 289 additions and 33 deletions
+60
View File
@@ -845,3 +845,63 @@
align-self: flex-end;
}
}
/* Theme Toggle */
.menu-item-theme-label {
font-size: 0.8rem;
font-weight: 500;
color: var(--on-surface-variant);
}
.profile-theme-options {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.profile-theme-btn {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.85rem 1rem;
background: var(--surface);
border: 2px solid var(--outline-variant);
border-radius: var(--radius);
cursor: pointer;
color: var(--on-surface-variant);
font-family: inherit;
text-align: left;
transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.profile-theme-btn:hover {
border-color: var(--primary);
color: var(--on-surface);
}
.profile-theme-btn--active {
border-color: var(--primary);
background: var(--primary-faint);
color: var(--primary);
}
.profile-theme-btn--active .profile-theme-btn-label {
color: var(--primary);
font-weight: 700;
}
.profile-theme-btn-label {
flex: 1;
font-size: 1rem;
font-weight: 600;
color: var(--on-surface);
}
.profile-theme-btn-desc {
font-size: 0.8rem;
color: var(--on-surface-variant);
}
.profile-modal-theme {
max-width: 24rem;
}