-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheconf-theme.el
More file actions
423 lines (352 loc) · 12.3 KB
/
econf-theme.el
File metadata and controls
423 lines (352 loc) · 12.3 KB
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
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
(let ((deps '(("[[https://cons.dev/econf-theme.html#ID-ee3f7df2-c7bc-4d98-8720-448833e4012e][doom-themes]]" "Adds nice themes to Emacs."))))
(ec-load-deps deps)
)
;; Compiler pacifier
(defvar modeline-bg)
;; These are the font sizes used for titles and other things
(defvar ec-font-scale-level-1 1.5)
(defvar ec-font-scale-level-2 1.3)
(defvar ec-font-scale-level-3 1.2
"The smallest level of text.")
(defvar ec-font-scale-title 1.8
"Titles in my files are this size")
(defvar ec-heading-font "Jura"
"The font for titles.")
(defvar ec-title-font "Jura Bold Italic"
"The font for titles.")
(defvar ec-standard-font "Iosevka Term SS04")
(defface ec-title
nil
"Basic face for titles."
:group 'ec-faces)
(defface ec-headline
nil
"Basic face for headlines."
:group 'ec-faces)
(defgroup econf-theme nil
"Options for the `doom-econf' theme."
:group 'doom-themes)
(def-doom-theme econf
"A modern, consistent, light theme for my emacs config."
;; name default 256 16
(
(bg '("#fff" "#282a36" nil)) ;; this is the background for the hl-line, modeline, and minibuffer
(bg-alt '("#f5f5f5" "#f5f5f5" nil)) ;; this is the background for the line you arent currently on
(base0 '("#fff" "#fff" "black"))
(base1 '("#f5f5f5" "#f5f5f5" "brightwhite"))
(base2 '("#eee" "#eee" "brightwhite"))
(base3 '("#bbb" "#bbb" "white"))
(base4 '("#a4a4a4" "#a4a4a4" "white"))
(base5 '("#a4a4a4" "#a4a4a4" "brightblack"))
(base6 '("#494949" "#494949" "brightblack"))
(base7 '("#212121" "#212121" "black"))
(base8 '("#ff5c57" "#ff5c57" "black"))
(fg '("#000" "#000" "black"))
(fg-alt '("#d1d1d1" "#d1d1d1" "brightblack"))
(ui0 '("#848688" "#848688" "grey"))
(ui1 '("#606580" "#606580" "grey"))
(ui2 '("#3a3d4d" "#3a3d4d" "grey"))
(ui3 '("#1c1e27" "#1c1e27" "black"))
(grey ui0)
(red '("#E53935" "#E53935" "red" ))
(dark-red '("#ab000d" "#ab000d" "darkred" ))
(green '("#388e3c" "#388e3c" "brightred" ))
(yellow '("#f57f17" "#f57f17" "green" ))
(blue '("#1976D2" "#1976D2" "brightgreen" ))
(dark-blue '("#004a9f" "#004a9f" "yellow" ))
(magenta '("#7c1fa3" "#7c1fa3" "brightblue" ))
(cyan '("#0097A7" "#0097A7" "blue" ))
(violet '("#512DA8" "#512DA8" "magenta" ))
(orange '("#E64A19" "#E64A19" "brightmagenta"))
(teal '("#00796B" "#00796B" "brightcyan" ))
(dark-cyan '("#006876" "#006876" "cyan" ))
(default fg-alt)
;; face categories -- required for all themes
(highlight red) ;; when searching with (/) ?
(vertical-bar (doom-darken base1 0.1)) ; the bar that separates modeline and minibuffer?
(selection red) ; for like company autocomplete and stuff
(builtin red) ; saw this in company autocomplete if i moved my mouse
;; over it
(comments base4) ;; comments
(doc-comments base5) ;; easy to test with elisp
;; documentation or git commit
;; first line thing
(functions fg)
(methods fg) ;; wtf is the difference between this and function?
(operators fg)
;; make constants and keywords look better
(constants fg)
(keywords red)
(type red)
(strings base6)
(variables fg)
(numbers red)
(region red)
(error red)
(warning orange)
(success green)
(vc-modified orange)
(vc-added green)
(cursor fg)
(vc-deleted red)
)(
(default :font ec-standard-font
:slant 'normal
:weight 'normal
:height 120
:width 'normal)
(fixed-pitch :font ec-standard-font
:slant 'normal
:weight 'normal
:height 120
:width 'normal)
(variable-pitch :font "Iosevka Aile"
:slant 'normal
:weight 'normal
:height 120
:width 'normal)
;; Code style improvements.
(font-lock-keyword-face :foreground red :slant 'italic)
(font-lock-function-name-face :weight 'bold :slant 'italic )
(font-lock-constant-face :foreground red)
(font-lock-builtin-face :foreground red)
(font-lock-variable-name-face :slant 'italic)
;; italic comments
(font-lock-comment-face :slant 'italic :foreground comments)
;; make block highlighting more bearable
(show-paren-match-expression :weight 'bold)
;;;; Highlighted line
(hl-line :foreground bg :background red :extend t)
;;;; Line Numbers
(line-number :foreground comments)
(line-number-current-line :foreground bg :background comments)
;;;; Ivy
(ivy-prompt-match :foreground bg :background red :extend t)
(ivy-current-match :foreground bg :background red :extend t)
;;;; rainbow delimiters
(rainbow-delimiters-depth-1-face :foreground base6)
(rainbow-delimiters-depth-2-face :foreground base3)
;;;; Modeline
(mode-line :background base2)
(mode-line-inactive :background bg-alt :foreground comments)
(tooltip :background bg-alt :foreground fg)
;; Regions of highlighted text.
(region :foreground bg :background red)
;;;; Woman / Man
(woman-italic :foreground fg :background bg :slant 'italic)
(Man-underline :foreground fg :background bg :slant 'italic)
;;;; isearch
(lazy-highlight :foreground bg :background dark-red)
(isearch :foreground bg :background red :weight 'bold)
(pdf-isearch-lazy :foreground bg :background dark-red)
(pdf-isearch-match :foreground bg :background red :weight 'bold)
;;;; dired
((diredfl-dir-name &override) :foreground red)
((diredfl-dir-heading &override) :foreground red :weight 'bold)
((diredfl-date-time &override) :foreground fg)
((diredfl-number &override) :foreground fg)
;;;; vterm
(vterm-color-black :foreground fg :background bg)
;;;; doom-modeline
(doom-modeline-bar :background highlight)
;;;; ivy posframe
(ivy-posframe :background bg-alt)
(ivy-posframe-border :background base2 :foreground base2)
;;;; Hydra posframe
(hydra-posframe-face :background bg-alt)
(hydra-posframe-border-face :background base2 :foreground base2)
;;;; Avy faces
(avy-lead-face :background bg :foreground red)
(avy-lead-face-0 :background bg :foreground red)
(avy-lead-face-2 :background bg :foreground red)
;;;; Ace Window
(aw-leading-char-face
:foreground red
:weight 'bold
:undelrine t
:font ec-title-font
:height 300)
(aw-minibuffer-leading-char-face
:foreground red
:weight 'bold
:undelrine t
:font ec-title-font)
;;;; custom button
(custom-button :foreground red)
;;;; Solaire
(solaire-default-face :foreground fg :background bg)
(solaire-mode-line-face :foreground fg :background base2)
(solaire-mode-line-inactive-face :foreground comments :background fg-alt )
(solaire-hl-line-face :foreground bg :background red :extend t)
;;; window divider
(vertical-border :foreground base2
:background base2)
;;;; Links
(link-visited :foreground dark-red)
;;;; Helpful
(helpful-heading :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-1)
;;;; Info Mode
(info-title-1 :background red
:foreground bg
:slant 'italic
:weight 'bold
:extend t
:font ec-title-font
:height ec-font-scale-title)
(info-title-2 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-1)
(info-title-3 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-2)
(info-title-4 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-3)
(info-quoted :background bg-alt)
;;;; Outlines
(outline-1 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-2 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-3 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-3 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-4 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-5 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-6 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-7 :foreground red
:font ec-heading-font
:weight 'bold)
(outline-8 :foreground red
:font ec-heading-font
:weight 'bold)
(markdown-header-face-1 :background red
:foreground bg
:slant 'italic
:weight 'bold
:extend t
:font ec-title-font
:height ec-font-scale-title)
(markdown-header-face-2 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-1)
(markdown-header-face-3 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-2)
(markdown-header-face-4 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-3)
(markdown-header-face-5 :foreground red
:font ec-heading-font
:weight 'bold
:height 1)
(markdown-code-face :background bg-alt :foreground fg :extend t)
(markdown-inline-code-face :background bg-alt :foreground fg)
(markdown-link-face :inherit 'link)
;;;; Org Transclusion
(org-transclusion-fringe :foreground red)
(org-transclusion-source-fringe :foreground green)
;;;; Org Noter
(org-noter-notes-exist-face :foreground green)
(org-noter-no-notes-exist-face :foreground dark-red)
;;;; org <built-in>
;; org code blocks
(org-block-begin-line :inherit 'fixed-pitch
:background bg-alt
:foreground comments
:extend t)
(org-block-end-line :inherit 'fixed-pitch
:background bg-alt
:foreground comments
:extend t)
(org-block :inherit 'fixed-pitch
:background bg-alt
:extend t)
(org-table :inherit 'fixed-pitch
:background bg-alt
:foreground fg)
(org-code :inherit 'fixed-pitch
:background bg-alt
:foreground fg)
;; org titles
(org-document-title :background red
:foreground bg
:slant 'italic
:weight 'bold
:extend t
:font ec-title-font
:height ec-font-scale-title)
(org-document-info :foreground red
:font ec-heading-font
:weight 'bold)
;; org headings
(org-level-1 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-1)
(org-level-2 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-2)
(org-level-3 :foreground red
:font ec-heading-font
:weight 'bold
:height ec-font-scale-level-3)
(org-level-4 :foreground red
:font ec-heading-font
:weight 'bold)
(org-level-5 :foreground red
:font ec-heading-font
:weight 'bold)
(org-level-6 :foreground red
:font ec-heading-font
:weight 'bold)
(org-level-7 :foreground red
:font ec-heading-font
:weight 'bold)
(org-level-8 :foreground red
:font ec-heading-font
:weight 'bold)
;; footnotes
(org-footnote :foreground comments :slant 'italic)
;; org comment-like stuff
(org-document-info-keyword :foreground comments
:inherit 'fixed-pitch)
(org-meta-line :foreground comments
:inherit 'fixed-pitch)
;; tags and keywords
(org-special-keyword :foreground comments
:inherit 'fixed-pitch)
(org-tag :foreground comments
:inherit 'fixed-pitch)
;; Quotes and Examples
(org-quote :background bg-alt
:slant 'italic
:extend t)
;; Clock stuff
(org-mode-clock-overrun :foreground bg
:background red)
;; Drawers
(org-drawer :foreground comments :inherit 'fixed-pitch)
(org-property-value :foreground comments :inherit 'fixed-pitch)
))