-
Notifications
You must be signed in to change notification settings - Fork 12
/
minimal-light-theme.el
183 lines (156 loc) · 7.88 KB
/
minimal-light-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
;;; minimal-light-theme.el --- A light/dark minimalistic Emacs 24 theme.
;; Copyright (C) 2014 Anler Hp
;; Author: Anler Hp <anler86 [at] gmail.com>
;; Keywords: color, theme, minimal
;; X-URL: http://github.com/ikame/minimal-theme
;; URL: http://github.com/ikame/minimal-theme
;; 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 minimalistic color theme to avoid distraction with
;; colors. Based on monochrome theme.
;;; Code:
(deftheme minimal-light "minimal light theme.")
(let* ((class '((class color) (min-colors 89)))
(foreground "grey20")
(background "white")
(cursor "black")
(border "grey90")
(minibuffer cursor)
(region "grey90")
(comment-delimiter "grey85")
(comment "grey50")
(constant foreground)
(string "grey40")
(modeline-foreground foreground)
(modeline-background "grey95")
(modeline-foreground-inactive comment)
(modeline-background-inactive background)
(hl-background region)
(hl-face-background nil)
(failure "red")
(org-background "grey98")
)
(setq fci-rule-color comment)
(custom-theme-set-faces
'minimal-light
;; basic stuff
`(default ((,class (:background ,background :foreground ,foreground))))
`(cursor ((,class (:background ,cursor :inverse-video t))))
`(vertical-border ((,class (:foreground ,border))))
;; minibuffer
`(minibuffer-prompt ((,class (:foreground ,minibuffer :weight bold))))
;; region
`(region ((,class (:background ,region))))
`(secondary-selection ((,class (:background ,region))))
;; faces
`(font-lock-builtin-face ((,class (:foreground ,foreground :weight bold))))
`(font-lock-constant-face ((,class (:foreground ,foreground :weight bold))))
`(font-lock-keyword-face ((,class (:foreground ,foreground :weight bold))))
`(font-lock-type-face ((,class (:foreground ,foreground :slant italic))))
`(font-lock-function-name-face ((,class (:foreground ,foreground :weight bold))))
`(font-lock-variable-name-face ((,class (:foreground ,foreground))))
`(font-lock-comment-delimiter-face ((,class (:foreground ,comment-delimiter))))
`(font-lock-comment-face ((,class (:foreground ,comment))))
`(font-lock-doc-face ((,class (:inherit (font-lock-comment-face)))))
`(font-lock-string-face ((,class (:foreground ,foreground :foreground ,string))))
;; faces used by isearch
`(isearch ((,class (:foreground ,foreground :background ,region :weight normal))))
`(isearch-fail ((,class (:foreground ,failure :bold t))))
`(lazy-highlight
((,class (:foreground ,foreground :background ,region))))
;; ido-mode
`(ido-subdir ((,class (:foreground ,foreground :weight bold))))
`(ido-only-match ((,class (:foreground ,foreground :weight bold))))
;; show-paren
`(show-paren-match
((,class (:background ,region))))
`(show-paren-mismatch
((,class (:foreground ,failure :weight bold))))
;; modeline
`(mode-line
((,class (:inverse-video unspecified
:overline ,border
:underline nil
:foreground ,modeline-foreground
:background ,modeline-background
:box (:line-width 1 :color ,background :style unspecified)
))))
`(mode-line-buffer-id ((,class (:weight bold))))
`(mode-line-inactive
((,class (:inverse-video unspecified
:overline ,border
:underline nil
:foreground ,modeline-foreground-inactive
:background ,modeline-background-inactive
:box (:line-width 1 :color ,border :style unspecified)
))))
;; hl-line-mode
`(hl-line ((,class (:background ,hl-background))))
`(hl-line-face ((,class (:background ,hl-face-background))))
;; highlight-stages-mode
`(highlight-stages-negative-level-face ((,class (:foreground ,failure))))
`(highlight-stages-level-1-face ((,class (:background ,org-background))))
`(highlight-stages-level-2-face ((,class (:background ,region))))
`(highlight-stages-level-3-face ((,class (:background ,region))))
`(highlight-stages-higher-level-face ((,class (:background ,region))))
;; org-mode
`(org-level-1 ((,class (:foreground ,foreground :height 1.6))))
`(org-level-2 ((,class (:foreground ,foreground :height 1.5))))
`(org-level-3 ((,class (:foreground ,foreground :height 1.4))))
`(org-level-4 ((,class (:foreground ,foreground :height 1.3))))
`(org-level-5 ((,class (:foreground ,foreground :height 1.2))))
`(org-level-6 ((,class (:foreground ,foreground :height 1.1))))
`(org-level-7 ((,class (:foreground ,foreground))))
`(org-level-8 ((,class (:foreground ,foreground))))
;; outline
`(outline-1 ((,class (:inherit org-level-1))))
`(outline-2 ((,class (:inherit org-level-2))))
`(outline-3 ((,class (:inherit org-level-3))))
`(outline-4 ((,class (:inherit org-level-4))))
`(outline-5 ((,class (:inherit org-level-5))))
`(outline-6 ((,class (:inherit org-level-6))))
`(outline-7 ((,class (:inherit org-level-7))))
`(outline-8 ((,class (:inherit org-level-8))))
`(org-document-title ((,class (:foreground ,foreground))))
`(org-link ((,class (:background ,org-background :foreground ,foreground :underline t))))
`(org-tag ((,class (:background ,org-background :foreground ,foreground))))
`(org-warning ((,class (:background ,region :foreground ,foreground :weight bold))))
`(org-todo ((,class (:background ,region :foreground ,foreground :weight bold))))
`(org-done ((,class (:background ,region :foreground ,foreground :weight bold))))
`(org-table ((,class (:background ,org-background))))
`(org-code ((,class (:background ,org-background))))
`(org-date ((,class (:background ,org-background :underline t))))
`(org-block ((,class (:background ,org-background))))
`(org-block-background ((,class (:background ,org-background :foreground ,foreground))))
`(org-block-begin-line
((,class (:background ,org-background :foreground ,comment-delimiter :weight bold))))
`(org-block-end-line
((,class (:background ,org-background :foreground ,comment-delimiter :weight bold))))
;; js2-mode
`(js2-external-variable ((,class (:inherit base-faces :weight bold))))
`(js2-function-param ((,class (:inherit base-faces))))
`(js2-instance-member ((,class (:inherit base-faces))))
`(js2-jsdoc-html-tag-delimiter ((,class (:inherit base-faces))))
`(js2-jsdoc-html-tag-name ((,class (:inherit base-faces))))
`(js2-jsdoc-tag ((,class (:inherit base-faces))))
`(js2-jsdoc-type ((,class (:inherit base-faces :weight bold))))
`(js2-jsdoc-value ((,class (:inherit base-faces))))
`(js2-magic-paren ((,class (:underline t))))
`(js2-private-function-call ((,class (:inherit base-faces))))
`(js2-private-member ((,class (:inherit base-faces))))
))
;;;###autoload
(when (and (boundp 'custom-theme-load-path) load-file-name)
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
(provide-theme 'minimal-light)