Skip to content

Commit 058bd03

Browse files
committed
Add dark mode scss
1 parent 7e79423 commit 058bd03

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

src/styles/app.scss

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,3 +324,55 @@ header h1 {
324324
}
325325
}
326326

327+
@media (prefers-color-scheme: dark) {
328+
$yellow: #835f00;
329+
330+
body {
331+
background-color: #181a1b;
332+
color: #e8e6e3;
333+
}
334+
335+
.nav a {
336+
color: #d5cbc6;
337+
}
338+
339+
div.brand a {
340+
color: #fff;
341+
}
342+
343+
div.brand img {
344+
filter: invert(0.8);
345+
}
346+
347+
.white {
348+
color: #fff;
349+
.highlight {
350+
background-color: $yellow;
351+
}
352+
}
353+
354+
.white a {
355+
color: #d5cbc6;
356+
}
357+
358+
.white code {
359+
color: #fff;
360+
background-color: rgba(213, 203, 198, 0.05);
361+
border: 1px solid rgba(213, 203, 198, 0.25);
362+
}
363+
364+
.white blockquote {
365+
color: #fff;
366+
background-color: rgba(213, 203, 198, 0.05);
367+
border: 1px solid rgba(213, 203, 198, 0.25);
368+
border-left: 8px solid #d5cbc6;
369+
}
370+
371+
.white a.anchor::before {
372+
color: #d5cbc6;
373+
}
374+
375+
.publish-date-author {
376+
color: #d5cbc6;
377+
}
378+
}

0 commit comments

Comments
 (0)