Skip to content

Commit 87eefad

Browse files
committed
fix: simplify options styles with light-dark
1 parent 2480d47 commit 87eefad

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

src/@lib/options.css

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,13 @@ html, body, ul, p { margin: 0; padding: 0; }
33
* { box-sizing: border-box; font: inherit; }
44

55
:root {
6-
--text: black;
7-
--bg: white;
6+
--text: light-dark(black, #ccc);
7+
--bg: light-dark(white, #1c1b22);
88

9-
--table-even: #d3d2db;
10-
--table-odd: #c3c2cb;
11-
12-
@media (prefers-color-scheme: dark) {
13-
--text: #ccc;
14-
--bg: #1c1b22;
15-
16-
--table-even: #53525b;
17-
--table-odd: #33323b;
18-
}
9+
--table-even: light-dark(#d3d2db, #53525b);
10+
--table-odd: light-dark(#c3c2cb, #33323b);
1911

12+
color-scheme: light dark;
2013
font-family: system-ui, sans-serif;
2114
font-size: 14px;
2215
}

0 commit comments

Comments
 (0)