mirror of
https://github.com/usememos/memos.git
synced 2025-12-18 14:50:13 +08:00
fix(theme): improve dark mode text contrast for better readability
Increase OKLCH lightness of foreground text variables to meet WCAG contrast guidelines. This fixes low visibility in cards, calendar, buttons, sidebar and other components. Resolves #5315
This commit is contained in:
parent
9be1fd8585
commit
e0984df2d3
1 changed files with 5 additions and 5 deletions
|
|
@ -1,16 +1,16 @@
|
||||||
:root {
|
:root {
|
||||||
--background: oklch(0.2 0.003 270);
|
--background: oklch(0.2 0.003 270);
|
||||||
--foreground: oklch(0.8 0.003 270);
|
--foreground: oklch(0.92 0.005 270);
|
||||||
--card: oklch(0.23 0.003 270);
|
--card: oklch(0.23 0.003 270);
|
||||||
--card-foreground: oklch(0.8 0.003 270);
|
--card-foreground: oklch(0.92 0.005 270);
|
||||||
--popover: oklch(0.23 0.003 270);
|
--popover: oklch(0.23 0.003 270);
|
||||||
--popover-foreground: oklch(0.77 0.003 270);
|
--popover-foreground: oklch(0.9 0.005 270);
|
||||||
--primary: oklch(0.6 0.08 250);
|
--primary: oklch(0.6 0.08 250);
|
||||||
--primary-foreground: oklch(0.2 0.003 270);
|
--primary-foreground: oklch(0.2 0.003 270);
|
||||||
--secondary: oklch(0.27 0.005 270);
|
--secondary: oklch(0.27 0.005 270);
|
||||||
--secondary-foreground: oklch(0.75 0.003 270);
|
--secondary-foreground: oklch(0.88 0.004 270);
|
||||||
--muted: oklch(0.25 0.005 270);
|
--muted: oklch(0.25 0.005 270);
|
||||||
--muted-foreground: oklch(0.58 0.003 270);
|
--muted-foreground: oklch(0.75 0.004 270);
|
||||||
--accent: oklch(0.3 0.008 270);
|
--accent: oklch(0.3 0.008 270);
|
||||||
--accent-foreground: oklch(0.8 0.003 270);
|
--accent-foreground: oklch(0.8 0.003 270);
|
||||||
--destructive: oklch(0.55 0.1 25);
|
--destructive: oklch(0.55 0.1 25);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue