-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsinolor-eva-theme.el
291 lines (235 loc) · 7.43 KB
/
sinolor-eva-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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
;;; sinolor-eva-theme.el --- God is in his heaven, all is right with the world -*- lexical-binding: t -*-
;;; Commentary:
;;
;; eva-purple #a877c8
;; eva-ya-purple #75409A
;; eva-light-purple #b0a7dc
;; eva-clear-purple #5e59a9
;; eva-deep-purple #592661
;; eva-dark-purple #070424
;;
;; eva-green #a3da58
;; eva-light-green #8fed9c
;; eva-deep-green #506c5c
;;
;; eva-yellow #f0cf48
;; eva-orange #f7ba2b
;;
;; eva-red #ec1f2e
;;
;; eva-black #040601
;;
;;; Code:
(eval-and-compile
(require 'sinolor-themes)
;;;###theme-autoload
(deftheme sinolor-eva
"God is in his heaven, all is right with the world."
:background-mode 'light
:kind 'color-scheme
:family 'sinolor)
(defconst sinolor-eva-palette
'(
;;; Basic values
(bg-main "#040601")
(fg-main "#a877c8")
(bg-dim "#532a5e")
(fg-dim "#857f8f")
(bg-alt "#2b2b2b")
(fg-alt "#20894d")
(bg-active "#4b4b4b")
(bg-inactive "#121212")
;;; Basic hues for foreground values
(red "#ec1f2e")
(red-warmer "#f47360")
(red-cooler "#ff5a7a")
(red-faint "#d56f72")
(green "#a3da58")
(green-warmer "#6aad0f")
(green-cooler "#00a692")
(green-faint "#61a06c")
(yellow "#f0cf48")
(yellow-warmer "#506c5c")
(yellow-cooler "#8fed9c")
(yellow-faint "#cf9f8f")
(blue "#3f95f6")
(blue-warmer "#6a9fff")
(blue-cooler "#029fff")
(blue-faint "#7a94df")
(magenta "#d369af")
(magenta-warmer "#e580ea")
(magenta-cooler "#af85ff")
(magenta-faint "#c58faf")
(cyan "#4fbaef")
(cyan-warmer "#6fafff")
(cyan-cooler "#1dbfcf")
(cyan-faint "#8aa0df")
;;; Basic hues for background values
(bg-red-intense "#cd2f30")
(bg-green-intense "#20a020")
(bg-yellow-intense "#8f5040")
(bg-blue-intense "#4648d0")
(bg-magenta-intense "#a050cf")
(bg-cyan-intense "#2270be")
(bg-red-subtle "#72002a")
(bg-green-subtle "#00422a")
(bg-yellow-subtle "#603000")
(bg-blue-subtle "#242679")
(bg-magenta-subtle "#5a105f")
(bg-cyan-subtle "#004065")
;;; Diffs
(bg-added "#00381f")
(bg-added-faint "#002910")
(bg-added-refine "#034f2f")
(fg-added "#a0e0a0")
(bg-changed "#363300")
(bg-changed-faint "#2a1f00")
(bg-changed-refine "#4a4a00")
(fg-changed "#efef80")
(bg-removed "#4f1119")
(bg-removed-faint "#380a0f")
(bg-removed-refine "#781a1f")
(fg-removed "#ffbfbf")
;;; Graphs
(bg-graph-red-0 "#b52c2c")
(bg-graph-red-1 "#702020")
(bg-graph-green-0 "#0fed00")
(bg-graph-green-1 "#007800")
(bg-graph-yellow-0 "#f1e00a")
(bg-graph-yellow-1 "#b08940")
(bg-graph-blue-0 "#2fafef")
(bg-graph-blue-1 "#1f2f8f")
(bg-graph-magenta-0 "#bf94fe")
(bg-graph-magenta-1 "#5f509f")
(bg-graph-cyan-0 "#47dfea")
(bg-graph-cyan-1 "#00808f")
;;; Special hues
(bg-completion "#0f2d4a")
(bg-hover "#004a5f")
(bg-hover-secondary "#551f5a")
(bg-hl-line "#002435")
(bg-paren "#20577a")
(bg-err "#360d09") ; check with err
(bg-warning "#332600") ; check with warning
(bg-info "#002c12") ; check with info
(border "#4f4f5f")
(cursor "#ff76ff")
(fg-intense "#ffffff")
(modeline-err "#ff80af")
(modeline-warning "#dfcf33")
(modeline-info "#2fc82f")
(underline-err "#df2f2f")
(underline-warning "#c0b000")
(underline-info "#22b022")
(bg-char-0 "#0050af")
(bg-char-1 "#7f1f7f")
(bg-char-2 "#625a00")
;;; Mappings
;;;; General mappings
(fringe unspecified)
(err red)
(warning yellow)
(info green)
(link cyan)
(link-alt magenta)
(name blue-warmer)
(keybind blue-cooler)
(identifier magenta-faint)
(prompt green-cooler)
(bg-region "#2a234a")
(fg-region unspecified)
(bg-mode-line "#070424")
(fg-mode-line fg)
;;;; Code mappings
(builtin magenta)
(comment eva-green)
(constant eva-ya-purple)
(fnname magenta-warmer)
(keyword magenta-cooler)
(preprocessor red-warmer)
(docstring cyan-faint)
(string green)
(type green-cooler)
(variable purple)
(rx-escape green-warmer) ; compare with `string'
(rx-construct red)
;;;; Accent mappings
(accent-0 blue)
(accent-1 magenta-warmer)
(accent-2 green-cooler)
(accent-3 red)
;;;; Date mappings
(date-common green-cooler)
(date-deadline red-warmer)
(date-event fg-alt)
(date-holiday magenta)
(date-now fg-main)
(date-range fg-alt)
(date-scheduled yellow)
(date-weekday cyan)
(date-weekend red-faint)
;;;; Prose mappings
(prose-code magenta-warmer)
(prose-done green)
(prose-macro green-cooler)
(prose-metadata fg-dim)
(prose-metadata-value fg-alt)
(prose-table fg-alt)
(prose-table-formula err)
(prose-tag yellow-faint)
(prose-todo red-warmer)
(prose-verbatim blue)
;;;; Mail mappings
(mail-cite-0 blue)
(mail-cite-1 magenta-warmer)
(mail-cite-2 green-cooler)
(mail-cite-3 yellow-cooler)
(mail-part magenta-faint)
(mail-recipient blue-warmer)
(mail-subject blue-cooler)
(mail-other cyan)
;;;; Space mappings
(bg-space unspecified)
(fg-space border)
(bg-space-err bg-yellow-intense)
;;;; Tab mappings
(bg-tab-bar bg-alt)
(bg-tab-current bg-main)
(bg-tab-other bg-active)
;;;; Rainbow mappings
(rainbow-0 green-cooler)
(rainbow-1 blue)
(rainbow-2 magenta-warmer)
(rainbow-3 cyan-cooler)
(rainbow-4 yellow-cooler)
(rainbow-5 magenta-cooler)
(rainbow-6 red-cooler)
(rainbow-7 green-warmer)
(rainbow-8 yellow))
"The `sinolor-eva' palette.
Color values have the form (COLOR-NAME HEX-VALUE) with the former
as a symbol and the latter as a string.
Semantic color mappings have the form (MAPPING-NAME COLOR-NAME)
with both as symbols. The latter is a color that already exists
in the palette and is associated with a HEX-VALUE.")
(defcustom sinolor-eva-palette-overrides nil
"Overrides for `sinolor-eva-palette'.
Mirror the elements of the aforementioned palette, overriding
their value.
For overrides that are shared across all of the Sinolor themes,
refer to `sinolor-themes-common-palette-overrides'.
Theme-specific overrides take precedence over shared overrides.
The idea of common overrides is to change semantic color
mappings, such as to make the cursor red. Wherea theme-specific
overrides can also be used to change the value of a named color,
such as what hexadecimal RGB value the red-warmer symbol
represents."
:group 'sinolor-themes
:package-version '(sinolor-themes . "0.2.0")
:type '(repeat (list symbol (choice symbol string)))
:link '(info-link "(sinolor-themes) Palette overrides"))
(sinolor-themes-theme sinolor-eva
sinolor-eva-palette
sinolor-eva-palette-overrides)
(provide-theme 'sinolor-eva))
;;; sinolor-eva-theme.el ends here