-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathstyle.lisp
56 lines (51 loc) · 1.76 KB
/
style.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
(in-package #:nyxt-user)
;; This automatically darkens WebKit-native interfaces and sends the
;; "prefers-color-scheme: dark" to all the supporting websites.
(setf (uiop:getenv "GTK_THEME") "Adwaita:dark")
(define-configuration browser
"Configuring my reddish theme."
((theme
;; theme:+dark-theme+
;; theme:+light-theme+
(apply
#'make-instance
'theme:theme
:background-color "black"
;; Will be :action-color in 4.*
:accent-color "#CD5C5C"
:warning-color "#CEFF00"
:primary-color "rgb(170, 170, 170)"
:secondary-color "rgb(100, 100, 100)"
#-nyxt-4
nil
#+nyxt-4
(list
:text-color "#FFF4F3"
:contrast-text-color "#250000"
:highlight-color "red"
:success-color "#2D9402"
:codeblock-color "#600101")))))
(define-configuration :dark-mode
"Dark-mode is a simple mode for simple HTML pages to color those in a darker palette.
I don't like the default gray-ish colors, though. Thus, I'm overriding
those to be a bit more laconia-like.
I'm not using this mode, though: I have nx-dark-reader."
((style
(theme:themed-css (theme *browser*)
`(*
:background-color ,(if (theme:dark-p theme:theme)
theme:background
theme:on-background)
"!important"
:background-image none "!important"
:color ,(if (theme:dark-p theme:theme)
theme:on-background
theme:background)
"!important")
`(a
:background-color ,(if (theme:dark-p theme:theme)
theme:background
theme:on-background)
"!important"
:background-image none "!important"
:color ,theme:primary "!important")))))