-
Notifications
You must be signed in to change notification settings - Fork 7
/
monotropic-theme.el
269 lines (229 loc) · 11.2 KB
/
monotropic-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
;;; monotropic-theme.el --- Monotropic Theme
;; Copyright 2018-present, all rights reserved.
;;
;; Code licensed under MIT licence.
;; Author: caffo
;; Version: 0.1
;; Package-Version: 0
;; Package-Requires: ((emacs "24"))
;; URL: https://github.com/caffo/monotropic-theme
;;; Commentary:
;; (Almost) monochromatic theme for Emacs. Originally based on maio/eink-emacs.
;;; Code:
(deftheme monotropic
"Monotropic -- relating to or exhibiting monotropy. Based on https://github.com/maio/eink-emacs")
(let ((fg "#111111")
(bg "#fffffa")
(bg-light "#ddddda")
(fg-light "#808080")
(bg-highlight "#ddddda")
(bg-highlight-2 "#eeeee8")
(bg-highlight-3 "#faf0fc"))
(custom-theme-set-faces
'monotropic
;; generic stuff
`(default ((t (:background ,bg :foreground ,fg))))
`(button ((t (:foreground ,fg :underline t))))
`(cursor ((t (:background ,fg :foreground "white smoke"))))
`(custom-variable-tag ((t (:foreground ,fg :weight bold))))
`(default-italic ((t (:italic t))))
`(font-latex-bold-face ((t (:foreground ,fg))))
`(font-latex-italic-face ((t (:foreground ,fg :slant italic))))
`(font-latex-match-reference-keywords ((t (:foreground ,fg))))
`(font-latex-match-variable-keywords ((t (:foreground ,fg))))
`(font-latex-string-face ((t (:foreground "#a9a9a9"))))
`(font-lock-builtin-face ((t (:background ,bg :foreground ,fg))))
`(font-lock-comment-delimiter-face ((t (:foreground ,fg-light :weight normal))))
`(font-lock-comment-face ((t (:foreground ,fg-light :slant italic :weight normal ))))
`(font-lock-constant-face ((t (:foreground ,fg))))
`(font-lock-doc-face ((t (:foreground ,fg))))
`(font-lock-function-name-face ((t (:foreground ,fg))))
`(font-lock-keyword-face ((t (:foreground ,fg))))
`(font-lock-preprocessor-face ((t (:foreground ,fg))))
`(font-lock-reference-face ((t (:foreground ,fg))))
`(font-lock-string-face ((t (:foreground ,fg))))
`(font-lock-type-face ((t (:foreground ,fg))))
`(font-lock-variable-name-face ((t (:foreground ,fg :underline nil))))
`(font-lock-warning-face ((t (:foreground ,fg :weight bold))))
`(fringe ((t (:background ,bg :foreground ,bg))))
`(gnus-header-content ((t (:foreground ,fg))))
`(gnus-header-from ((t (:foreground ,fg))))
`(gnus-header-name ((t (:foreground ,fg))))
`(gnus-header-subject ((t (:foreground ,fg))))
`(highlight ((t nil)))
`(ido-first-match ((t (:foreground ,fg))))
`(ido-only-match ((t (:foreground ,fg))))
`(ido-subdir ((t (:foreground ,fg))))
`(isearch ((t (:background "#eeeee8" :foreground ,fg))))
`(link ((t (:foreground ,fg))))
`(minibuffer-prompt ((t (:foreground ,fg :weight bold))))
`(mode-line ((t (:background ,bg-light :foreground ,fg :height 1.1 ))))
`(mode-line-buffer ((t (:foreground ,fg :weight bold))))
`(mode-line-inactive ((t (:background ,bg-light :foreground ,bg-light))))
`(mode-line-minor-mode ((t (:weight ultra-light))))
`(modeline ((t (:background ,bg :foreground ,fg :height 1.4))))
`(org-agenda-date ((t (:foreground ,fg :height 1.2))))
`(org-agenda-date-today ((t (:foreground ,fg :weight bold :height 1.4))))
`(org-agenda-date-weekend ((t (:foreground ,fg :weight normal))))
`(org-agenda-structure ((t (:foreground ,fg :weight bold))))
`(org-block ((t (:foreground ,fg))))
`(org-block-begin-line ((t (:foreground ,fg-light))))
`(org-block-end-line ((t (:foreground ,fg-light))))
`(org-date ((t (:foreground ,fg) :underline)))
`(org-done ((t (:foreground ,fg-light))))
`(org-hide ((t (:foreground ,bg))))
`(org-level-1 ((t (:foreground ,fg :weight semi-bold :height 1.3))))
`(org-level-2 ((t (:foreground ,fg :weight semi-bold :height 1.1))))
`(org-level-3 ((t (:foreground ,fg :weight semi-bold :height 1.1))))
`(org-level-4 ((t (:foreground ,fg :weight semi-bold :height 1.1))))
`(org-level-5 ((t (:foreground ,fg :weight semi-bold :height 1.1))))
`(org-level-6 ((t (:foreground ,fg :weight semi-bold :height 1.1))))
`(org-link ((t (:foreground ,fg :underline t))))
`(org-quote ((t (:foreground ,fg :slant italic :inherit org-block))))
`(org-scheduled ((t (:foreground ,fg))))
`(org-sexp-date ((t (:foreground ,fg))))
`(org-special-keyword ((t (:foreground ,fg))))
`(org-todo ((t (:foreground ,fg))))
`(org-verse ((t (:inherit org-block :slant italic))))
`(org-table ((t (:foreground, fg))))
`(region ((t (:background "#eeeee8" :foreground ,fg))))
`(slime-repl-inputed-output-face ((t (:foreground ,fg))))
`(whitespace-line ((t (:background ,bg-highlight-2 :foreground ,fg))))
;; magit
`(magit-header ((t (:weight bold))))
`(magit-item-mark ((t (:background ,bg-highlight))))
`(magit-item-highlight ((t (:weight bold))))
`(magit-section-heading ((t (:weight bold :height 1.2))))
`(magit-section-highlight ((t (:inherit nil :weight bold))))
`(magit-diff-context-highlight ((t (:weight bold))))
`(magit-branch-local ((t (:weight bold))))
`(magit-branch-remote ((t (:weight bold))))
;; errors and warnings
`(error ((t (:underline "#dadada"))))
`(warning ((t (:underline "#dadada"))))
;; compile
`(compilation-error ((t (:inherit error))))
;; flycheck
`(flycheck-error ((t (:inherit error))))
`(flycheck-warning ((t (:inherit warning))))
`(flycheck-info ((t (:inherit warning))))
;; flyspell
`(flyspell-duplicate ((t (:inherit error))))
`(flyspell-incorrect ((t (:inherit error))))
;; dired
`(dired-directory ((t (:weight bold))))
;; helm
`(helm-source-header ((t (:foreground ,fg :background "grey90" :weight bold))))
`(helm-header ((t (:foreground ,fg))))
`(helm-selection-line ((t (:inherit region :weight bold))))
`(helm-selection ((t (:background ,bg-highlight))))
`(helm-ff-directory ((t (:foreground ,fg :weight bold))))
`(helm-ff-dotted-directory ((t (:foreground ,fg :weight bold))))
`(helm-ff-symlink ((t (:foreground ,fg :slant italic))))
`(helm-ff-executable ((t (:foreground ,fg))))
`(helm-buffer-directory ((t (:foreground, fg))))
`(helm-buffer-process ((t (:foreground, fg))))
`(helm-M-x-key ((t (:foreground, fg :weight bold))))
`(helm-grep-match ((t (:foreground, fg :weight bold))))
`(helm-match ((t (:foreground, fg :weight bold))))
`(helm-candidate-number ((t (:foreground, fg :weight bold))))
`(helm-header-line-left-margin ((t (:foreground, fg :weight bold))))
;; iedit
`(iedit-occurrence ((t (:background ,bg-highlight-3 :foreground ,fg))))
;; company
`(company-echo-common ((t (:foreground ,fg))))
`(company-tooltip-selection ((t (:background ,bg-highlight))))
;; parens - parenface
'(parenface-paren-face ((t (:foreground "gray70"))))
'(parenface-curly-face ((t (:foreground "gray70"))))
'(parenface-bracket-face ((t (:foreground "gray70"))))
;; parens - paren-face
'(parenthesis ((t (:foreground "gray70"))))
;; parens - other
`(sp-show-pair-match-face ((t (:foreground "black" :weight bold))))
`(sp-show-pair-mismatch-face ((t (:background "red" :foreground "black" :weight bold))))
`(show-paren-match ((t (:foreground "black" :weight bold))))
`(show-paren-mismatch ((t (:background "red" :foreground "black" :weight bold))))
;; js2
`(js2-function-param ((t (:foreground ,fg))))
`(js2-error ((t (:inherit error))))
`(js2-external-variable ((t (:foreground ,fg))))
;; perl
`(cperl-hash-face ((t (:foreground ,fg))))
`(cperl-array-face ((t (:foreground ,fg))))
`(cperl-nonoverridable-face ((t (:foreground ,fg))))
;; rpm-spec-mode
`(rpm-spec-tag-face ((t (:inherit default))))
`(rpm-spec-package-face ((t (:inherit default))))
`(rpm-spec-macro-face ((t (:inherit default))))
`(rpm-spec-doc-face ((t (:inherit default))))
`(rpm-spec-var-face ((t (:inherit default))))
`(rpm-spec-ghost-face ((t (:inherit default))))
`(rpm-spec-section-face ((t (:inherit default :weight bold))))
;; elixir
`(elixir-operator-face ((t (:foreground, fg :weight bold))))
`(elixir-negation-face ((t (:foreground, fg :weight bold))))
`(elixir-attribute-face ((t (:foreground, fg, :background, bg :slant italic ))))
`(elixir-atom-face ((t (:foreground, fg, :background, bg :weight bold ))))
`(elixir-ignored-var-face ((t (:foreground, fg, :background, bg ))))
;; highlight-symbol
`(highlight-symbol-face ((t (:background ,bg-highlight))))
`(evil-search-highlight-persist-highlight-face ((t (:background ,bg-highlight))))
;; highlight-symbol
`(highlight ((t (:background ,bg-highlight))))
`(highlight-symbol-face ((t (:background ,bg-highlight))))
`(evil-search-highlight-persist-highlight-face ((t (:background ,bg-highlight))))
`(global-evil-search-highlight-persist ((t (:background ,bg-highlight))))
`(evil-ex-search ((t (:background ,bg-highlight))))
`(evil-ex-lazy-highlight ((t (:background ,bg-highlight))))
`(evil-ex-substitute-matches ((t (:background ,bg-highlight))))
;; avy
`(avy-lead-face ((t (:foreground ,fg :background ,bg-highlight-2))))
`(avy-lead-face-0 ((t (:inherit avy-lead-face, :background ,bg-highlight))))
`(avy-lead-face-1 ((t (:inherit avy-lead-face))))
`(avy-lead-face-2 ((t (:inherit avy-lead-face))))
`(avy-background-face ((t (:foreground , bg-highlight))))
;; linum
`(linum ((t (:foreground ,bg-highlight))))
`(linum-relative-current-face ((t (:foreground ,fg-light))))
;; eshell
`(eshell-ls-directory-face ((t (:foreground ,fg :weight bold))))
`(eshell-ls-archive-face ((t (:foreground ,fg))))
`(eshell-ls-backup-face ((t (:foreground ,fg))))
`(eshell-ls-clutter-face ((t (:foreground ,fg))))
`(eshell-ls-directory-face ((t (:foreground ,fg))))
`(eshell-ls-executable-face ((t (:foreground ,fg))))
`(eshell-ls-missing-face ((t (:foreground ,fg))))
`(eshell-ls-picture-face ((t (:foreground ,fg))))
`(eshell-ls-product-face ((t (:foreground ,fg))))
`(eshell-ls-readonly-face ((t (:foreground ,fg))))
`(eshell-ls-special-face ((t (:foreground ,fg))))
`(eshell-ls-symlink-face ((t (:foreground ,fg))))
`(eshell-ls-text-face ((t (:foreground ,fg))))
`(eshell-ls-todo-face ((t (:foreground ,fg))))
`(eshell-ls-unreadable-face ((t (:foreground ,fg))))
`(eshell-prompt-face ((t (:foreground ,fg))))
;; feebleline
`(feebleline-time-face ((t (:foreground ,fg-light))))
`(feebleline-linum-face ((t (:foreground ,fg-light))))
`(feebleline-bufname-face ((t (:foreground ,fg-light))))
`(feebleline-previous-buffer-face ((t (:foreground ,fg-light))))
`(feebleline-asterisk-face ((t (:foreground ,fg-light))))
;; shell-script mode
`(sh-quoted-exec ((t (:background ,bg :foreground ,fg))))
;; misc
`(hl-line ((t (:background "#fcfaf0" ))))
`(shadow ((t (:foreground "grey75"))))
`(idle-highlight ((t (:background ,bg-highlight))))
`(yas-field-highlight-face ((t (:background ,bg-highlight-2 :foreground ,fg))))
`(eshell-prompt ((t (:foreground ,fg :weight bold))))
`(bm-face ((t (:background ,bg-highlight-2 ))))
`(org-headline-done ((t (:foreground , "#e2e1d8" :slant italic))))
`(cider-result-overlay-face ((t (:weight bold))))))
;;;###autoload
(when load-file-name
(add-to-list
'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
(provide-theme 'monotropic)
;;; monotropic-theme.el ends here