forked from dracula/emacs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dracula-theme.el
544 lines (533 loc) · 34.4 KB
/
dracula-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
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
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
;;; dracula-theme.el --- Dracula Theme
;; Copyright 2015-present, All rights reserved
;;
;; Code licensed under the MIT license
;; Author: film42
;; Version: 1.5.1
;; Package-Requires: ((emacs "24"))
;; URL: https://github.com/dracula/emacs
;;; Commentary:
;; A dark color theme available for a number of editors.
;;; Code:
(require 'cl-lib)
(deftheme dracula)
;; Assigment form: VARIABLE COLOR [TTY-COLOR]
(let ((colors '(;; Upstream theme color
(dracula-bg "#282a36" "#262626" nil) ; official background
(dracula-fg "#f8f8f2" "#ffffff" "brightwhite") ; official foreground
(dracula-current "#44475a" "#262626" "brightblack") ; official current-line/selection
(dracula-comment "#6272a4" "#7a7a7a" "blue") ; official comment
(dracula-cyan "#8be9fd" "#88eeff" "brightcyan") ; official cyan
(dracula-green "#50fa7b" "#55ff77" "green") ; official green
(dracula-orange "#ffb86c" "#ffbb66" "brightred") ; official orange
(dracula-pink "#ff79c6" "#ff77cc" "magenta") ; official pink
(dracula-purple "#bd93f9" "#bb99ff" "brightmagenta") ; official purple
(dracula-red "#ff5555" "#ff6655" "red") ; official red
(dracula-yellow "#f1fa8c" "#ffff88" "yellow") ; official yellow
;; Other colors
(bg2 "#373844" "#2e2e2e" "brightblack")
(bg3 "#464752" "#262626" "brightblack")
(bg4 "#565761" "#3f3f3f" "brightblack")
(fg2 "#e2e2dc" "#bfbfbf" "brightwhite")
(fg3 "#ccccc7" "#cccccc" "white")
(fg4 "#b6b6b2" "#bbbbbb" "white")
(other-blue "#0189cc" "#0088cc" "brightblue")))
(faces '(;; default
(cursor :background ,fg3)
(default :background ,dracula-bg :foreground ,dracula-fg)
(default-italic :slant italic)
(ffap :foreground ,fg4)
(fringe :background ,dracula-bg :foreground ,fg4)
(highlight :foreground ,fg3 :background ,bg3)
(hl-line :background ,dracula-current :extend t)
(info-quoted-name :foreground ,dracula-orange)
(info-string :foreground ,dracula-yellow)
(lazy-highlight :foreground ,fg2 :background ,bg2)
(link :foreground ,dracula-cyan :underline t)
(linum :slant italic :foreground ,bg4 :background ,dracula-bg)
(line-number :slant italic :foreground ,bg4 :background ,dracula-bg)
(match :background ,dracula-yellow :foreground ,dracula-bg)
(minibuffer-prompt :weight bold :foreground ,dracula-pink)
(region :inherit match :extend t)
(trailing-whitespace :foreground nil :background ,dracula-orange)
(vertical-border :foreground ,bg2)
(success :foreground ,dracula-green)
(warning :foreground ,dracula-orange)
(error :foreground ,dracula-red)
(header-line :background ,dracula-bg)
;; syntax
(font-lock-builtin-face :foreground ,dracula-orange)
(font-lock-comment-face :foreground ,dracula-comment)
(font-lock-comment-delimiter-face :foreground ,dracula-comment)
(font-lock-constant-face :foreground ,dracula-cyan)
(font-lock-doc-face :foreground ,dracula-comment)
(font-lock-function-name-face :foreground ,dracula-green :weight bold)
(font-lock-keyword-face :weight bold :foreground ,dracula-pink)
(font-lock-negation-char-face :foreground ,dracula-cyan)
(font-lock-preprocessor-face :foreground ,dracula-orange)
(font-lock-reference-face :foreground ,dracula-cyan)
(font-lock-regexp-grouping-backslash :foreground ,dracula-cyan)
(font-lock-regexp-grouping-construct :foreground ,dracula-purple)
(font-lock-string-face :foreground ,dracula-yellow)
(font-lock-type-face :foreground ,dracula-purple)
(font-lock-variable-name-face :foreground ,dracula-fg
:weight bold)
(font-lock-warning-face :foreground ,dracula-orange :background ,bg2)
;; auto-complete
(ac-completion-face :underline t :foreground ,dracula-pink)
;; company
(company-echo-common :foreground ,dracula-bg :background ,dracula-fg)
(company-preview :background ,dracula-bg :foreground ,other-blue)
(company-preview-common :foreground ,bg2 :foreground ,fg3)
(company-preview-search :foreground ,dracula-purple :background ,dracula-bg)
(company-scrollbar-bg :background ,bg3)
(company-scrollbar-fg :foreground ,dracula-pink)
(company-template-field :inherit match)
(company-tooltip :foreground ,fg2 :background ,dracula-bg :weight bold)
(company-tooltip-annotation :foreground ,dracula-cyan)
(company-tooltip-common :foreground ,fg3)
(company-tooltip-common-selection :foreground ,dracula-yellow)
(company-tooltip-mouse :inherit highlight)
(company-tooltip-selection :background ,bg3 :foreground ,fg3)
;; diff-hl
(diff-hl-change :foreground ,dracula-orange :background ,dracula-orange)
(diff-hl-delete :foreground ,dracula-red :background ,dracula-red)
(diff-hl-insert :foreground ,dracula-green :background ,dracula-green)
;; dired
(dired-directory :foreground ,dracula-green :weight normal)
(dired-flagged :foreground ,dracula-pink)
(dired-header :foreground ,fg3 :background ,dracula-bg)
(dired-ignored :inherit shadow)
(dired-mark :foreground ,dracula-fg :weight bold)
(dired-marked :foreground ,dracula-orange :weight bold)
(dired-perm-write :foreground ,fg3 :underline t)
(dired-symlink :foreground ,dracula-yellow :weight normal :slant italic)
(dired-warning :foreground ,dracula-orange :underline t)
(diredp-compressed-file-name :foreground ,fg3)
(diredp-compressed-file-suffix :foreground ,fg4)
(diredp-date-time :foreground ,dracula-fg)
(diredp-deletion-file-name :foreground ,dracula-pink :background ,dracula-current)
(diredp-deletion :foreground ,dracula-pink :weight bold)
(diredp-dir-heading :foreground ,fg2 :background ,bg4)
(diredp-dir-name :inherit dired-directory)
(diredp-dir-priv :inherit dired-directory)
(diredp-executable-tag :foreground ,dracula-orange)
(diredp-file-name :foreground ,dracula-fg)
(diredp-file-suffix :foreground ,fg4)
(diredp-flag-mark-line :foreground ,fg2 :slant italic :background ,dracula-current)
(diredp-flag-mark :foreground ,fg2 :weight bold :background ,dracula-current)
(diredp-ignored-file-name :foreground ,dracula-fg)
(diredp-mode-line-flagged :foreground ,dracula-orange)
(diredp-mode-line-marked :foreground ,dracula-orange)
(diredp-no-priv :foreground ,dracula-fg)
(diredp-number :foreground ,dracula-cyan)
(diredp-other-priv :foreground ,dracula-orange)
(diredp-rare-priv :foreground ,dracula-orange)
(diredp-read-priv :foreground ,dracula-purple)
(diredp-write-priv :foreground ,dracula-pink)
(diredp-exec-priv :foreground ,dracula-yellow)
(diredp-symlink :foreground ,dracula-orange)
(diredp-link-priv :foreground ,dracula-orange)
(diredp-autofile-name :foreground ,dracula-yellow)
(diredp-tagged-autofile-name :foreground ,dracula-yellow)
;; enh-ruby
(enh-ruby-heredoc-delimiter-face :foreground ,dracula-yellow)
(enh-ruby-op-face :foreground ,dracula-pink)
(enh-ruby-regexp-delimiter-face :foreground ,dracula-yellow)
(enh-ruby-string-delimiter-face :foreground ,dracula-yellow)
;; flyspell
(flyspell-duplicate :underline (:style wave :color ,dracula-orange))
(flyspell-incorrect :underline (:style wave :color ,dracula-red))
;; font-latex
(font-latex-bold-face :foreground ,dracula-purple)
(font-latex-italic-face :foreground ,dracula-pink :slant italic)
(font-latex-match-reference-keywords :foreground ,dracula-cyan)
(font-latex-match-variable-keywords :foreground ,dracula-fg)
(font-latex-string-face :foreground ,dracula-yellow)
;; gnus-group
(gnus-group-mail-1 :foreground ,dracula-pink :weight bold)
(gnus-group-mail-1-empty :inherit gnus-group-mail-1 :weight normal)
(gnus-group-mail-2 :foreground ,dracula-cyan :weight bold)
(gnus-group-mail-2-empty :inherit gnus-group-mail-2 :weight normal)
(gnus-group-mail-3 :foreground ,dracula-comment :weight bold)
(gnus-group-mail-3-empty :inherit gnus-group-mail-3 :weight normal)
(gnus-group-mail-low :foreground ,dracula-current :weight bold)
(gnus-group-mail-low-empty :inherit gnus-group-mail-low :weight normal)
(gnus-group-news-1 :foreground ,dracula-pink :weight bold)
(gnus-group-news-1-empty :inherit gnus-group-news-1 :weight normal)
(gnus-group-news-2 :foreground ,dracula-cyan :weight bold)
(gnus-group-news-2-empty :inherit gnus-group-news-2 :weight normal)
(gnus-group-news-3 :foreground ,dracula-comment :weight bold)
(gnus-group-news-3-empty :inherit gnus-group-news-3 :weight normal)
(gnus-group-news-4 :inherit gnus-group-news-low)
(gnus-group-news-4-empty :inherit gnus-group-news-low-empty)
(gnus-group-news-5 :inherit gnus-group-news-low)
(gnus-group-news-5-empty :inherit gnus-group-news-low-empty)
(gnus-group-news-6 :inherit gnus-group-news-low)
(gnus-group-news-6-empty :inherit gnus-group-news-low-empty)
(gnus-group-news-low :foreground ,dracula-current :weight bold)
(gnus-group-news-low-empty :inherit gnus-group-news-low :weight normal)
(gnus-header-content :foreground ,dracula-pink)
(gnus-header-from :foreground ,dracula-fg)
(gnus-header-name :foreground ,dracula-purple)
(gnus-header-subject :foreground ,dracula-green :weight bold)
(gnus-summary-markup-face :foreground ,dracula-cyan)
(gnus-summary-high-unread :foreground ,dracula-pink :weight bold)
(gnus-summary-high-read :inherit gnus-summary-high-unread :weight normal)
(gnus-summary-high-ancient :inherit gnus-summary-high-read)
(gnus-summary-high-ticked :inherit gnus-summary-high-read :underline t)
(gnus-summary-normal-unread :foreground ,other-blue :weight bold)
(gnus-summary-normal-read :foreground ,dracula-comment :weight normal)
(gnus-summary-normal-ancient :inherit gnus-summary-normal-read :weight light)
(gnus-summary-normal-ticked :foreground ,dracula-pink :weight bold)
(gnus-summary-low-unread :foreground ,dracula-comment :weight bold)
(gnus-summary-low-read :inherit gnus-summary-low-unread :weight normal)
(gnus-summary-low-ancient :inherit gnus-summary-low-read)
(gnus-summary-low-ticked :inherit gnus-summary-low-read :underline t)
(gnus-summary-selected :inverse-video t)
;; haskell-mode
(haskell-operator-face :foreground ,dracula-pink)
(haskell-constructor-face :foreground ,dracula-purple)
;; helm
(helm-bookmark-w3m :foreground ,dracula-purple)
(helm-buffer-not-saved :foreground ,dracula-purple :background ,dracula-bg)
(helm-buffer-process :foreground ,dracula-orange :background ,dracula-bg)
(helm-buffer-saved-out :foreground ,dracula-fg :background ,dracula-bg)
(helm-buffer-size :foreground ,dracula-fg :background ,dracula-bg)
(helm-candidate-number :foreground ,dracula-bg :background ,dracula-fg)
(helm-ff-directory :foreground ,dracula-green :background ,dracula-bg :weight bold)
(helm-ff-dotted-directory :foreground ,dracula-green :background ,dracula-bg :weight normal)
(helm-ff-executable :foreground ,other-blue :background ,dracula-bg :weight normal)
(helm-ff-file :foreground ,dracula-fg :background ,dracula-bg :weight normal)
(helm-ff-invalid-symlink :foreground ,dracula-pink :background ,dracula-bg :weight bold)
(helm-ff-prefix :foreground ,dracula-bg :background ,dracula-pink :weight normal)
(helm-ff-symlink :foreground ,dracula-pink :background ,dracula-bg :weight bold)
(helm-grep-cmd-line :foreground ,dracula-fg :background ,dracula-bg)
(helm-grep-file :foreground ,dracula-fg :background ,dracula-bg)
(helm-grep-finish :foreground ,fg2 :background ,dracula-bg)
(helm-grep-lineno :foreground ,dracula-fg :background ,dracula-bg)
(helm-grep-match :foreground nil :background nil :inherit helm-match)
(helm-grep-running :foreground ,dracula-green :background ,dracula-bg)
(helm-header :foreground ,fg2 :background ,dracula-bg :underline nil :box nil)
(helm-moccur-buffer :foreground ,dracula-green :background ,dracula-bg)
(helm-selection :background ,bg2 :underline nil)
(helm-selection-line :background ,bg2)
(helm-separator :foreground ,dracula-purple :background ,dracula-bg)
(helm-source-go-package-godoc-description :foreground ,dracula-yellow)
(helm-source-header :foreground ,dracula-pink :background ,dracula-bg :underline nil :weight bold)
(helm-time-zone-current :foreground ,dracula-orange :background ,dracula-bg)
(helm-time-zone-home :foreground ,dracula-purple :background ,dracula-bg)
(helm-visible-mark :foreground ,dracula-bg :background ,bg3)
;; highlight-indentation minor mode
(highlight-indentation-face :background ,bg2)
;; icicle
(icicle-whitespace-highlight :background ,dracula-fg)
(icicle-special-candidate :foreground ,fg2)
(icicle-extra-candidate :foreground ,fg2)
(icicle-search-main-regexp-others :foreground ,dracula-fg)
(icicle-search-current-input :foreground ,dracula-pink)
(icicle-search-context-level-8 :foreground ,dracula-orange)
(icicle-search-context-level-7 :foreground ,dracula-orange)
(icicle-search-context-level-6 :foreground ,dracula-orange)
(icicle-search-context-level-5 :foreground ,dracula-orange)
(icicle-search-context-level-4 :foreground ,dracula-orange)
(icicle-search-context-level-3 :foreground ,dracula-orange)
(icicle-search-context-level-2 :foreground ,dracula-orange)
(icicle-search-context-level-1 :foreground ,dracula-orange)
(icicle-search-main-regexp-current :foreground ,dracula-fg)
(icicle-saved-candidate :foreground ,dracula-fg)
(icicle-proxy-candidate :foreground ,dracula-fg)
(icicle-mustmatch-completion :foreground ,dracula-purple)
(icicle-multi-command-completion :foreground ,fg2 :background ,bg2)
(icicle-msg-emphasis :foreground ,dracula-green)
(icicle-mode-line-help :foreground ,fg4)
(icicle-match-highlight-minibuffer :foreground ,dracula-orange)
(icicle-match-highlight-Completions :foreground ,dracula-green)
(icicle-key-complete-menu-local :foreground ,dracula-fg)
(icicle-key-complete-menu :foreground ,dracula-fg)
(icicle-input-completion-fail-lax :foreground ,dracula-pink)
(icicle-input-completion-fail :foreground ,dracula-pink)
(icicle-historical-candidate-other :foreground ,dracula-fg)
(icicle-historical-candidate :foreground ,dracula-fg)
(icicle-current-candidate-highlight :foreground ,dracula-orange :background ,bg3)
(icicle-Completions-instruction-2 :foreground ,fg4)
(icicle-Completions-instruction-1 :foreground ,fg4)
(icicle-completion :foreground ,dracula-fg)
(icicle-complete-input :foreground ,dracula-orange)
(icicle-common-match-highlight-Completions :foreground ,dracula-purple)
(icicle-candidate-part :foreground ,dracula-fg)
(icicle-annotation :foreground ,fg4)
;; icomplete
(icompletep-determined :foreground ,dracula-orange)
;; ido
(ido-first-match :foreground ,dracula-pink :weight bold)
(ido-only-match :foreground ,dracula-orange)
(ido-subdir :foreground ,dracula-orange)
(ido-virtual :foreground ,dracula-cyan)
(ido-incomplete-regexp :inherit font-lock-warning-face)
(ido-indicator :foreground ,dracula-fg :background ,dracula-pink)
;; isearch
(isearch :inherit match :weight bold)
(isearch-fail :foreground ,dracula-bg :background ,dracula-orange)
;; jde-java
(jde-java-font-lock-constant-face :foreground ,dracula-cyan)
(jde-java-font-lock-modifier-face :foreground ,dracula-pink)
(jde-java-font-lock-number-face :foreground ,dracula-fg)
(jde-java-font-lock-package-face :foreground ,dracula-fg)
(jde-java-font-lock-private-face :foreground ,dracula-pink)
(jde-java-font-lock-public-face :foreground ,dracula-pink)
;; js2-mode
(js2-external-variable :foreground ,dracula-purple)
(js2-function-param :foreground ,dracula-cyan)
(js2-jsdoc-html-tag-delimiter :foreground ,dracula-yellow)
(js2-jsdoc-html-tag-name :foreground ,other-blue)
(js2-jsdoc-value :foreground ,dracula-yellow)
(js2-private-function-call :foreground ,dracula-cyan)
(js2-private-member :foreground ,fg3)
;; js3-mode
(js3-error-face :underline ,dracula-orange)
(js3-external-variable-face :foreground ,dracula-fg)
(js3-function-param-face :foreground ,dracula-pink)
(js3-instance-member-face :foreground ,dracula-cyan)
(js3-jsdoc-tag-face :foreground ,dracula-pink)
(js3-warning-face :underline ,dracula-pink)
;; magit
(magit-branch-local :foreground ,dracula-cyan)
(magit-branch-remote :foreground ,dracula-green)
(magit-tag :foreground ,dracula-orange)
(magit-section-heading :foreground ,dracula-pink :weight bold)
(magit-section-highlight :background ,bg3 :extend t)
(magit-diff-context-highlight :background ,bg3
:foreground ,fg3
:extend t)
(magit-diff-revision-summary :foreground ,dracula-orange
:background ,dracula-bg
:weight bold)
(magit-diff-revision-summary-highlight :foreground ,dracula-orange
:background ,bg3
:weight bold
:extend t)
;; the four following lines are just a patch of the
;; upstream color to add the extend keyword.
(magit-diff-added :background "#335533"
:foreground "#ddffdd"
:extend t)
(magit-diff-added-highlight :background "#336633"
:foreground "#cceecc"
:extend t)
(magit-diff-removed :background "#553333"
:foreground "#ffdddd"
:extend t)
(magit-diff-removed-highlight :background "#663333"
:foreground "#eecccc"
:extend t)
(magit-diff-file-heading :foreground ,dracula-fg)
(magit-diff-file-heading-highlight :inherit magit-section-highlight)
(magit-diffstat-added :foreground ,dracula-green)
(magit-diffstat-removed :foreground ,dracula-red)
(magit-hash :foreground ,fg2)
(magit-hunk-heading :background ,bg3)
(magit-hunk-heading-highlight :background ,bg3)
(magit-item-highlight :background ,bg3)
(magit-log-author :foreground ,fg3)
(magit-process-ng :foreground ,dracula-orange :weight bold)
(magit-process-ok :foreground ,dracula-green :weight bold)
;; message
(message-mml :foreground ,dracula-green :weight normal)
(message-header-xheader :foreground ,dracula-cyan :weight normal)
;; mode-line
(mode-line :foreground nil :background ,dracula-current :box ,dracula-current)
(mode-line-inactive :foreground ,dracula-fg :background ,bg2 :box ,bg2)
;; mu4e
(mu4e-unread-face :foreground ,dracula-pink :weight normal)
(mu4e-view-url-number-face :foreground ,dracula-purple)
(mu4e-highlight-face :background ,dracula-bg
:foreground ,dracula-yellow
:extend t)
(mu4e-header-highlight-face :background ,dracula-current
:foreground ,dracula-fg
:underline nil :weight bold
:extend t)
(mu4e-header-key-face :inherit message-mml)
(mu4e-header-marks-face :foreground ,dracula-purple)
(mu4e-cited-1-face :foreground ,dracula-purple)
(mu4e-cited-2-face :foreground ,dracula-orange)
(mu4e-cited-3-face :foreground ,dracula-comment)
(mu4e-cited-4-face :foreground ,fg2)
(mu4e-cited-5-face :foreground ,fg3)
;; org
(org-agenda-date :foreground ,dracula-cyan :underline nil)
(org-agenda-dimmed-todo-face :foreground ,dracula-comment)
(org-agenda-done :foreground ,dracula-green)
(org-agenda-structure :foreground ,dracula-purple)
(org-block :foreground ,dracula-orange)
(org-code :foreground ,dracula-yellow)
(org-column :background ,bg4)
(org-column-title :inherit org-column :weight bold :underline t)
(org-date :foreground ,dracula-cyan :underline t)
(org-document-info :foreground ,other-blue)
(org-document-info-keyword :foreground ,dracula-comment)
(org-document-title :weight bold :foreground ,dracula-orange :height 1.44)
(org-done :foreground ,dracula-green)
(org-ellipsis :foreground ,dracula-comment)
(org-footnote :foreground ,other-blue)
(org-formula :foreground ,dracula-pink)
(org-headline-done :foreground ,dracula-comment :weight normal :strike-through t)
(org-hide :foreground ,dracula-bg :background ,dracula-bg)
(org-level-1 :inherit bold :foreground ,dracula-pink :height 1.3)
(org-level-2 :inherit bold :foreground ,dracula-purple :height 1.1)
(org-level-3 :weight normal :foreground ,dracula-green :height 1.0)
(org-level-4 :weight normal :foreground ,dracula-yellow)
(org-level-5 :weight normal :foreground ,dracula-cyan)
(org-level-6 :weight normal :foreground ,dracula-orange)
(org-level-7 :weight normal :foreground ,other-blue)
(org-level-8 :weight normal :foreground ,dracula-fg)
(org-link :foreground ,dracula-cyan :underline t)
(org-priority :foreground ,dracula-cyan)
(org-scheduled :foreground ,dracula-green)
(org-scheduled-previously :foreground ,dracula-yellow)
(org-scheduled-today :foreground ,dracula-green)
(org-sexp-date :foreground ,fg4)
(org-special-keyword :foreground ,dracula-yellow)
(org-table :foreground ,dracula-purple)
(org-tag :foreground ,dracula-pink :weight bold :background ,bg2)
(org-todo :foreground ,dracula-orange :weight bold :background ,bg2)
(org-upcoming-deadline :foreground ,dracula-yellow)
(org-warning :weight bold :foreground ,dracula-pink)
;; outline
(outline-1 :foreground ,dracula-green)
(outline-2 :foreground ,dracula-purple)
(outline-3 :foreground ,dracula-cyan)
(outline-4 :foreground ,dracula-orange)
(outline-5 :foreground ,dracula-orange)
(outline-6 :foreground ,other-blue)
;; powerline
(powerline-evil-base-face :foreground ,bg2)
(powerline-evil-emacs-face :inherit powerline-evil-base-face :background ,dracula-yellow)
(powerline-evil-insert-face :inherit powerline-evil-base-face :background ,dracula-cyan)
(powerline-evil-motion-face :inherit powerline-evil-base-face :background ,dracula-purple)
(powerline-evil-normal-face :inherit powerline-evil-base-face :background ,dracula-green)
(powerline-evil-operator-face :inherit powerline-evil-base-face :background ,dracula-pink)
(powerline-evil-replace-face :inherit powerline-evil-base-face :background ,dracula-red)
(powerline-evil-visual-face :inherit powerline-evil-base-face :background ,dracula-orange)
;; rainbow-delimiters
(rainbow-delimiters-depth-1-face :foreground ,dracula-fg)
(rainbow-delimiters-depth-2-face :foreground ,dracula-cyan)
(rainbow-delimiters-depth-3-face :foreground ,dracula-purple)
(rainbow-delimiters-depth-4-face :foreground ,dracula-pink)
(rainbow-delimiters-depth-5-face :foreground ,dracula-orange)
(rainbow-delimiters-depth-6-face :foreground ,dracula-green)
(rainbow-delimiters-depth-7-face :foreground ,dracula-yellow)
(rainbow-delimiters-depth-8-face :foreground ,other-blue)
(rainbow-delimiters-unmatched-face :foreground ,dracula-orange)
;; rpm-spec
(rpm-spec-dir-face :foreground ,dracula-green)
(rpm-spec-doc-face :foreground ,dracula-pink)
(rpm-spec-ghost-face :foreground ,dracula-purple)
(rpm-spec-macro-face :foreground ,dracula-yellow)
(rpm-spec-obsolete-tag-face :inherit font-lock-warning-face)
(rpm-spec-package-face :foreground ,dracula-purple)
(rpm-spec-section-face :foreground ,dracula-yellow)
(rpm-spec-tag-face :foreground ,dracula-cyan)
(rpm-spec-var-face :foreground ,dracula-orange)
;; show-paren
(show-paren-match-face :background unspecified
:foreground ,dracula-cyan
:weight bold)
(show-paren-match :background unspecified
:foreground ,dracula-cyan
:weight bold)
(show-paren-match-expression :inherit match)
(show-paren-mismatch :inherit font-lock-warning-face)
;; slime
(slime-repl-inputed-output-face :foreground ,dracula-purple)
;; spam
(spam :inherit gnus-summary-normal-read :foreground ,dracula-orange
:strike-through t :slant oblique)
;; tab-bar & tab-line (since Emacs 27.1)
(tab-bar :foreground ,dracula-purple :background ,dracula-current
:inherit variable-pitch)
(tab-bar-tab :foreground ,dracula-pink :background ,dracula-bg
:box (:line-width 2 :color ,dracula-bg :style nil))
(tab-bar-tab-inactive :foreground ,dracula-purple :background ,bg2
:box (:line-width 2 :color ,bg2 :style nil))
(tab-line :foreground ,dracula-purple :background ,dracula-current
:height 0.9 :inherit variable-pitch)
(tab-line-tab :foreground ,dracula-pink :background ,dracula-bg
:box (:line-width 2 :color ,dracula-bg :style nil))
(tab-line-tab-inactive :foreground ,dracula-purple :background ,bg2
:box (:line-width 2 :color ,bg2 :style nil))
(tab-line-tab-current :inherit tab-line-tab)
(tab-line-close-highlight :foreground ,dracula-red)
;; term
(term :foreground ,dracula-fg :background ,dracula-bg)
(term-color-black :foreground ,dracula-bg :background ,dracula-bg)
(term-color-blue :foreground ,dracula-purple :background ,dracula-purple)
(term-color-cyan :foreground ,dracula-cyan :background ,dracula-cyan)
(term-color-green :foreground ,dracula-green :background ,dracula-green)
(term-color-magenta :foreground ,dracula-pink :background ,dracula-pink)
(term-color-red :foreground ,dracula-red :background ,dracula-red)
(term-color-white :foreground ,dracula-fg :background ,dracula-fg)
(term-color-yellow :foreground ,dracula-yellow :background ,dracula-yellow)
;; undo-tree
(undo-tree-visualizer-current-face :foreground ,dracula-orange)
(undo-tree-visualizer-default-face :foreground ,fg2)
(undo-tree-visualizer-register-face :foreground ,dracula-purple)
(undo-tree-visualizer-unmodified-face :foreground ,dracula-fg)
;; web-mode
(web-mode-builtin-face :inherit ,font-lock-builtin-face)
(web-mode-comment-face :inherit ,font-lock-comment-face)
(web-mode-constant-face :inherit ,font-lock-constant-face)
(web-mode-doctype-face :inherit ,font-lock-comment-face)
(web-mode-function-name-face :inherit ,font-lock-function-name-face)
(web-mode-html-attr-name-face :foreground ,dracula-purple)
(web-mode-html-attr-value-face :foreground ,dracula-green)
(web-mode-html-tag-face :foreground ,dracula-pink :weight bold)
(web-mode-keyword-face :foreground ,dracula-pink)
(web-mode-string-face :foreground ,dracula-yellow)
(web-mode-type-face :inherit ,font-lock-type-face)
(web-mode-warning-face :inherit ,font-lock-warning-face)
;; which-func
(which-func :inherit ,font-lock-function-name-face)
;; whitespace
(whitespace-big-indent :background ,dracula-red :foreground ,dracula-red)
(whitespace-empty :background ,dracula-orange :foreground ,dracula-red)
(whitespace-hspace :background ,bg3 :foreground ,dracula-comment)
(whitespace-indentation :background ,dracula-orange :foreground ,dracula-red)
(whitespace-line :background ,dracula-bg :foreground ,dracula-pink)
(whitespace-newline :foreground ,dracula-comment)
(whitespace-space :background ,dracula-bg :foreground ,dracula-comment)
(whitespace-space-after-tab :background ,dracula-orange :foreground ,dracula-red)
(whitespace-space-before-tab :background ,dracula-orange :foreground ,dracula-red)
(whitespace-tab :background ,bg2 :foreground ,dracula-comment)
(whitespace-trailing :inherit trailing-whitespace)
;; yard-mode
(yard-tag-face :inherit ,font-lock-builtin-face)
(yard-directive-face :inherit ,font-lock-builtin-face))))
(apply #'custom-theme-set-faces
'dracula
(let ((color-names (mapcar #'car colors))
(graphic-colors (mapcar #'cadr colors))
(term-colors (mapcar #'car (mapcar #'cddr colors)))
(tty-colors (mapcar #'car (mapcar #'last colors)))
(expand-for-kind (lambda (kind spec)
(cl-progv color-names kind
(eval `(backquote ,spec))))))
(cl-loop for (face . spec) in faces
collect `(,face
((((min-colors 16777216)) ; fully graphical envs
,(funcall expand-for-kind graphic-colors spec))
(((min-colors 256)) ; terminal withs 256 colors
,(funcall expand-for-kind term-colors spec))
(t ; should be only tty-like envs
,(funcall expand-for-kind tty-colors spec))))))))
;;;###autoload
(when load-file-name
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
(provide-theme 'dracula)
;; Local Variables:
;; no-byte-compile: t
;; indent-tabs-mode: nil
;; End:
;;; dracula-theme.el ends here