Skip to content

Commit eeee969

Browse files
committed
add darkmode support
1 parent 8f7fcb0 commit eeee969

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/core/show-dir/styles.js

+11
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ css += 'table tr { white-space: nowrap; }\n';
99
css += 'td.perms {}\n';
1010
css += 'td.file-size { text-align: right; padding-left: 1em; }\n';
1111
css += 'td.display-name { padding-left: 1em; }\n';
12+
css += `
13+
@media (prefers-color-scheme: dark) {
14+
body {
15+
background-color: #303030;
16+
color: #efefef;
17+
}
18+
a {
19+
color: #ffff11;
20+
}
21+
}
22+
`;
1223

1324
Object.keys(icons).forEach((key) => {
1425
css += `i.icon-${key} {\n`;

0 commit comments

Comments
 (0)