mirror of
https://github.com/rommapp/romm.git
synced 2026-10-12 02:21:58 +00:00
Merge pull request #4955 from andest01/fix/dark-mode-wcag-aa
fix(a11y): dark mode typography is WCAG AA safe
This commit is contained in:
@@ -183,9 +183,9 @@ html[data-input="pad"] .r-v2 {
|
||||
--r-color-surface-hover: rgba(255, 255, 255, 0.12);
|
||||
--r-color-fg: #ffffff;
|
||||
--r-color-fg-heading: #ffffff;
|
||||
--r-color-fg-secondary: rgba(255, 255, 255, 0.75);
|
||||
--r-color-fg-muted: rgba(255, 255, 255, 0.45);
|
||||
--r-color-fg-faint: rgba(255, 255, 255, 0.25);
|
||||
--r-color-fg-secondary: rgba(255, 255, 255, 0.83);
|
||||
--r-color-fg-muted: rgba(255, 255, 255, 0.55);
|
||||
--r-color-fg-faint: rgba(255, 255, 255, 0.45);
|
||||
--r-color-fg-faint-hard: rgba(255, 255, 255, 0.05);
|
||||
--r-color-border: rgba(255, 255, 255, 0.07);
|
||||
--r-color-border-strong: rgba(255, 255, 255, 0.15);
|
||||
|
||||
@@ -131,9 +131,9 @@ export const colorDark = {
|
||||
// theme overrides this to a slightly-muted near-black (white-on-dark titles
|
||||
// don't read as harshly as black-on-white ones).
|
||||
fgHeading: "#ffffff",
|
||||
fgSecondary: "rgba(255, 255, 255, 0.75)",
|
||||
fgMuted: "rgba(255, 255, 255, 0.45)",
|
||||
fgFaint: "rgba(255, 255, 255, 0.25)",
|
||||
fgSecondary: "rgba(255, 255, 255, 0.83)",
|
||||
fgMuted: "rgba(255, 255, 255, 0.55)",
|
||||
fgFaint: "rgba(255, 255, 255, 0.45)",
|
||||
fgFaintHard: "rgba(255, 255, 255, 0.05)",
|
||||
border: "rgba(255, 255, 255, 0.07)",
|
||||
borderStrong: "rgba(255, 255, 255, 0.15)",
|
||||
|
||||
Reference in New Issue
Block a user