fix: a11y foundation — text-dim contrast, focus-visible, prefers-reduced-motion

This commit is contained in:
pyr0ball 2026-05-13 15:48:12 -07:00
parent dbdba4080f
commit 0aafc36b45

View file

@ -8,7 +8,7 @@
--color-accent-muted: #dbeafe;
--color-text-primary: #0f172a;
--color-text-muted: #475569;
--color-text-dim: #94a3b8;
--color-text-dim: #6b7280;
/* severity text colors */
--color-sev-debug: #6b7280;
@ -32,7 +32,7 @@
--color-accent-muted: #2a4a72;
--color-text-primary: #e2e8f0;
--color-text-muted: #94a3b8;
--color-text-dim: #475569;
--color-text-dim: #6b7280;
--color-sev-debug: #6b7280;
--color-sev-info: #60a5fa;
@ -47,6 +47,14 @@
}
/* Smooth theme transitions */
@media (prefers-reduced-motion: no-preference) {
*, *::before, *::after {
transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
}
/* Keyboard focus indicator */
:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}