From f82825ae5b2685229b42934df1acdaf8857f9073 Mon Sep 17 00:00:00 2001 From: dongdigua Date: Mon, 18 Nov 2024 17:51:32 +0800 Subject: [PATCH] experimental darkmode support --- css/dark.css | 21 +++++++++++++++++++++ org/publish_config.el | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 css/dark.css diff --git a/css/dark.css b/css/dark.css new file mode 100644 index 0000000..dff349c --- /dev/null +++ b/css/dark.css @@ -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; + } +} + diff --git a/org/publish_config.el b/org/publish_config.el index b6391f4..37cc28a 100644 --- a/org/publish_config.el +++ b/org/publish_config.el @@ -44,7 +44,7 @@ :publishing-function org-html-publish-to-html :preserve-breaks t - :html-head "" + :html-head "" ;; :html-head-include-default-style nil :html-link-home "https://dongdigua.github.io" :html-link-up "./../posts"