Skip to content

Commit 41ab818

Browse files
fix font color in codes for dark light mode
1 parent d899f18 commit 41ab818

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: themes/hugoplate/assets/css/module-overrides.css

+11
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,14 @@
5252
.gallery-slider {
5353
@apply !ml-0;
5454
}
55+
56+
code {
57+
color: #f8f8f2 !important;
58+
}
59+
60+
/* For dark mode specifically */
61+
@media (prefers-color-scheme: dark) {
62+
code {
63+
color: #f8f8f2 !important;
64+
}
65+
}

0 commit comments

Comments
 (0)