-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtango-theme.el
233 lines (224 loc) · 11.5 KB
/
tango-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
;; Note there are two themes in here.
;;
;; color-theme-tango -
;; Color theme based on Tango Palette. Created by [email protected]
;; http://www.emacswiki.org/cgi-bin/emacs/color-theme-tango.el
;; Removed italics
;;
;; color-theme-tango-light -
;; Original theme by matt harrison, for those who prefer a light
;; background
;;
;; Installation
;; Copy this file into your .emacs
;; size note: hardcode height ":height 100" is 100% note that doesn't respond to
;; ctl - +
;; Float numbers are relative sizes
(defvar butter1 "#fce94f") (defvar butter2 "#edd400") (defvar butter3 "#c4a000")
(defvar orange1 "#fcaf3e" ) (defvar orange2 "#f57900") (defvar orange3 "#ce5c00")
(defvar choc1 "#e9b96e") (defvar choc2 "#c17d11") (defvar choc3 "#8f5902")
(defvar cham1 "#8ae234") (defvar cham2 "#73d216") (defvar cham3 "#4e9a06")
(defvar blue1 "#729fcf") (defvar blue2 "#3465a4") (defvar blue3 "#204a87")
(defvar plum1 "#ad7fa8") (defvar plum2 "#75507b") (defvar plum3 "#5c3566")
(defvar red1 "#ef2929") (defvar red2 "#cc0000") (defvar red3 "#a40000")
(defvar alum1 "#eeeeec") (defvar alum2 "#d3d7cf") (defvar alum3 "#babdb6")
(defvar alum4 "#888a85") (defvar alum5 "#555753")
(defvar alum6 "#2e3436")
;; since '(color-theme-tango is quoted below we need to unquote the
;; colors so the actual values get put in. To be able to unquote
;; (with ,) change the ' to a `
;; ie `(color-theme-tango
;; list-faces-display will show all font faces
(defun color-theme-tango ()
"A color theme based on Tango Palette."
(interactive)
(color-theme-install
`(color-theme-tango
((background-color . ,alum6)
(background-mode . dark)
(border-color . ,alum4)
(cursor-color . ,cham1)
(foreground-color . ,alum1)
(mouse-color . ,choc1))
((help-highlight-face . underline)
(ibuffer-dired-buffer-face . font-lock-function-name-face)
(ibuffer-help-buffer-face . font-lock-comment-face)
(ibuffer-hidden-buffer-face . font-lock-warning-face)
(ibuffer-occur-match-face . font-lock-warning-face)
(ibuffer-read-only-buffer-face . font-lock-type-face)
(ibuffer-special-buffer-face . font-lock-keyword-face)
(ibuffer-title-face . font-lock-type-face))
(border ((t (:background ,alum4)))) ;; not usually visible unless
;; (scroll-bar-mode -1)
(fringe ((t (:background ,alum5))))
(mode-line ((t (:foreground ,alum1 :background ,alum5))))
(mode-line-buffer-id ((t (:bold t))))
(mode-line-inactive ((t (:foreground ,alum1 :background ,alum4))))
(region ((t (:background ,alum5))))
(font-lock-builtin-face ((t (:foreground ,blue1))))
(font-lock-comment-face ((t (:foreground ,alum4))))
(font-lock-constant-face ((t (:foreground ,cham1))))
(font-lock-doc-face ((t (:foreground ,alum4))))
(font-lock-keyword-face ((t (:foreground ,blue1 :bold t))))
;; remove italic from strings
(font-lock-string-face ((t (:foreground ,plum1))))
(font-lock-type-face ((t (:foreground ,cham1 :bold t))))
(font-lock-variable-name-face ((t (:foreground ,alum1))))
(js2-external-variable-face ((t (:foreground ,alum1))))
(font-lock-warning-face ((t (:bold t :foreground ,orange2))))
(font-lock-function-name-face ((t (:foreground ,butter2 :bold t :italic t))))
(comint-highlight-input ((t (:italic t :bold t))))
(comint-highlight-prompt ((t (:foreground ,choc1))))
(lazy-highlight ((t (:background ,cham1))))
(isearch ((t (:background ,orange2 :foreground ,alum6))))
(isearch-lazy-highlight-face ((t (:foreground ,alum6 :background ,choc1))))
;; paren.el defines colors!!! (override background)
(show-paren-match-face ((t (:background ,butter2 :foreground ,blue2 :bold t))))
(show-paren-mismatch-face ((t (:foreground ,plum1 :bold t))))
(minibuffer-prompt ((t (:foreground ,blue1 :bold t))))
(info-xref ((t (:foreground ,blue1))))
(info-xref-visited ((t (:foreground ,plum1))))
;; ECB - matt added
;; see - http://ecb.sourceforge.net/docs/ecb-faces.html
(ecb-default-highlight-face((t (:background ,plum2))))
;; need to figure out mouseover font, these don't work'
;;(ecb-directory-face((t (:background ,plum2))))
;;(ecb-source-face((t (:background "#204a87"))))
;;(ecb-method-face((t (:background "#204a87"))))
;;(ecb-tag-header-face((t (:background "#204a87"))))
(ecb-tag-header-face((t (:background ,cham3))))
(mumamo-background-chunk-submode ((t (:background ,alum5))))
(bold ((t (:bold t))))
(highlight ((t (:foreground ,alum1 :bold t))))
(hl-line ((t (:background ,plum3 :bold t))))
(match ((t (:foreground ,cham2 :bold t))))
(link ((t (:foreground ,cham1))))
;;(link-visited ((t (:foreground ,plum2))))
(whitespace-empty ((t (:foreground ,red3 :background ,butter2))))
(whitespace-line ((t (:background ,alum5))))
(vertical-border ((t (:foreground ,plum2 :background ,plum2))))
(org-done ((t (:foreground ,cham1 :bold t))))
(org-todo ((t (:foreground ,red1 :bold t))))
(org-date ((t (:foreground ,plum1))))
(org-level-1 ((t (:foreground ,blue3 :bold t))))
(org-level-2 ((t (:foreground ,blue1 :bold t))))
(org-level-3 ((t (:foreground ,alum5 :bold t))))
(org-level-4 ((t (:foreground ,alum4 :bold t))))
(org-level-5 ((t (:foreground ,blue3))))
(org-level-6 ((t (:foreground ,blue1))))
(org-level-7 ((t (:foreground ,alum5))))
(org-level-8 ((t (:foreground ,alum4))))
;; rst sets background color!!! (override background)
(rst-level-1-face ((t (:background ,alum6 :foreground ,blue3 :bold t))))
(rst-level-2-face ((t (:background ,alum6 :foreground ,blue1 :bold t))))
(rst-level-3-face ((t (:background ,alum6 :foreground ,alum5 :bold t))))
(rst-level-4-face ((t (:background ,alum6 :foreground ,alum4 :bold t))))
(rst-level-5-face ((t (:background ,alum6 :foreground ,blue3))))
(rst-level-6-face ((t (:background ,alum6 :foreground ,blue1))))
(flymake-errline ((t (:background ,red3))))
(flymake-warnline ((t (:background ,plum3))))
(flyspell-duplicate ((t (:foreground ,butter1 :underline t))))
(flyspell-incorrect ((t (:foreground ,orange3 :underline t))))
(anything-dir-priv ((t (:foreground ,plum1 :background ,alum6))))
(anything-dir-heading ((t (:foreground ,cham2 :background ,alum6))))
(anything-file-name ((t (:foreground ,blue1))))
(anything-header ((t (:foreground ,red1 :background ,alum6 :bold t))))
;; helm
(helm-M-x-key ((t (:foreground ,butter1))))
(helm-source-header ((t (:background ,alum5 :foreground ,alum1 :bold))))
(helm-selection ((t (:background ,plum2 :bold t))))
(helm-buffer-directory ((t ( :foreground ,butter2))))
(helm-ff-directory ((t ( :foreground ,butter2))))
(helm-ff-symlink ((t ( :foreground ,blue1))))
(helm-ff-file ((t ( :foreground ,alum1))))
;; ace-jump
(ace-jump-face-background ((t ( :foreground ,alum5))))
(ace-jump-face-foreground ((t ( :foreground ,cham1))))
;; ein
(ein:cell-heading-1 ((t (:background ,alum6 :foreground ,alum1 :height 1.5))))
(ein:cell-heading-2 ((t (:background ,alum6 :foreground ,alum1 :height 1.4))))
(ein:cell-heading-3 ((t (:background ,alum6 :foreground ,alum1 :height 1.3))))
(ein:cell-heading-4 ((t (:background ,alum6 :foreground ,alum1 :height 1.2))))
(ein:cell-heading-5 ((t (:background ,alum6 :foreground ,alum1 :height 1.1))))
(ein:cell-heading-6 ((t (:background ,alum6 :foreground ,alum1 :height 1.))))
(ein:cell-input-area ((t (:background ,alum5 :foreground ,alum1))))
(ein:cell-input-prompt ((t (:foreground ,orange3))))
(ein:cell-output-prompt ((t (:foreground ,plum1))))
(ein:pos-tip-face ((t (:foreground ,alum6 :background ,alum1))))
)))
(defun color-theme-tango-light ()
"A color theme based on Tango Palette."
(interactive)
(color-theme-install
`(color-theme-tango-light
((background-color . ,alum1)
(background-mode . dark)
(border-color . ,alum4)
(cursor-color . ,cham3)
(foreground-color . ,alum6)
(mouse-color . ,choc1))
((help-highlight-face . underline)
(ibuffer-dired-buffer-face . font-lock-function-name-face)
(ibuffer-help-buffer-face . font-lock-comment-face)
(ibuffer-hidden-buffer-face . font-lock-warning-face)
(ibuffer-occur-match-face . font-lock-warning-face)
(ibuffer-read-only-buffer-face . font-lock-type-face)
(ibuffer-special-buffer-face . font-lock-keyword-face)
(ibuffer-title-face . font-lock-type-face))
(border ((t (:background ,alum4))))
(fringe ((t (:background ,alum2))))
;; active buffer
(mode-line ((t (:foreground ,alum6 :background ,alum3))))
(mode-line-buffer-id ((t (:bold t))))
(mode-line-inactive ((t (:foreground ,alum6 :background ,alum2))))
(region ((t (:background ,alum2))))
(font-lock-builtin-face ((t (:foreground ,blue3))))
(font-lock-comment-face ((t (:foreground ,alum4))))
(font-lock-constant-face ((t (:foreground ,cham3))))
(font-lock-doc-face ((t (:foreground ,alum4))))
(font-lock-keyword-face ((t (:foreground ,blue3 :bold t))))
;; remove italic from strings
(font-lock-string-face ((t (:foreground ,red3))))
(font-lock-type-face ((t (:foreground ,cham3 :bold t))))
(font-lock-variable-name-face ((t (:foreground ,alum6))))
(js2-external-variable-face ((t (:foreground ,alum6))))
(font-lock-warning-face ((t (:bold t :foreground ,orange2))))
(font-lock-function-name-face ((t (:foreground ,plum3 :bold t :italic t))))
(comint-highlight-input ((t (:italic t :bold t))))
(comint-highlight-prompt ((t (:foreground ,choc1))))
(isearch ((t (:background ,orange3 :foreground ,alum6))))
(isearch-lazy-highlight-face ((t (:foreground ,alum6 :background ,alum1))))
;; paren.el defines colors
(show-paren-match-face ((t (:background ,alum2 :foreground ,cham2 :bold t))))
(show-paren-mismatch-face ((t (:foreground ,plum3 :bold t))))
(minibuffer-prompt ((t (:foreground ,blue3 :bold t))))
(info-xref ((t (:foreground ,blue3))))
(info-xref-visited ((t (:foreground ,plum3))))
;; ECB - matt added
;; see - http://ecb.sourceforge.net/docs/ecb-faces.html
(ecb-default-highlight-face((t (:background ,plum2))))
;; need to figure out mouseover font, these don't work'
;;(ecb-directory-face((t (:background ,plum2))))
;;(ecb-source-face((t (:background "#204a87"))))
;;(ecb-method-face((t (:background "#204a87"))))
;;(ecb-tag-header-face((t (:background "#204a87"))))
(ecb-tag-header-face((t (:background ,cham3))))
(mumamo-background-chunk-submode ((t (:background ,alum2))))
(highlight ((t (:background ,alum2))))
(hl-line ((t (:background ,blue1))))
(link ((t (:foreground ,cham3))))
;; (link-visited ((t (:foreground ,plum2))))
(whitespace-empty ((t (:foreground ,red3 :background ,butter2))))
(whitespace-line ((t (:background ,alum2))))
;; rst sets background color!!! (override background)
(rst-level-1 ((t (:background ,alum1 :foreground ,blue3 :bold t))))
(rst-level-2 ((t (:background ,alum1 :foreground ,blue1 :bold t))))
(rst-level-3 ((t (:background ,alum1 :foreground ,alum5 :bold t))))
(rst-level-4 ((t (:background ,alum1 :foreground ,alum4 :bold t))))
(rst-level-5 ((t (:background ,alum1 :foreground ,blue3))))
(rst-level-6 ((t (:background ,alum1 :foreground ,blue1))))
)))
;; color theme (requires http://www.emacswiki.org/cgi-bin/wiki?ColorTheme )
(require 'color-theme)
(provide 'tango-theme)
;; (provide 'color-theme-tango-light)