From 0fadc070ad985c7d3d9dd611d180bf6a9688203f Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Fri, 2 Feb 2024 17:52:20 +0200 Subject: nyxt:(colorscheme) Add dark-mode configuration --- .config/nyxt/colorscheme.lisp | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) (limited to '.config') diff --git a/.config/nyxt/colorscheme.lisp b/.config/nyxt/colorscheme.lisp index 9ac1099..4dee682 100644 --- a/.config/nyxt/colorscheme.lisp +++ b/.config/nyxt/colorscheme.lisp @@ -116,8 +116,29 @@ (define-configuration browser ((theme thanos/dark-theme - :doc - "Covers all the semantic groups (warning-color, codeblock-color etc.) + :doc + "Covers all the semantic groups (warning-color, codeblock-color etc.) Note that you can also define more nuanced colors, like warning-color+, so that the interface gets even nicer. Otherwise Nyxt generates the missing colors automatically, which should be good enough... for most cases."))) + +(define-configuration nyxt/mode/style:dark-mode + ((style + (theme:themed-css (theme *browser*) + ;; `(h1 :color ,monokai-dark-blue "!important") + ;; `(h2 :color ,badger-orange "!important") + ;; `(h3 :color ,badger-green "!important") + ;; `(article :background-color "red" "!important" + ;; :color "red" "!important") + ;; `(header :color "red") + `(a :background-color "#000000" "!important" + :background-image none "!important" + :color ,badger-blue "!important") + `(* :background-color "#000000" "!important" + :color "#ffffff" "!important" + :background-image none "!important!") + `(video :background-color none "!important")))) + :doc + "Notice the use of theme:themed-css for convenient theme color injection.") + + -- cgit v1.2.3