Skip to content

Commit

Permalink
experimental darkmode support
Browse files Browse the repository at this point in the history
  • Loading branch information
dongdigua committed Nov 18, 2024
1 parent 5bcea97 commit f82825a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions css/dark.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* minimal darkmode
this sucks. but I don't want to edit main.css shit */
@media (prefers-color-scheme: dark) {
* {
background-color: #1e1e2e !important;
color: #cdd6f4 !important;
}
h1, h2, h3, h4 {
color: #b4befe !important;
}
img {
filter: grayscale(50%);
}
a {
color: #89b4fa !important;
}
pre, pre span, code {
color: #a6e3a1 !important;
}
}

2 changes: 1 addition & 1 deletion org/publish_config.el
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
:publishing-function org-html-publish-to-html
:preserve-breaks t

:html-head "<link rel='stylesheet' href='css/main.css' /><link rel='stylesheet' href='css/org.small.css' />"
:html-head "<link rel='stylesheet' href='css/main.css' /><link rel='stylesheet' href='css/org.small.css' /><link rel='stylesheet' href='css/dark.css' />"
;; :html-head-include-default-style nil
:html-link-home "https://dongdigua.github.io"
:html-link-up "./../posts"
Expand Down

0 comments on commit f82825a

Please sign in to comment.