fix(styles): resolve design system audit violations

- Add --color-text-on-accent token to tokens.css
- Migrate all hardcoded color:#fff/#ffffff to var(--color-text-on-accent) across all module stylesheets
- Fix toggle thumb background (#fff -> var(--color-surface)) for dark mode
- Migrate hardcoded transition durations to token vars (--transition-fast/base/slow)
This commit is contained in:
Ulas
2026-04-05 00:28:29 +02:00
parent 8f8b3f7951
commit b730ece159
10 changed files with 48 additions and 47 deletions
+3 -3
View File
@@ -161,7 +161,7 @@
.budget-bar-row__fill {
height: 100%;
border-radius: var(--radius-full);
transition: width 0.4s ease;
transition: width var(--transition-slow);
}
.budget-bar-row__fill--income { background-color: var(--color-success); }
@@ -322,11 +322,11 @@
.amount-type-btn--income.amount-type-btn--active {
background-color: var(--color-success);
color: #ffffff;
color: var(--color-text-on-accent);
}
.amount-type-btn--expenses.amount-type-btn--active {
background-color: var(--color-danger);
color: #ffffff;
color: var(--color-text-on-accent);
}