Skip to content

Commit 6ad1467

Browse files
author
dvogt23
committed
Add dark mode
Issue: #1017
1 parent ca33a9c commit 6ad1467

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

themes/newsletter/templates/base.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,45 @@
178178
blockquote p {
179179
white-space: pre-line;
180180
}
181+
182+
@media (prefers-color-scheme: dark) {
183+
body {
184+
background: black;
185+
color: white;
186+
}
187+
188+
p {
189+
color: white;
190+
}
191+
192+
td .row-header-01 {
193+
color: white;
194+
}
195+
196+
.ExternalClass {
197+
color: white;
198+
}
199+
200+
code {
201+
color: #c7254e !important;
202+
border: 1px solid #7f8c8d;
203+
background-color: #ccd1d1;
204+
}
205+
206+
h1,
207+
h2 {
208+
color: white;
209+
}
210+
211+
table .container {
212+
border-color: black;
213+
border-top-color: #ccc;
214+
}
215+
216+
blockquote {
217+
background-color: #3c3c3c;
218+
}
219+
}
181220
</style>
182221
</head>
183222

0 commit comments

Comments
 (0)