blob: bb31f10080cd820824b5ac5a8579bcb1133251f2 (
about) (
plain)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
;; (in-package #:nyxt-user)
;; ;; This only works on the versions of Nyxt after 2.2.4.
;; (define-configuration browser
;; ((theme (make-instance
;; 'theme:theme
;; :dark-p t
;; :background-color "#282a36"
;; :text-color "#f8f8f2"
;; :accent-color "#ff5555"
;; :primary-color "#50fa7b"
;; :secondary-color "#bd93f9"
;; :tertiary-color "#6272a4"
;; :quaternary-color "#44475a"))))
;; ;; Custom Dark-mode for webpages
;; (define-configuration nyxt/style-mode:dark-mode
;; ((style #.(cl-css:css
;; '((*
;; :background-color "#282a36 !important"
;; :background-image "none !important"
;; :color "#f8f8f2")
;; (a
;; :background-color "#282a36 !important"
;; :background-image "none !important"
;; :color "#6272a4 !important"))))))
;; ;; Configurations for versions below 2.2.4:
;;Configure Webpage Colors
(define-configuration window
((message-buffer-style
(str:concat
%slot-default%
(cl-css:css
'((body
:background-color "#282a36"
:color "#f8f8f2")))))))
;;Configure Prompt Section
(define-configuration prompt-buffer
((style (str:concat
%slot-default%
(cl-css:css
'((body
:background-color "#282a36"
:color "#f8f8f2")
("#prompt-area"
:background-color "#282a36")
("#input"
:background-color "#6272a4"
:color "#f8f8f2")
(".source-name"
:color "#f8f8f2"
:background-color "#bd93f9")
(".source-content"
:background-color "#282a36")
(".source-content th"
:border "1px solid #bd93f9"
:background-color "#282a36")
("#selection"
:background-color "#44475a"
:color "#f8f8f2")
(.marked :background-color "#ff5555"
:font-weight "bold"
:color "#f8f8f2")
(.selected :background-color "#282a36"
:color "#f8f8f2")))))))
(define-configuration internal-buffer
((style
(str:concat
%slot-default%
(cl-css:css
'((title
:color "#ff79c6")
(body
:background-color "#21222C"
:color "#f8f8f2")
(hr
:color "#44475a")
(a
:color "#6272a4")
(.button
:color "#f8f8f2"
:background-color "#44475a")))))))
;;Configure History Tree Mode
(define-configuration nyxt/history-tree-mode:history-tree-mode
((nyxt/history-tree-mode::style
(str:concat
%slot-default%
(cl-css:css
'((body
:background-color "#21222C"
:color "lightgray")
(hr
:color "darkgray")
(a
:color "#50fa7b")
("ul li::before"
:background-color "#f8f8f2")
("ul li::after"
:background-color "#f8f8f2")
("ul li:only-child::before"
:background-color "#f8f8f2")))))))
;;Highlight Hint Buttons
(define-configuration nyxt/web-mode:web-mode
((nyxt/web-mode:highlighted-box-style
(cl-css:css
'((".nyxt-hint.nyxt-highlight-hint"
:background "#ff5555")))
:documentation "The style of highlighted boxes, e.g. link hints.")))
;;Configure StatusLines Styles
(define-configuration status-buffer
((style (str:concat
%slot-default%
(cl-css:css
'(("#controls"
:border-top "1px solid #6272a4"
:background-color "#21222C")
("#url"
:background-color "#21222C"
:color "#f8f8f2"
:border-top "1px solid #6272a4")
("#modes"
:background-color "#21222C"
:border-top "1px solid #6272a4")
("#tabs"
:background-color "#6272a4"
:color "#f8f8f2"
:border-top "1px solid #6272a4")))))))
(define-configuration nyxt/style-mode:dark-mode
((style #.(cl-css:css
'((*
:background-color "#21222C !important"
:background-image "none !important"
:color "#f8f8f2")
(a
:background-color "#21222C !important"
:background-image "none !important"
:color "#556B2F !important"))))))
|