Skip to content

Commit c41406c

Browse files
committed
Add writings dark-mode.
1 parent 6e7bd5f commit c41406c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

css/writings.css

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ img.avatar {
154154
width: 100%;
155155
}
156156

157+
.site-header svg {
158+
fill: var(--color-text);
159+
}
160+
157161
.site-logo {
158162
display: block;
159163
width: 100%;
@@ -269,3 +273,22 @@ figure.wide picture img {
269273
width: unset;
270274
max-width: 100%;
271275
}
276+
277+
@media (prefers-color-scheme: dark) {
278+
:root {
279+
--color-text: hsl(0, 0%, 88%);
280+
--color-bg: hsl(0, 0%, 10%);
281+
--color-accent: hsl(0, 0%, 75%);
282+
--color-accent-hover: hsl(146, 24%, 55%);
283+
--color-code-bg: hsl(240, 10%, 18%);
284+
}
285+
286+
.post-meta {
287+
color: hsl(0, 0%, 62%);
288+
}
289+
290+
hr:before,
291+
hr.end:before {
292+
filter: invert(1);
293+
}
294+
}

0 commit comments

Comments
 (0)