forked from mkhl/color-theme-espresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
espresso-theme.el
139 lines (119 loc) · 5.68 KB
/
espresso-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
;;; espresso-theme.el --- Espresso Tutti Colori port for Emacs
;; Author: Martin Kühl <purl.org/net/mkhl>
;; URL: https://github.com/dgutov/espresso-theme
;; Version: 1.0
;;; Commentary:
;;
;; Espresso Tutti Colori is the default theme for Espresso, by MacRabbit.
;; Source: <http://macrabbit.com/espresso>
;;; TODO: More faces? `list-faces-display'.
(deftheme espresso
"Espresso Tutti Colori.
Port of the default theme for Espresso on Mac OS X.")
(let ((selection-color (if (featurep 'ns) "ns_selection_color" "#C9D0D9"))
(highlight-color "#EEE00A")
(secondary-color "#FBE9AD")
(active-color "#EEEEEE")
(passive-color "#AAAAAA")
(subtle-color "#EEEEEE")
(error-color "#F93232")
(border-color "#a5a5a5"))
(custom-theme-set-faces
'espresso
;; Basics
'(default ((t (:backround "grey99"))))
'(blue ((t (:foreground "blue"))))
'(bold ((t (:bold t))))
'(bold-italic ((t (:italic t :bold t))))
'(border-glyph ((t (nil))))
'(green ((t (:foreground "green"))))
'(info-node ((t (:italic t :bold t))))
'(info-xref ((t (:bold t))))
'(italic ((t (:italic t))))
'(left-margin ((t (nil))))
'(pointer ((t (nil))))
'(red ((t (:foreground "red"))))
'(right-margin ((t (nil))))
'(underline ((t (:underline t))))
'(yellow ((t (:foreground "yellow"))))
;; Frame
'(fringe ((t (:background "#f7f7f7"))))
`(mode-line ((t (:background "#e8e8e8" :foreground "black"
:box (:line-width -1 :color ,border-color)))))
'(mode-line-highlight ((t (:box (:line-width 2 :color "#9599B0")))))
`(mode-line-inactive
((t (:inherit mode-line :background "#f5f5f5" :foreground "grey20"
:box (:line-width -1 :color ,border-color) :weight light))))
;; Parens
`(show-paren-match ((t (:background ,passive-color))))
`(show-paren-mismatch ((t (:foreground "#F9F2CE" :background ,error-color))))
;; Highlighting
`(hl-line ((t (:background ,active-color))))
`(highline-face ((t (:background ,active-color))))
`(highlight ((t (:background ,highlight-color))))
`(highlight-symbol-face ((t (:background ,secondary-color))))
`(isearch ((t (:background ,highlight-color))))
`(lazy-highlight ((t (:background ,secondary-color))))
`(primary-selection ((t (:background ,selection-color))))
`(region ((t (:background ,selection-color))))
`(secondary-selection ((t (:background ,secondary-color))))
`(shadow ((t (:foreground "grey50" :background ,subtle-color))))
`(text-cursor ((t (:background "black" :foreground ,passive-color))))
`(zmacs-region ((t (:background ,selection-color))))
;; More
'(mumamo-background-chunk-submode ((t (:background "#EAEBE6"))))
;; Font-lock
'(font-lock-builtin-face ((t (:foreground "#626FC9"))))
'(font-lock-comment-face ((t (:foreground "#7F7F7F"))))
'(font-lock-constant-face ((t (:foreground "#7653C1" :background "#F3F2FF"))))
'(font-lock-doc-string-face ((t (:foreground "#1A93AE" :background "#F4F9FE"))))
'(font-lock-function-name-face ((t (:foreground "#4E279A"))))
'(font-lock-keyword-face ((t (:foreground "#6700B9"))))
'(font-lock-preprocessor-face ((t (:foreground "#434343"))))
'(font-lock-reference-face ((t (:foreground "#4E279A" :background "#F3F2FF"))))
'(font-lock-string-face ((t (:foreground "#BC670F" :background "#FDFBF5"))))
'(font-lock-type-face ((t (:foreground "#699D36"))))
'(font-lock-variable-name-face ((t (:foreground "#7B8C4D"))))
'(font-lock-warning-face ((t (:foreground "#F93232"))))
;; Diff Mode
'(diff-file-header ((t (:bold t :inherit diff-header))))
'(diff-header ((t (:background "#DDDDFF" :foreground "grey20"))))
'(diff-added ((t (:background "#DDFFDD"))))
'(diff-removed ((t (:background "#FFDDDD"))))
'(diff-changed ((t (:background "#FFFFDD"))))
'(diff-refine-change ((t (:background "#DDDDFF"))))
;; Magit
'(magit-diff-file-header ((t (:bold t :inherit diff-header))))
'(magit-diff-hunk-header ((t (:inherit diff-header))))
'(magit-diff-add ((t (:inherit diff-added :foreground "grey20"))))
'(magit-diff-del ((t (:inherit diff-removed :foreground "grey20"))))
'(magit-diff-none ((t (:inherit diff-context :foreground "grey20"))))
'(magit-item-highlight ((t (:background nil :foreground "black"))))
;; Company
;; See more:
;; https://www.emacswiki.org/emacs/CompanyMode
`(company-tooltip ((t (:inherit (company-tooltip-search-selection) :background "#EEEEEE"))))
`(company-tooltip-common ((t :foreground "#BC670F" :background "#FDFBF5" :underline t)))
`(company-tooltip-selection ((t :foreground "#4E279A" :background "grey99")))
`(company-template-field ((t :inherit company-tooltip :foreground "#C2A1FF")))
`(company-tooltip-common-selection ((t :foreground "#7653C1" :background "#F3F2FF" :underline t)))
`(company-scrollbar-fg ((t :background "#4E279A")))
`(company-scrollbar-bg ((t :background "#E8E8E8")))
`(company-tooltip-annotation ((t :inherit company-tooltip :foreground "#4E279A")))
;; Helm
;; See more:
;; https://stackoverflow.com/a/41616720
`(helm-source-header ((t :background "#F3F2FF" :foreground "#4E279A" :height 1.25)))
`(helm-ff-directory ((t (:foreground "#BC670F" :background "#FDFBF5"))))
`(helm-ff-dotted-directory ((t (:foreground "grey50" :background ,subtle-color))))
`(helm-selection ((t (:background ,active-color))))
`(helm-ff-file-extension ((t (:background "#F4FCE3" :foreground "#83AD36"))))
`(helm-ff-prefix ((t :foreground "#BC670F" :background "#FDFBF5" :underline t)))
;; Done
))
;;;###autoload
(when load-file-name
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
(provide-theme 'espresso)
;;; espresso-theme.el ends here