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
+5 -5
View File
@@ -132,7 +132,7 @@
justify-content: center;
border-radius: var(--radius-full);
background-color: var(--color-accent);
color: #fff;
color: var(--color-text-on-accent);
font-size: var(--text-xs);
line-height: 1;
}
@@ -187,7 +187,7 @@
.swipe-reveal--edit {
left: 0;
background-color: var(--color-accent);
color: #fff;
color: var(--color-text-on-accent);
border-radius: var(--radius-md) 0 0 var(--radius-md);
}
@@ -261,7 +261,7 @@
.task-status-btn__check {
width: 12px;
height: 12px;
color: #fff;
color: var(--color-text-on-accent);
display: none;
}
@@ -342,7 +342,7 @@
justify-content: center;
font-size: var(--text-xs);
font-weight: var(--font-weight-bold);
color: #fff;
color: var(--color-text-on-accent);
flex-shrink: 0;
}
@@ -465,7 +465,7 @@
padding: 0 var(--space-1);
border-radius: var(--radius-full);
background-color: var(--color-danger);
color: #fff;
color: var(--color-text-on-accent);
font-size: var(--text-xs);
font-weight: var(--font-weight-bold);
margin-left: auto;