-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathef-dark-theme.el
More file actions
236 lines (201 loc) · 6.45 KB
/
ef-dark-theme.el
File metadata and controls
236 lines (201 loc) · 6.45 KB
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
;;; ef-dark-theme.el --- Legible dark theme with blue, magenta, cyan, purple colors -*- lexical-binding:t -*-
;; Copyright (C) 2022-2026 Free Software Foundation, Inc.
;; Author: Protesilaos Stavrou <info@protesilaos.com>
;; Maintainer: Protesilaos Stavrou <info@protesilaos.com>
;; URL: https://github.com/protesilaos/ef-themes
;; Keywords: faces, theme, accessibility
;; This file is NOT part of GNU Emacs.
;; GNU Emacs 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.
;;
;; GNU Emacs 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 GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;;
;; The `ef-themes' are a collection of light and dark themes for GNU
;; Emacs whose goal is to provide colorful ("pretty") yet legible
;; options for users who want something with a bit more flair than the
;; `modus-themes' (also designed by me).
;;; Code:
(require 'ef-themes)
(defconst ef-dark-palette-partial
'((cursor "#ff76ff")
(bg-main "#000000")
(bg-dim "#1a1a1a")
(bg-alt "#2b2b2b")
(fg-main "#d0d0d0")
(fg-dim "#857f8f")
(fg-alt "#89afef")
(bg-active "#4b4b4b")
(bg-inactive "#222222")
(border "#4f4f5f")
(red "#ef6560")
(red-warmer "#f47360")
(red-cooler "#ff5a7a")
(red-faint "#d56f72")
(green "#0faa26")
(green-warmer "#6aad0f")
(green-cooler "#00a692")
(green-faint "#61a06c")
(yellow "#bf9032")
(yellow-warmer "#d1843f")
(yellow-cooler "#df8a5a")
(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")
(bg-red-intense "#b02930")
(bg-green-intense "#337133")
(bg-yellow-intense "#8f5040")
(bg-blue-intense "#4648d0")
(bg-magenta-intense "#804fdd")
(bg-cyan-intense "#2270cf")
(bg-red-subtle "#72002a")
(bg-green-subtle "#00422a")
(bg-yellow-subtle "#603000")
(bg-blue-subtle "#2f2f74")
(bg-magenta-subtle "#572060")
(bg-cyan-subtle "#004065")
(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")
(bg-mode-line-active "#2a2a75")
(fg-mode-line-active "#e0e0ff")
(bg-completion "#0f2d4a")
(bg-hover "#004a5f")
(bg-hover-secondary "#551f5a")
(bg-hl-line "#002435")
(bg-paren-match "#20577a")
(bg-err "#461210") ; check with err
(bg-warning "#3a3004") ; check with warning
(bg-info "#10350a") ; check with info
(bg-region "#2a234a")))
(defconst ef-dark-palette-mappings-partial
'((err red-warmer)
(warning yellow)
(info green)
(fg-link cyan)
(fg-link-visited magenta)
(name blue-warmer)
(keybind blue-cooler)
(identifier magenta-faint)
(fg-prompt green-cooler)
(builtin magenta)
(comment yellow-faint)
(constant blue-cooler)
(fnname magenta-warmer)
(fnname-call magenta-faint)
(keyword magenta-cooler)
(preprocessor red)
(docstring cyan-faint)
(string blue-warmer)
(type green-cooler)
(variable cyan-cooler)
(variable-use cyan-faint)
(rx-backslash green-warmer) ; compare with `string'
(rx-construct red)
(accent-0 blue)
(accent-1 magenta-warmer)
(accent-2 green-cooler)
(accent-3 red)
(date-common green-cooler)
(date-deadline red-warmer)
(date-deadline-subtle red-faint)
(date-event fg-alt)
(date-holiday magenta)
(date-now fg-main)
(date-range fg-alt)
(date-scheduled yellow)
(date-scheduled-subtle yellow-faint)
(date-weekday cyan)
(date-weekend red-faint)
(fg-prose-code magenta-warmer)
(prose-done green)
(fg-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)
(fg-prose-verbatim blue)
(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)
(bg-search-static bg-warning)
(bg-search-current bg-yellow-intense)
(bg-search-lazy bg-blue-intense)
(bg-search-replace bg-red-intense)
(bg-search-rx-group-0 bg-magenta-intense)
(bg-search-rx-group-1 bg-green-intense)
(bg-search-rx-group-2 bg-red-subtle)
(bg-search-rx-group-3 bg-cyan-subtle)
(bg-space-err bg-yellow-intense)
(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)))
(defcustom ef-dark-palette-overrides nil
"Overrides for `ef-dark-palette'.
Mirror the elements of the aforementioned palette, overriding
their value.
For overrides that are shared across all of the Ef themes,
refer to `ef-themes-common-palette-overrides'.
To preview the palette entries, use `ef-themes-preview-colors' or
`ef-themes-preview-colors-current' (read the documentation for
further details)."
:group 'ef-themes
:package-version '(ef-themes . "1.0.0")
:type '(repeat (list symbol (choice symbol string)))
:link '(info-link "(ef-themes) Palette overrides"))
(defconst ef-dark-palette
(modus-themes-generate-palette
ef-dark-palette-partial
nil
nil
(append ef-dark-palette-mappings-partial ef-themes-palette-common)))
;;;###theme-autoload
(modus-themes-theme
'ef-dark
'ef-themes
"Legible dark theme with blue, magenta, cyan, purple colors."
'dark
'ef-dark-palette
nil
'ef-dark-palette-overrides)
;;; ef-dark-theme.el ends here