-
Notifications
You must be signed in to change notification settings - Fork 16
/
monokai-theme.el
85 lines (77 loc) · 3.29 KB
/
monokai-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
;;; monokai-theme.el --- REQUIRES EMACS 24: Monokai Color Theme for Emacs.
;; Copyright (C) 2012 Lorenzo Villani.
;;
;; Author: Lorenzo Villani <lorenzo@villani.me>
;; URL: https://github.com/lvillani/el-monokai-theme
;; Version: 0.0.8
;;
;; 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.
(unless (>= 24 emacs-major-version)
(error "monokai-theme requires Emacs 24 or later."))
(deftheme 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-green "#A6E22A")
(monokai-green-light "#A6E22E")
(monokai-grey-dark "#272822")
(monokai-magenta "#F92672")
(monokai-purple "#AE81FF")
(monokai-purple-light "#FD5FF1")
(monokai-yellow "#E6DB74")
(monokai-yellow-dark "#75715E")
(monokai-yellow-light "#F8F8F2"))
(custom-theme-set-faces
'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-darker))))
`(show-paren-match-face ((t (:background ,monokai-gray-darker))))
;; Main
`(font-lock-builtin-face ((t (:foreground ,monokai-green))))
`(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-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))))
;; Whitespace
`(whitespace-space ((t (:foreground ,monokai-gray))))
;; Yasnippet
`(yas/field-highlight-face ((t (:background ,monokai-gray-darker))))))
;;;###autoload
(when load-file-name
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
(provide-theme 'monokai)
;; Local Variables:
;; no-byte-compile: t
;; End:
;;; monokai-theme.el ends here