forked from doomemacs/themes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoom-old-hope-theme.el
226 lines (194 loc) · 8.8 KB
/
doom-old-hope-theme.el
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
;;; doom-one-theme.el --- inspired by An Old Hope -*- no-byte-compile: t; -*-
(require 'doom-themes)
;;
(defgroup doom-old-hope-theme nil
"Options for doom-themes"
:group 'doom-themes)
(defcustom doom-old-hope-brighter-modeline nil
"If non-nil, more vivid colors will be used to style the mode-line."
:group 'doom-one-theme
:type 'boolean)
(defcustom doom-old-hope-brighter-comments nil
"If non-nil, comments will be highlighted in more vivid colors."
:group 'doom-old-hope-theme
:type 'boolean)
(defcustom doom-old-hope-comment-bg doom-old-hope-brighter-comments
"If non-nil, comments will have a subtle, darker background. Enhancing their
legibility."
:group 'doom-old-hope-theme
:type 'boolean)
(defcustom doom-old-hope-padded-modeline doom-themes-padded-modeline
"If non-nil, adds a 4px padding to the mode-line. Can be an integer to
determine the exact padding."
:group 'doom-old-hope-theme
:type '(choice integer boolean))
;;
(def-doom-theme doom-old-hope
"A dark theme inspired by An Old Hope"
;; name default 256 16
((bg '("#1c1d20" "#1c1d20" nil))
(bg-alt '("#151619" "#151619" nil))
(base0 '("#1B2229" "black" "black"))
(base1 '("#1c1f24" "#1e1e1e" "brightblack"))
(base2 '("#202328" "#2e2e2e" "brightblack"))
(base3 '("#23272e" "#262626" "brightblack"))
(base4 '("#3f444a" "#3f3f3f" "brightblack"))
(base5 '("#5B6268" "#525252" "brightblack"))
(base6 '("#686b78" "#686b78" "brightblack"))
(base7 '("#9ca0a4" "#979797" "brightblack"))
(base8 '("#DFDFDF" "#dfdfdf" "white"))
(fg '("#cbccd1" "#cbccd1" "brightwhite"))
(fg-alt '("#5B6268" "#2d2d2d" "white"))
(grey base4)
(red '("#ea3d54" "#ea3d54" "red"))
(orange '("#ee7b29" "#ee7b29" "brightred"))
(green '("#78bd65" "#78bd65" "green"))
(teal '("#78bd65" "#78bd65" "brightgreen"))
(yellow '("#fedd38" "#fedd38" "yellow"))
(blue '("#4fb3d8" "#4fb3d8" "brightblue"))
(dark-blue '("#5689f0" "#5689f0" "blue"))
(magenta '("#b978ab" "#b978ab" "brightmagenta"))
(violet '("#b978ab" "#b978ab" "brightmagenta"))
(cyan '("#4fb3d8" "#4fb3d8" "brightcyan"))
(dark-cyan '("#4fb3d8" "#4fb3d8" "cyan"))
;; face categories -- required for all themes
(highlight yellow)
(vertical-bar (doom-darken base4 0.2))
(selection red)
(builtin yellow)
(comments base5)
(doc-comments (doom-lighten blue 0.25))
(constants orange)
(functions yellow)
(keywords red)
(methods yellow)
(operators green)
(type orange)
(strings blue)
(variables fg)
(numbers orange)
(region `(,(doom-lighten (car bg-alt) 0.15) ,@(doom-lighten (cdr base1) 0.35)))
(error red)
(warning yellow)
(success green)
(vc-modified orange)
(vc-added green)
(vc-deleted red)
;; custom categories
(hidden `(,(car bg) "black" "black"))
(-modeline-bright doom-old-hope-brighter-modeline)
(-modeline-pad
(when doom-old-hope-padded-modeline
(if (integerp doom-old-hope-padded-modeline) doom-old-hope-padded-modeline 4)))
(modeline-fg fg)
(modeline-fg-alt base5)
(modeline-bg
(if -modeline-bright
(doom-darken blue 0.475)
`(,(doom-darken (car bg-alt) 0.35) ,@(cdr base0))))
(modeline-bg-l
(if -modeline-bright
(doom-darken blue 0.45)
`(,(doom-darken (car bg-alt) 0.1) ,@(cdr base0))))
(modeline-bg-inactive `(,(doom-darken (car bg) 0.03) ,@(cdr bg-alt)))
(modeline-bg-inactive-l `(,(car bg-alt) ,@(cdr base1))))
;; --- extra faces ------------------------
((elscreen-tab-other-screen-face :background "#353a42" :foreground "#1e2022")
;; (evil-goggles-default-face :inherit 'region :background (doom-blend region bg 0.5))
((line-number &override) :foreground base4)
((line-number-current-line &override) :foreground fg)
(font-lock-comment-face
:foreground comments
:background (if doom-old-hope-comment-bg (doom-lighten bg 0.05)))
(font-lock-doc-face
:inherit 'font-lock-comment-face
:foreground doc-comments)
(mode-line
:background modeline-bg :foreground modeline-fg
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg)))
(mode-line-inactive
:background modeline-bg-inactive :foreground modeline-fg-alt
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg-inactive)))
(mode-line-emphasis
:foreground (if -modeline-bright base8 highlight))
(solaire-mode-line-face
:inherit 'mode-line
:background modeline-bg-l
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg-l)))
(solaire-mode-line-inactive-face
:inherit 'mode-line-inactive
:background modeline-bg-inactive-l
:box (if -modeline-pad `(:line-width ,-modeline-pad :color ,modeline-bg-inactive-l)))
;; Doom modeline
(doom-modeline-bar :background (if -modeline-bright modeline-bg highlight))
(doom-modeline-buffer-file :inherit 'mode-line-buffer-id :weight 'bold)
(doom-modeline-buffer-path :inherit 'mode-line-emphasis :weight 'bold)
(doom-modeline-buffer-project-root :foreground green :weight 'bold)
;; --- major-mode faces -------------------
;; css-mode / scss-mode
(css-proprietary-property :foreground orange)
(css-property :foreground green)
(css-selector :foreground blue)
;; LaTeX-mode
(font-latex-math-face :foreground green)
;; markdown-mode
(markdown-markup-face :foreground base5)
(markdown-header-face :inherit 'bold :foreground red)
((markdown-code-face &override) :background (doom-lighten base3 0.05))
;; org-mode
(org-hide :foreground hidden)
(solaire-org-hide-face :foreground hidden)
;; js/rjsx/web
(js2-function-name :forground yellow)
(js2-function-param :foreground blue)
(js2-warning :underline `(:style wave :color ,yellow))
(js2-error :underline `(:style wave :color ,red))
(js2-external-variable :underline `(:style wave :color ,blue))
(js2-jsdoc-tag :background nil :foreground red)
(js2-jsdoc-type :background nil :foreground orange)
(js2-jsdoc-value :background nil :foreground blue)
(js2-private-member :background nil :foreground orange)
(js2-object-property :foreground fg)
(rjsx-tag :foreground fg)
(rjsx-attr :foreground orange :slant 'italic :weight 'medium)
(rjsx-tag-bracket-face :foreground green)
(web-mode-html-tag-face :foreground fg :slant 'italic)
;; ivy
(ivy-current-match :background base3 :foreground orange)
(ivy-posframe-cursor :background red :foreground base0)
;; markdown-mode
(markdown-list-face :foreground green)
(markdown-pre-face :foreground blue)
(markdown-blockquote-face :inherit 'italic :foreground blue)
(markdown-link-face :inherit 'bold :foreground orange)
(markdown-header-face-1 :weight 'bold :foreground blue)
(markdown-header-face-2 :weight 'bold :foreground orange)
(markdown-header-face-3 :weight 'bold :foreground green)
(markdown-header-face-4 :weight 'bold :foreground yellow)
(markdown-header-face-5 :weight 'bold :foreground blue)
(markdown-header-face-6 :weight 'bold :foreground orange)
;; org
(org-level-1 :foreground blue)
(org-level-2 :foreground orange)
(org-level-3 :foreground teal)
(org-level-4 :foreground magenta)
(org-level-5 :foreground blue)
(org-level-6 :foreground orange)
(org-level-7 :foreground teal)
(org-level-8 :foreground magenta)
(org-link :foreground blue :underline t)
(org-document-title :foreground orange)
(org-document-info-keyword :foreground comments)
(org-meta-line :foreground base6)
(org-tag :foreground base6 :weight 'normal)
(org-block :background (doom-darken bg 0.2 ) :extend t)
(rainbow-delimiters-depth-1-face :foreground red)
(rainbow-delimiters-depth-2-face :foreground orange)
(rainbow-delimiters-depth-3-face :foreground green)
(rainbow-delimiters-depth-4-face :foreground cyan)
(rainbow-delimiters-depth-5-face :foreground blue)
(rainbow-delimiters-depth-6-face :foreground yellow)
(rainbow-delimiters-depth-7-face :foreground green))
;; --- extra variables ---------------------
())
;;; doom-old-hope-theme.el ends here