-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgentle-theme.el
136 lines (122 loc) · 7.17 KB
/
gentle-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
;;; gentle-theme.el --- A gentle, quiet, and reserved high-contrast color theme
;; Copyright (C) 2018 Ista Zahn
;; Author: Ista Zahn
;; 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, either version 3 of the License, or
;; (at your option) any later version.
;; This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; A gentle and simple color theme. Nothing fancy, just tones things down
;; so font-lock doesn't distract you.
;; Inspired by:
;; URL: http://github.com/maio/eink-emacs
;;; Code:
(setq markdown-header-scaling t)
(setq markdown-header-scaling-values '(1.2 1.1 1.05 1.0 1.0 1.0))
(deftheme gentle
"Subtle, mostly monochrome, and always gentle.")
(let ((darker "black")
(dark "gray10")
(darkish "gray20")
(gray "gray40")
(grayish "gray75")
(lightish "gray94")
(light "gray98")
(lighter "gray99")
(blueish "#000054")
(greenish "#00320a")
(purpleish "#2b003e"))
(custom-theme-set-faces
'gentle
`(default ((t (:background ,light :foreground ,darker))))
`(cursor ((t (:background "black" :foreground "black" :weight bold))))
`(region ((t (:background ,grayish))))
`(shadow ((t (:foreground ,gray :weight bold))))
`(fringe ((t (:foreground ,gray :background ,lightish))))
`(header-line ((t :background ,gray :foreground ,lighter)))
`(linum ((t (:inherit shadow :background ,lightish))))
`(mode-line ((t (:foreground ,lightish :background ,darkish
:box (:line-width -1 :color ,darkish)))))
`(mode-line-inactive ((t (:inherit mode-line :background ,lightish :foreground ,gray :weight light))))
`(isearch ((t (:foreground "white" :background ,gray :weight bold))))
`(lazy-highlight ((t (:foreground "white" :background ,gray) :weight normal)))
`(message-separator ((t (:foreground ,greenish))))
`(message-header-name ((t (:foreground ,purpleish))))
`(diredfl-compressed-file-name ((t (:foreground ,darkish))))
`(diredfl-compressed-file-suffix ((t (:foreground ,dark))))
`(diredfl-date-time ((t (:foreground ,darkish))))
`(diredfl-deletion ((t (:inherit warning))))
`(diredfl-dir-heading ((t (:background ,light :foreground ,darker))))
`(diredfl-dir-name ((t (:background ,light :foreground ,purpleish :weight bold))))
`(diredfl-symlink ((t (:background ,light :foreground ,greenish))))
`(diredfl-exec-priv ((t (:background ,lighter :foreground ,gray))))
`(diredfl-executable-tag ((t (:foreground ,darker))))
`(diredfl-file-name ((t (:foreground ,dark :weight bold))))
`(diredfl-file-suffix ((t (:foreground ,dark))))
`(diredfl-flag-mark ((t (:background ,lighter :foreground ,darkish))))
`(diredfl-link-priv ((t (:foreground ,darkish))))
`(diredfl-no-priv ((t (:background ,light :foreground ,gray))))
`(diredfl-number ((t (:foreground ,darkish))))
`(diredfl-other-priv ((t (:background ,light :foreground ,dark))))
`(diredfl-rare-priv ((t (:background ,light :foreground ,darkish))))
`(diredfl-read-priv ((t (:background ,light :foreground ,gray))))
`(diredfl-write-priv ((t (:background ,light :foreground ,gray))))
`(diredfl-ignored-file-name ((t (:background ,light :foreground ,gray))))
`(diredfl-dir-priv ((t (:background ,light :foreground ,gray))))
`(font-lock-type-face ((t (:foreground "gray10"))))
`(font-lock-keyword-face ((t (:foreground ,purpleish :background nil :weight normal))))
`(font-lock-constant-face ((t (:background nil :foreground ,darkish))))
`(trailing-whitespace ((t (:background "gray"))))
`(font-lock-comment-face ((t (:foreground ,gray :weight extra-bold :background nil))))
`(font-lock-doc-face ((t (:foreground ,darkish :background nil :weight extra-bold))))
`(font-lock-string-face ((t (:slant italic :background nil :foreground ,dark))))
`(font-lock-comment-delimiter-face ((t (:background nil))))
`(font-lock-type-face ((t (:background nil))))
`(font-lock-builtin-face ((t (:foreground ,greenish :background nil))))
`(font-lock-variable-name-face ((t (:background nil :foreground ,darker))))
`(font-lock-function-name-face ((t (:foreground ,blueish :background nil))))
`(font-lock-warning-face ((t (:inherit warning :background nil))))
`(term ((t (:background ,light :foreground ,darker :distant-foreground ,lightish))))
`(term-color-white ((t (:foreground ,darker :background ,lighter :weight bold))))
`(term-color-black ((t (:foreground ,darker :background ,light))))
`(term-default-fg-color ((t (:inherit term-color-white))))
`(term-default-bg-color ((t (:inherit term-color-black))))
`(company-tooltip ((t (:background ,lightish :foreground ,darker))))
`(company-scrollbar-fg ((t (:background ,darker))))
`(company-scrollbar-bg ((t (:background ,grayish))))
`(company-tooltip-selection ((t ( :foreground ,lightish :background ,gray :weight bold))))
`(company-echo-common ((t ( :foreground ,darkish :background ,lightish))))
`(company-tooltip-common ((t ( :foreground ,darker :background nil :weight bold))))
`(minibuffer-prompt ((t ( :foreground ,darker :background ,lighter))))
`(ivy-current-match ((t ( :foreground ,lightish :background ,gray :weight bold))))
`(ivy-minibuffer-match-face-1 ((t ( :foreground ,darkish :background ,lightish))))
`(ivy-minibuffer-match-face-2 ((t ( :foreground ,darkish :background ,lightish :weight bold))))
`(ivy-minibuffer-match-face-3 ((t ( :foreground ,darkish :background ,lightish))))
`(ivy-minibuffer-match-face-4 ((t ( :foreground ,dark :background ,light :weight bold))))
`(font-latex-bold-face ((t (:inherit bold))))
`(font-latex-warning-face ((t (:foreground nil :inherit font-lock-warning-face))))
`(font-latex-italic-face ((t (:foreground ,dark :slant italic))))
`(highlight ((t (:background ,lightish))))
`(show-paren-match ((t (:background ,grayish :weight bold))))
`(markdown-header-face ((t (:foreground ,darker, :weight bold))))
`(outline-1 ((t (:inherit markdown-header-face-1))))
`(outline-2 ((t (:inherit markdown-header-face-2))))
`(outline-3 ((t (:inherit markdown-header-face-3))))
`(outline-4 ((t (:inherit markdown-header-face-4))))
`(font-latex-sectioning-5-face ((t (:inherit markdown-header-face))))
`(font-latex-italic-face ((t (:foreground "black" :slant italic))))
`(font-latex-string-face ((t (:inherit font-lock-string-face))))
`(font-latex-sedate-face ((t (:inherit font-lock-keyword-face :weight medium))))
`(org-block-begin-line ((t (:foreground ,gray))))
`(org-block-end-line ((t (:foreground ,gray))))
`(org-table ((t (:foreground ,blueish))))
`(mu4e-header-highlight-face ((t (:inherit highlight))))
`(mu4e-region-code ((t (:background ,grayish :foreground ,lightish))))
`(mu4e-header-title-face ((t (:inherit nil :foreground ,dark :background ,light :weight bold))))))
(provide-theme 'gentle)