-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom-monokai-theme.el
More file actions
102 lines (95 loc) · 4.35 KB
/
Copy pathcustom-monokai-theme.el
File metadata and controls
102 lines (95 loc) · 4.35 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
;;; monokai-theme.el --- REQUIRES EMACS 24: Monokai Color Theme for Emacs. -*- lexical-binding: t; -*-
;; Copyright (C) 2012 Lorenzo Villani.
;;
;; Author: Lorenzo Villani <lorenzo@villani.me>
;; URL: https://github.com/lvillani/el-monokai-theme
;; Version: 0.0.11
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, version 3 of the License.
;;
;; This file is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.
(deftheme custom-monokai
"Monokai color theme")
(let ((monokai-blue-light "#89BDFF")
(monokai-gray "#595959")
(monokai-gray-darker "#383830")
(monokai-gray-darkest "#141411")
(monokai-gray-lightest "#595959")
(monokai-gray-light "#E6E6E6")
(monokai-brown "#49483E")
(monokai-green "#A6E22A")
(monokai-green-light "#A6E22E")
(monokai-grey-dark "#272822")
(monokai-magenta "#F92672")
(monokai-purple "#AE81FF")
(monokai-purple-light "#FD5FF1")
(monokai-yellow "#E6DB74")
(monokai-orange-dark "#FF8C00")
(monokai-yellow-dark "#75715E")
(monokai-yellow-light "#F8F8F2")
(monokai-gray-slate "#2f4f4f"))
(custom-theme-set-faces
'custom-monokai
;; Frame
`(default ((t (:foreground ,monokai-yellow-light :background ,monokai-grey-dark))))
`(cursor ((t (:foreground ,monokai-magenta))))
`(hl-line ((t (:background ,monokai-gray-darkest))))
`(minibuffer-prompt ((t (:foreground ,monokai-yellow-dark))))
`(modeline ((t (:background ,monokai-gray-lightest :foreground ,monokai-gray-light))))
`(region ((t (:background ,monokai-gray-slate))))
`(show-paren-match-face ((t (:background ,monokai-gray-lightest))))
;; Main
`(font-lock-builtin-face ((t (:foreground ,monokai-green)))) ;green
`(font-lock-preprocessor-face ((t (:foreground ,monokai-magenta)))) ;built
`(font-lock-comment-face ((t (:foreground ,monokai-yellow-dark))))
`(font-lock-constant-face ((t (:foreground ,monokai-purple))))
`(font-lock-doc-string-face ((t (:foreground ,monokai-yellow))))
`(font-lock-function-name-face ((t (:foreground ,monokai-green))))
`(font-lock-keyword-face ((t (:foreground ,monokai-magenta))))
`(font-lock-string-face ((t (:foreground ,monokai-yellow))))
`(font-lock-type-face ((t (:foreground ,monokai-blue-light))))
`(font-lock-variable-name-face ((t (:foreground ,monokai-orange-dark :slant italic))));; monokai-magenta
`(font-lock-warning-face ((t (:bold t :foreground ,monokai-purple-light))))
;; CUA
`(cua-rectangle ((t (:background ,monokai-gray-darkest))))
;; IDO
`(ido-first-match ((t (:foreground ,monokai-purple))))
`(ido-only-match ((t (:foreground ,monokai-green))))
`(ido-subdir ((t (:foreground ,monokai-blue-light))))
;; ECB
`(ecb-default-highlight-face ((t (:foreground ,monokai-green))))
;; Whitespace
`(whitespace-space ((t (:foreground ,monokai-gray))))
;; Yasnippet
`(yas/field-highlight-face ((t (:background ,monokai-gray-darker))))
`(magit-diff-context-highlight ((t (:background "grey23"))))
`(magit-section-highlight ((t (:background "grey28"))))
`(magit-diff-file-heading ((t (:background "#164863"))))
`(magit-diff-file-heading-highlight ((t (:background "#427D9D"))))
`(tree-sitter-hl-face:constant ((t nil)))
`(tree-sitter-hl-face:constant.builtin ((t (:inherit (font-lock-constant-face default)))))
`(tree-sitter-hl-face:constructor ((t nil)))
`(tree-sitter-hl-face:function.call ((t (:underline nil))))
`(tree-sitter-hl-face:label ((t nil)))
`(tree-sitter-hl-face:property ((t nil)))
`(tree-sitter-hl-face:type ((t (:inherit font-lock-type-face))))
`(tree-sitter-hl-face:type.builtin ((t (:inherit font-lock-type-face))))))
;;;###autoload
(when load-file-name
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name)))
(when (not window-system)
(custom-set-faces '(default ((t (:background nil)))))))
(provide-theme 'custom-monokai)
;; Local Variables:
;; no-byte-compile: t
;; End:
;;; monokai-theme.el ends here