Skip to content

Commit df9459f

Browse files
committed
officially include dark theme
1 parent 90dd37b commit df9459f

File tree

2 files changed

+24
-26
lines changed

2 files changed

+24
-26
lines changed

css/ar5iv-dark.css

Lines changed: 0 additions & 25 deletions
This file was deleted.

css/ar5iv.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* Variables */
2-
:root {
2+
:root,
3+
[data-theme="light"] {
34
--main-width: 52rem;
45
--main-width-margin: 54rem;
56
/* fonts */
@@ -25,6 +26,28 @@
2526
--index-ref-color: lightcoral;
2627
}
2728

29+
/* Dark theme */
30+
[data-theme="dark"] {
31+
/* TODO: style the rest */
32+
--background-color: #151515;
33+
--text-color: #ddd;
34+
--link-text-color: #ddd;
35+
--border-color: white;
36+
--border-light-color: #d4d4d4;
37+
--note-mark-color: #daa002; /* color: #3f88c5; */
38+
--note-highlight-color: midnightblue;
39+
/* TODO: consider dedicated info, warning and fatal colors*/
40+
--error-text-color: #d84148;
41+
--index-ref-color: #cd5b45;
42+
/* keep images in "light theme", as transparent PNGs
43+
get generated by latexml with a light theme expectation. */
44+
--image-color: black;
45+
--image-background-color: white;
46+
}
47+
[data-theme="dark"] img, svg {
48+
filter: brightness(.8) contrast(1.2);
49+
}
50+
2851
/* Main content */
2952
body {
3053
margin:0;

0 commit comments

Comments
 (0)