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
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
|
;; -*- lexical-binding: t -*-
(require 'color)
(require-theme 'modus-themes)
(deftheme eighters
"Eighters gonna eight.")
(defun eighters-hsl-to-hex (h s l)
(apply
'color-rgb-to-hex
`(,@(color-hsl-to-rgb h s l) 2)))
(defun eighters-decline-hue-bg (name light-step)
(interactive
(list (read-color "Color to decline? ")
(read-number "Light step? (1ā100) ")))
(pcase-let* ((`(,r ,g ,b) (color-name-to-rgb name))
(`(,h _ _) (color-rgb-to-hsl r g b)))
(let ((variants (seq-map
(lambda (l)
(cons l (eighters-hsl-to-hex h 1.0 (/ l 100.0))))
(number-sequence 0 100 light-step)))
(buf (format "*%s variants*" name)))
(with-current-buffer (get-buffer-create buf)
(pcase-dolist (`(,l . ,hex) variants)
(let ((cr (modus-themes-contrast "#fff" hex)))
(when (> cr 7.0)
(insert
(propertize (format "%s %3s\t%6.3f\n" hex l cr)
'face `(:background ,hex :extend t))))))
(pcase-dolist (`(,l . ,hex) variants)
(let ((cr (modus-themes-contrast "#000" hex)))
(when (> cr 7.0)
(insert
(propertize (format "%s %3s\t%6.3f\n" hex l cr)
'face `(:foreground ,hex)))))))
(pop-to-buffer buf))))
;; Let H be the set of all lightness variations of full-saturation hue h,
;; CR(c) be the WCAG contrast-ratio function applied to (c, #fff),
;; CR[S, P] be the set { CR(c) ā cāS | P(c) },
;;
;; bg-h is c such that CR(c) = min(CR[H, >15])
;; bg-h-dim is c such that CR(c) = max(CR[H, <19])
;; bg-h-dimmer is c such that CR(c) = max(CR[H, <20])
;;
;; fg-h-subtle is (h, 60%, 80%)
;; fg-h-dim is (h, 50%, 60%)
(defvar eighters-palette
'((bg "#000") (bg-hl-dimmer "#0f0f0f") (bg-hl-dim "#181818") (bg-hl "#222")
(fg-red "brown2") (fg-red-dim "#cc6565") (fg-red-subtle "#eaadad")
(bg-red "#560000") (bg-red-dim "#2d0000") (bg-red-dimmer "#1e0000")
(fg-green "chartreuse2") (fg-green-dim "#98cc65") (fg-green-subtle "#cbeaad")
(bg-green "#142800") (bg-green-dim "#0a1400") (bg-green-dimmer "#070f00")
(fg-yellow "gold") (fg-yellow-dim "#ccbc65") (fg-yellow-subtle "#eae1ad")
(bg-yellow "#2d2600") (bg-yellow-dim "#141100") (bg-yellow-dimmer "#0f0c00")
(fg-blue "steelblue1") (fg-blue-dim "#659dcc") (fg-blue-subtle "#adceea")
(bg-blue "#002647") (bg-blue-dim "#001323") (bg-blue-dimmer "#000b14")
(fg-magenta "violet") (fg-magenta-dim "#cc65cc") (fg-magenta-subtle "#eaadea")
(bg-magenta "#470047") (bg-magenta-dim "#280028") (bg-magenta-dimmer "#190019")
(fg-cyan "cadetblue2") (fg-cyan-dim "#65c2cc") (fg-cyan-subtle "#ade4ea")
(bg-cyan "#00292d") (bg-cyan-dim "#001719") (bg-cyan-dimmer "#000d0f")
(fg "#fff") (fg-dim "#bbb") (fg-dimmer "#888")))
(defun eighters-show-palette ()
(interactive)
(list-colors-display
(mapcar 'cadr eighters-palette)
"*Eighters palette*"))
(defun eighters-dump-palette ()
(interactive)
(let ((blacks '(bg bg-hl-dimmer bg-hl-dim bg-hl))
(colors '(red green yellow blue magenta cyan))
(whites '(fg fg-dim fg-dimmer))
(beg (point))
(format-sym
(lambda (sym)
(format "(%s \"%s\")"
sym (car (alist-get sym eighters-palette))))))
(insert
"(defvar eighters-palette\n'("
(string-join (seq-map format-sym blacks) " ")
"\n")
(let ((beg (point)))
(dolist (hue colors)
(dolist (template '("fg-%s" "fg-%s-dim" "fg-%s-subtle"))
(insert (funcall format-sym (intern (format template hue)))))
(insert "\n")
(dolist (template '("bg-%s" "bg-%s-dim" "bg-%s-dimmer"))
(insert (funcall format-sym (intern (format template hue)))))
(insert "\n"))
(align-regexp beg (point) "\\(\\s-*\\)\\(\"[^)]\\|(\\)" 1 1 t))
(insert
(string-join (seq-map format-sym whites) " ")
"))\n")
(indent-region beg (point))))
(defun eighters-color (symbol)
(car (alist-get symbol eighters-palette)))
(defface eighters-button nil
"Face for elements that can be \"pushed\" with RET.")
(defface eighters-citation-1 nil
"Face for level 1 citations.")
(defface eighters-citation-2 nil
"Face for level 2 citations.")
(defface eighters-citation-3 nil
"Face for level 3 citations.")
(defface eighters-citation-4 nil
"Face for level 4 citations.")
(defface eighters-citation-5 nil
"Face for level 5 citations.")
(defface eighters-citation-6 nil
"Face for level 6 citations.")
(defface eighters-date nil
"Face for text that describes dates.")
(defface eighters-identity nil
"Face for names of persons.")
(defface eighters-markup nil
"Face for text that describes \"structure\" rather than content.")
(defface eighters-title-1 nil
"Face for level 1 headings.")
(defface eighters-title-2 nil
"Face for level 2 headings.")
(defface eighters-title-3 nil
"Face for level 3 headings.")
(defface eighters-title-4 nil
"Face for level 4 headings.")
(defface eighters-title-5 nil
"Face for level 5 headings.")
(defface eighters-title-6 nil
"Face for level 6 headings.")
(defface eighters-title-7 nil
"Face for level 7 headings.")
(defface eighters-title-8 nil
"Face for level 8 headings.")
(defface eighters-ui nil
"Face for inalterable UI elements.")
(defmacro eighters-with-palette (&rest body)
`(let ,eighters-palette ,@body))
(eighters-with-palette
(custom-theme-set-faces
'eighters
;;; Theme faces.
`(eighters-button ((t (:background ,bg-hl-dimmer :box (:color ,bg-hl :style released-button) :inherit eighters-ui))))
`(eighters-date ((t (:foreground ,fg-magenta))))
`(eighters-identity ((t (:foreground ,fg-red))))
`(eighters-markup ((t (:foreground ,fg-dim))))
`(eighters-title-1 ((t (:foreground ,fg-cyan-subtle :weight bold :height 1.28 :inherit variable-pitch))))
`(eighters-title-2 ((t (:foreground ,fg-green-subtle :weight bold :height 1.20 :inherit variable-pitch))))
`(eighters-title-3 ((t (:foreground ,fg-yellow-subtle :weight bold :height 1.12 :inherit variable-pitch))))
`(eighters-title-4 ((t (:foreground ,fg-red-subtle :weight bold :height 1.04 :inherit variable-pitch))))
`(eighters-title-5 ((t (:foreground ,fg-magenta-subtle :weight bold :inherit variable-pitch))))
`(eighters-title-6 ((t (:foreground ,fg-blue-subtle :weight bold :inherit variable-pitch))))
`(eighters-title-7 ((t (:foreground ,fg-cyan-subtle :weight bold :inherit variable-pitch))))
`(eighters-title-8 ((t (:foreground ,fg-green-subtle :weight bold :inherit variable-pitch))))
`(eighters-citation-1 ((t (:foreground ,fg-cyan-dim))))
`(eighters-citation-2 ((t (:foreground ,fg-green-dim))))
`(eighters-citation-3 ((t (:foreground ,fg-yellow-dim))))
`(eighters-citation-4 ((t (:foreground ,fg-red-dim))))
`(eighters-citation-5 ((t (:foreground ,fg-magenta-dim))))
`(eighters-citation-6 ((t (:foreground ,fg-blue-dim))))
`(eighters-ui ((t (:inherit variable-pitch))))
;;; Standard faces.
`(ansi-color-black ((t (:foreground ,bg :background ,bg))))
`(ansi-color-red ((t (:foreground ,fg-red :background ,bg-red-dim))))
`(ansi-color-green ((t (:foreground ,fg-green :background ,bg-green-dim))))
`(ansi-color-yellow ((t (:foreground ,fg-yellow :background ,bg-yellow-dim))))
`(ansi-color-blue ((t (:foreground ,fg-blue :background ,bg-blue-dim))))
`(ansi-color-magenta ((t (:foreground ,fg-magenta :background ,bg-magenta-dim))))
`(ansi-color-cyan ((t (:foreground ,fg-cyan :background ,bg-cyan-dim))))
`(ansi-color-white ((t (:foreground ,fg-dim :background ,fg-dim))))
`(ansi-color-bright-black ((t (:foreground ,bg-hl :background ,bg-hl))))
`(ansi-color-bright-red ((t (:foreground ,fg-red-subtle :background ,bg-red))))
`(ansi-color-bright-green ((t (:foreground ,fg-green-subtle :background ,bg-green))))
`(ansi-color-bright-yellow ((t (:foreground ,fg-yellow-subtle :background ,bg-yellow))))
`(ansi-color-bright-blue ((t (:foreground ,fg-blue-subtle :background ,bg-blue))))
`(ansi-color-bright-magenta ((t (:foreground ,fg-magenta-subtle :background ,bg-magenta))))
`(ansi-color-bright-cyan ((t (:foreground ,fg-cyan-subtle :background ,bg-cyan))))
`(ansi-color-bright-white ((t (:foreground ,fg :background ,fg))))
`(button ((t (:inherit eighters-button))))
`(calendar-today ((t (:inverse-video t))))
`(compilation-column-number ((t (:inherit font-lock-constant-face))))
`(compilation-line-number ((t (:inherit font-lock-constant-face))))
`(compilation-mode-line-exit ((t (:inherit compilation-info))))
`(compilation-mode-line-fail ((t (:inherit compilation-error))))
`(compilation-mode-line-run ((t (:inherit compilation-warning))))
`(completions-common-part ((t (:foreground ,fg-dimmer))))
`(completions-first-difference ((t (:foreground ,fg-magenta :weight bold))))
`(custom-button ((t (:inherit eighters-button))))
`(custom-comment ((t (:background ,bg-hl-dim :foreground ,fg-dim))))
`(custom-variable-tag ((t (:inherit eighters-title-3))))
`(default ((t (:background ,bg :foreground ,fg))))
`(dired-broken-symlink ((t (:background ,bg-red :foreground ,fg-yellow :weight bold))))
`(dired-header ((t (:inherit eighters-title-1))))
`(dired-special ((t (:foreground ,fg-yellow-dim))))
`(eldoc-highlight-function-argument ((t (:background ,bg-yellow :foreground ,fg-yellow :weight bold))))
`(emacs-news-does-not-need-documentation ((t (:foreground ,fg-dimmer))))
`(emacs-news-is-documented ((t (:foreground ,fg-blue-dim))))
`(error ((t :foreground ,fg-red :weight bold)))
`(escape-glyph ((t (:foreground ,fg-red-dim :inherit fixed-pitch-serif))))
`(flymake-error ((t (:underline (:color ,fg-red :style wave)))))
`(flymake-note ((t (:underline (:color ,fg-blue :style wave)))))
`(flymake-warning ((t (:underline (:color ,fg-yellow :style wave)))))
`(flyspell-duplicate ((t (:underline (:color ,fg-yellow :style wave)))))
`(flyspell-incorrect ((t (:underline (:color ,fg-red :style wave)))))
`(font-lock-builtin-face ((t (:foreground ,fg-blue))))
`(font-lock-comment-face ((t (:foreground ,fg-dim :slant italic))))
`(font-lock-constant-face ((t (:foreground ,fg-magenta))))
`(font-lock-doc-face ((t (:foreground ,fg-green-dim :slant italic))))
`(font-lock-function-name-face ((t (:foreground ,fg-blue :weight bold))))
`(font-lock-keyword-face ((t (:foreground ,fg-cyan :weight bold))))
`(font-lock-preprocessor-face ((t (:foreground ,fg-blue :inherit fixed-pitch-serif))))
`(font-lock-regexp-grouping-backslash ((t (:foreground ,fg-yellow-dim))))
`(font-lock-regexp-grouping-construct ((t (:foreground ,fg-yellow :weight bold))))
`(font-lock-string-face ((t (:foreground ,fg-magenta-dim))))
`(font-lock-type-face ((t (:foreground ,fg-green))))
`(font-lock-variable-name-face ((t (:foreground ,fg-yellow))))
`(font-lock-warning-face ((t (:inherit warning))))
`(fringe ((t (:background ,bg-hl-dimmer :foreground ,fg-dimmer))))
`(gnus-group-mail-1 ((t (:foreground ,fg-yellow :weight bold))))
`(gnus-group-mail-1-empty ((t (:foreground ,fg-yellow-dim))))
`(gnus-group-mail-3 ((t (:foreground ,fg-green :weight bold))))
`(gnus-group-mail-3-empty ((t (:foreground ,fg-green-dim))))
`(gnus-group-mail-low ((t (:foreground ,fg-dim :weight bold))))
`(gnus-group-mail-low-empty ((t (:foreground ,fg-dimmer))))
`(gnus-group-news-3 ((t (:foreground ,fg-magenta :weight bold))))
`(gnus-group-news-3-empty ((t (:foreground ,fg-magenta-dim))))
`(gnus-button ((t (:inherit link))))
`(gnus-cite-1 ((t (:inherit eighters-citation-1))))
`(gnus-cite-2 ((t (:inherit eighters-citation-2))))
`(gnus-cite-3 ((t (:inherit eighters-citation-3))))
`(gnus-cite-4 ((t (:inherit eighters-citation-4))))
`(gnus-cite-5 ((t (:inherit eighters-citation-5))))
`(gnus-cite-6 ((t (:inherit eighters-citation-6))))
`(gnus-cite-7 ((t (:inherit eighters-citation-1))))
`(gnus-cite-8 ((t (:inherit eighters-citation-2))))
`(gnus-cite-9 ((t (:inherit eighters-citation-3))))
`(gnus-cite-10 ((t (:inherit eighters-citation-4))))
`(gnus-cite-11 ((t (:inherit eighters-citation-5))))
`(gnus-header ((t ())))
`(gnus-header-content ((t (:inherit gnus-header))))
`(gnus-header-from ((t (:inherit (eighters-identity gnus-header)))))
`(gnus-header-name ((t (:inherit (font-lock-type-face eighters-ui gnus-header)))))
`(gnus-header-newsgroups ((t (:inherit (warning gnus-header)))))
`(gnus-header-subject ((t (:inherit (eighters-title-1 gnus-header)))))
`(gnus-server-closed ((t (:inherit shadow))))
`(gnus-server-cloud ((t (:foreground ,fg-dimmer))))
`(gnus-server-cloud-host ((t (:foreground ,fg-dim :underline t))))
`(gnus-server-denied ((t (:inherit error))))
`(gnus-server-offline ((t (:inherit error))))
`(gnus-server-opened ((t (:inherit success))))
`(gnus-signature ((t (:inherit font-lock-comment-face))))
`(gnus-summary-cancelled ((t (:strike-through t :inherit shadow))))
`(gnus-summary-normal-ancient ((t (:foreground ,fg-dim))))
`(gnus-summary-normal-read ((t (:foreground ,fg-dim :slant italic))))
`(gnus-summary-normal-ticked ((t (:foreground ,fg-yellow-dim))))
`(gnus-summary-selected ((t (:inherit highlight))))
`(header-line ((t (:background ,bg-hl :inherit eighters-ui))))
`(help-key-binding ((t (:background ,bg-hl-dimmer :foreground ,fg-magenta :inherit fixed-pitch-serif))))
`(highlight ((t (:background ,bg-hl-dim))))
`(icomplete-selected-match ((t (:weight bold :inherit highlight))))
`(info-title-1 ((t (:inherit eighters-title-1))))
`(info-title-2 ((t (:inherit eighters-title-2))))
`(info-title-3 ((t (:inherit eighters-title-3))))
`(info-title-4 ((t (:inherit eighters-title-4))))
`(isearch ((t (:background ,bg-red :foreground ,fg-magenta :inverse-video t))))
`(isearch-fail ((t (:background ,bg-red :weight bold))))
`(isearch-group-1 ((t (:background ,bg-red :foreground ,fg-red :inverse-video t))))
`(isearch-group-2 ((t (:background ,bg-red :foreground ,fg-blue :inverse-video t))))
`(lazy-highlight ((t (:background ,bg-cyan :foreground ,fg-cyan-subtle :inverse-video t))))
`(link ((t (:foreground ,fg-blue :underline t))))
`(link-visited ((t (:foreground ,fg-magenta-dim :underline t))))
`(log-edit-header ((t (:inherit minibuffer-prompt))))
`(log-edit-headers-separator ((t (:inherit separator-line))))
`(log-edit-summary ((t (:inherit eighters-title-1))))
`(Man-overstrike ((t (:foreground ,fg-cyan :inherit bold))))
`(match ((t (:background ,bg-blue))))
`(message-cited-text-1 ((t (:inherit eighters-citation-1))))
`(message-cited-text-2 ((t (:inherit eighters-citation-2))))
`(message-cited-text-3 ((t (:inherit eighters-citation-3))))
`(message-cited-text-4 ((t (:inherit eighters-citation-4))))
`(message-header-cc ((t (:inherit eighters-identity))))
`(message-header-from ((t (:inherit eighters-identity))))
`(message-header-name ((t (:inherit (font-lock-type-face eighters-ui)))))
`(message-header-newsgroups ((t (:inherit warning))))
`(message-header-subject ((t (:inherit eighters-title-1))))
`(message-header-other ((t ())))
`(message-header-to ((t (:weight bold :inherit eighters-identity))))
`(message-header-xheader ((t (:inherit font-lock-preprocessor-face))))
`(message-mml ((t (:foreground ,fg-blue :inherit eighters-ui))))
`(message-separator ((t (:background ,bg-hl-dim :inherit (eighters-ui shadow)))))
`(message-signature-separator ((t (:background ,bg-hl-dim :inherit (eighters-ui shadow)))))
`(minibuffer-prompt ((t (:background ,bg-blue :foreground ,fg-blue-subtle :weight bold :inherit eighters-ui))))
`(mm-uu-extract ((t (:background ,bg-green-dimmer))))
`(mode-line ((t (:background ,bg-hl :box (:color ,fg) :inherit eighters-ui))))
`(mode-line-inactive ((t (:background ,bg-hl-dimmer :foreground ,fg-dimmer :box (:color ,bg-hl-dimmer) :inherit eighters-ui))))
`(nobreak-space ((t (:background ,bg-magenta-dimmer :underline t :inherit escape-glyph))))
`(outline-1 ((t (:inherit eighters-title-1))))
`(outline-2 ((t (:inherit eighters-title-2))))
`(outline-3 ((t (:inherit eighters-title-3))))
`(outline-4 ((t (:inherit eighters-title-4))))
`(outline-5 ((t (:inherit eighters-title-5))))
`(outline-6 ((t (:inherit eighters-title-6))))
`(outline-7 ((t (:inherit eighters-title-7))))
`(outline-8 ((t (:inherit eighters-title-8))))
`(org-block ((t (:background ,bg-hl-dimmer :inherit fixed-pitch-serif))))
`(org-block-begin-line ((t (:background ,bg-hl-dim :inherit shadow :extend t))))
`(org-block-end-line ((t (:background ,bg-hl-dim :inherit shadow :extend t))))
`(org-checkbox ((t (:foreground ,fg-yellow :weight bold))))
`(org-code ((t (:background ,bg-hl-dim :inherit fixed-pitch-serif))))
`(org-date ((t (:inherit eighters-date))))
`(org-done ((t (:inherit success))))
`(org-drawer ((t (:inherit shadow))))
`(org-ellipsis ((t (:inherit shadow))))
`(org-special-keyword ((t (:inherit shadow))))
`(org-tag ((t (:inherit font-lock-constant-face))))
`(org-todo ((t (:inherit error))))
`(org-verbatim ((t (:background ,bg-hl-dim :foreground ,fg-magenta :inherit fixed-pitch-serif))))
`(region ((t (:background ,bg-blue))))
`(separator-line ((t (:background ,bg-hl :height 0.1))))
`(shadow ((t (:foreground ,fg-dimmer))))
`(show-paren-match ((t (:foreground ,fg-cyan :inverse-video t))))
`(show-paren-mismatch ((t (:foreground ,fg-red :inverse-video t))))
`(success ((t (:foreground ,fg-blue :weight bold))))
`(tab-bar ((t (:background ,bg-hl-dimmer :inherit eighters-ui))))
`(tab-bar-tab ((t (:weight bold :box (:style released-button) :inherit tab-bar))))
`(tab-bar-tab-inactive ((t (:foreground ,fg-dimmer :weight normal :box (:style pressed-button) :inherit tab-bar-tab))))
`(tab-line ((t (:inherit tab-bar :height 0.9))))
`(tab-line-tab-current ((t (:inherit (tab-line-tab tab-bar-tab)))))
`(tab-line-tab-inactive ((t (:inherit (tab-line-tab tab-bar-tab-inactive)))))
`(transient-argument ((t :weight bold :inherit font-lock-string-face)))
`(transient-key ((t :inherit help-key-binding)))
`(transient-unreachable-key ((t :inherit (shadow help-key-binding))))
`(vertical-border ((t (:foreground ,bg-hl))))
`(warning ((t (:foreground ,fg-yellow :weight bold))))
`(whitespace-hspace ((t (:weight bold :inherit whitespace-space))))
`(whitespace-indentation ((t (:background ,bg-yellow-dim :foreground ,fg-red))))
`(whitespace-newline ((t (:foreground ,fg-blue-dim))))
`(whitespace-space ((t (:background ,bg-blue-dimmer :foreground ,fg-blue-dim))))
`(whitespace-space-after-tab ((t (:inherit whitespace-indentation))))
`(whitespace-tab ((t (:inherit whitespace-space))))
`(whitespace-trailing ((t (:background ,bg-red-dim :foreground ,fg-yellow :weight bold))))
`(widget-field ((t (:background ,bg-hl-dim))))
;;;; Diff faces.
`(diff-header ((t (:background ,bg-hl-dimmer :foreground ,fg-dim))))
`(diff-file-header ((t (:background ,bg-hl-dimmer :foreground ,fg :weight bold))))
`(diff-hunk-header ((t (:background ,bg-hl-dim :foreground ,fg-dim))))
`(diff-function ((t (:background ,bg-hl-dim :weight bold))))
`(diff-context ((t :foreground ,fg-dim)))
`(diff-removed ((t (:background ,bg-red-dimmer))))
`(diff-refine-removed ((t (:background ,bg-red))))
`(diff-indicator-removed ((t (:foreground ,fg-red :inherit diff-removed))))
`(diff-added ((t :background ,bg-blue-dimmer)))
`(diff-refine-added ((t (:background ,bg-blue))))
`(diff-indicator-added ((t (:foreground ,fg-blue :inherit diff-added))))
`(diff-changed ((t :background ,bg-yellow-dimmer)))
`(diff-refine-changed ((t (:background ,bg-yellow))))
`(diff-indicator-changed ((t (:foreground ,fg-yellow :inherit diff-changed))))
`(ediff-even-diff-A ((t (:background ,bg-hl-dimmer))))
`(ediff-even-diff-B ((t (:background ,bg-hl-dimmer))))
`(ediff-even-diff-C ((t (:background ,bg-hl-dimmer))))
`(ediff-even-diff-Ancestor ((t (:background ,bg-hl-dimmer))))
`(ediff-odd-diff-A ((t (:background ,bg-hl-dimmer))))
`(ediff-odd-diff-B ((t (:background ,bg-hl-dimmer))))
`(ediff-odd-diff-C ((t (:background ,bg-hl-dimmer))))
`(ediff-odd-diff-Ancestor ((t (:background ,bg-hl-dimmer))))
`(ediff-current-diff-A ((t (:inherit diff-removed))))
`(ediff-current-diff-B ((t (:inherit diff-added))))
`(ediff-current-diff-C ((t (:inherit diff-changed))))
`(ediff-current-diff-Ancestor ((t (:background ,bg-magenta-dimmer))))
`(ediff-fine-diff-A ((t (:inherit diff-refine-removed))))
`(ediff-fine-diff-B ((t (:inherit diff-refine-added))))
`(ediff-fine-diff-C ((t (:inherit diff-refine-changed))))
`(ediff-fine-diff-Ancestor ((t (:background ,bg-magenta))))
`(smerge-markers ((t (:background ,bg-hl-dim :foreground ,fg-dim))))
`(smerge-base ((t (:background ,bg-yellow-dim))))
;; Do *NOT* customize smerge-refined-changed, because that tells
;; smerge to use it for both removed and added sections.
`(smerge-upper ((t (:background ,bg-red-dim))))
`(smerge-refined-removed ((t (:inherit diff-refine-removed))))
`(smerge-lower ((t (:background ,bg-blue-dim))))
`(smerge-refined-added ((t (:inherit diff-refine-added))))
;;; Third-party faces.
`(diff-hl-delete ((t (:foreground ,fg-red :background ,bg-red))))
`(diff-hl-insert ((t (:foreground ,fg-blue :background ,bg-blue))))
`(diff-hl-change ((t (:foreground ,fg-yellow :background ,bg-yellow))))
`(markdown-blockquote-face ((t (:inherit eighters-citation-1))))
`(markdown-code-face ((t (:inherit fixed-pitch-serif))))
`(markdown-header-face-1 ((t (:inherit eighters-title-1))))
`(markdown-header-face-2 ((t (:inherit eighters-title-2))))
`(markdown-header-face-3 ((t (:inherit eighters-title-3))))
`(markdown-header-face-4 ((t (:inherit eighters-title-4))))
`(markdown-header-face-5 ((t (:inherit eighters-title-5))))
`(markdown-header-face-6 ((t (:inherit eighters-title-6))))
`(markdown-inline-code-face ((t (:background ,bg-hl-dim :foreground ,fg-magenta :inherit markdown-code-face))))
`(markdown-line-break-face ((t (:background ,bg-hl-dimmer :underline t :inherit markdown-markup-face))))
`(markdown-pre-face ((t (:background ,bg-hl-dimmer :inherit markdown-code-face :extend t))))
`(markdown-url-face ((t (:inherit (markdown-markup-face markdown-plain-url-face)))))
`(which-key-group-description-face ((t (:foreground ,fg-green-dim))))
`(which-key-key-face ((t :weight bold :inherit help-key-binding)))
;;;; Magit.
`(magit-blame-highlight ((t (:foreground ,fg-dim :background ,bg-yellow-dimmer))))
`(magit-branch-current ((t (:inverse-video t :inherit magit-branch-local))))
`(magit-branch-local ((t (:foreground ,fg-blue))))
`(magit-branch-remote ((t (:foreground ,fg-green-dim))))
`(magit-branch-remote-head ((t (:inverse-video t :inherit magit-branch-remote))))
`(magit-log-date ((t (:inherit eighters-date))))
`(magit-hash ((t (:inherit shadow))))
`(magit-log-author ((t (:inherit eighters-identity))))
`(magit-log-graph ((t (:inherit eighters-markup))))
;; FIXME: Teach magit-section overlays to de-prioritize their
;; :background so that tags can have one.
`(magit-tag ((t (:foreground ,fg-yellow))))
;;;;; Section backgrounds.
`(magit-section-highlight ((t :background ,bg-hl-dimmer)))
`(magit-diff-revision-summary ((t (:inherit (magit-diff-hunk-heading eighters-title-1)))))
`(magit-section-heading ((t (:inherit eighters-title-2))))
`(magit-diff-file-heading ((t (:inherit eighters-title-3))))
`(magit-diff-context ((t (:foreground ,fg-dim))))
`(magit-diff-context-highlight ((t (:background ,bg-hl-dimmer :inherit magit-diff-context))))
`(magit-diff-hunk-heading ((t (:background ,bg-hl-dim))))
`(magit-diff-hunk-heading-highlight ((t (:background ,bg-hl))))
;;;;; Diffs.
`(magit-diff-removed ((t (:foreground ,fg-dim :inherit diff-removed))))
`(magit-diff-removed-highlight ((t (:background ,bg-red-dim))))
`(magit-diffstat-removed ((t (:foreground ,fg-red))))
`(magit-diff-added ((t (:foreground ,fg-dim :inherit diff-added))))
`(magit-diff-added-highlight ((t (:background ,bg-blue-dim))))
`(magit-diffstat-added ((t (:foreground ,fg-blue))))
;;;;; Git commit.
`(git-commit-comment-action ((t (:inherit eighters-title-3))))
`(git-commit-comment-branch-local ((t (:inherit magit-branch-local))))
`(git-commit-comment-branch-remote ((t (:inherit magit-branch-remote))))
`(git-commit-comment-file ((t (:foreground ,fg-dim))))
`(git-commit-comment-heading ((t (:inherit eighters-title-2))))
`(git-commit-keyword ((t (:inherit font-lock-constant-face))))
`(git-commit-known-pseudo-header ((t (:inherit message-header-name))))
`(git-commit-summary ((t (:inherit eighters-title-1))))
`(git-commit-pseudo-header ((t (:inherit eighters-identity))))))
(provide-theme 'eighters)
|