-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpink-bliss-uwu-theme.el
237 lines (204 loc) · 12.5 KB
/
pink-bliss-uwu-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
;;; pink-bliss-uwu-theme.el --- a pink color theme for Emacs
;; Copyright (C) 2005–2015 Alex Schroeder <[email protected]>
;; 2024 Marie K. Ekeberg <[email protected]>
;; This file is not part of GNU Emacs.
;; This 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 2, or (at your option) any later
;; version.
;;
;; This 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; see the file COPYING. If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
;; MA 02111-1307, USA.
;; URL: http://www.emacswiki.org/emacs/PinkBliss
;; pink-gnu.xpm: http://www.emacswiki.org/emacs/download/pink-gnu.xpm
;;; Code:
(require 'cl)
(deftheme pink-bliss-uwu
"A theme based on the color pink uWu.
It is very pink.")
(custom-theme-set-faces
'pink-bliss-uwu
'(default ((((min-colors 256)) ( :background "misty rose" :foreground "magenta4"))))
'(button ((((min-colors 256)) (:bold t))))
'(fringe ((((min-colors 256)) (:background "misty rose"))))
'(menu ((((min-colors 256)) (:background "pink" :foreground "violet red"))))
'(mode-line ((((min-colors 256)) (:background "pink" :foreground "purple"
:box (:line-width 1 :style released-button)))))
'(mode-line-inactive ((((min-colors 256)) (:background "pink" :foreground "orchid"
:box (:line-width 1
:style released-button)))))
'(minibuffer-prompt ((((min-colors 256)) (:foreground "deep pink"))))
'(tool-bar ((((min-colors 256)) (:background "pink"
:box (:line-width 1 :style released-button)))))
'(tooltip ((((min-colors 256)) (:background "lemon chiffon"
:foreground "violet red"))))
'(region ((((min-colors 256)) (:background "seashell"))))
;; isearch
'(isearch ((((min-colors 256)) (:foreground "white" :background "hot pink"))))
'(isearch-lazy-highlight-face ((((min-colors 256)) (:foreground "white" :background "deep pink"))))
;; info-mode
'(header-line ((((min-colors 256)) (:background "hot pink" :foreground "white"))))
;; calendar
'(calendar-today-face ((((min-colors 256)) (:foreground "lemon chiffon"))))
'(diary-face ((((min-colors 256)) (:bold t :foreground "yellow"))))
'(holiday-face ((((min-colors 256)) (:bold t :foreground "peru"))))
;; font-lock
'(font-lock-builtin-face ((((min-colors 256)) (:foreground "orchid" :weight bold))))
'(font-lock-comment-delimiter-face ((((min-colors 256)) (:foreground "coral"))))
'(font-lock-comment-face ((((min-colors 256)) (:foreground "salmon"))))
'(font-lock-constant-face ((((min-colors 256)) (:foreground "orchid"))))
'(font-lock-doc-face ((((min-colors 256)) (:foreground "coral"))))
'(font-lock-function-name-face ((((min-colors 256)) (:foreground "deep pink"))))
'(font-lock-keyword-face ((((min-colors 256)) (:foreground "purple" :weight bold))))
'(font-lock-negation-char-face ((((min-colors 256)) (:foreground "red"))))
'(font-lock-preprocessor-face ((((min-colors 256)) (:foreground "HotPink2" :weight bold))))
'(font-lock-string-face ((((min-colors 256)) (:foreground "pale violet red"))))
'(font-lock-type-face ((((min-colors 256)) (:foreground "light slate blue" :weight bold))))
'(font-lock-variable-name-face ((((min-colors 256)) (:foreground "hot pink"))))
'(font-lock-warning-face ((((min-colors 256)) (:bold t :foreground "red"))))
;; cperl
'(cperl-array-face ((((min-colors 256)) (:bold t :foreground "tomato"))))
'(cperl-hash-face ((((min-colors 256)) (:bold t :foreground "chocolate"))))
'(cperl-nonoverridable-face ((((min-colors 256)) (:foreground "red"))))
;; makefiles
'(makefile-shell-face ((((min-colors 256)) (:background "linen"))))
;; helm
'(helm-header ((t (:background "hot pink" :foreground "seashell"))))
'(helm-ff-dotted-directory ((t (:background "seashell" :foreground "hot pink" :weight bold))))
'(helm-candidate-number ((t (:background "magenta" :foreground "seashell"))))
'(helm-source-header ((t (:background "hot pink" :foreground "seashell"))))
'(helm-selection ((t (:background "pink" :foreground "purple" :weight bold))))
;; ivy (part of swiper)
'(ivy-confirm-face ((((min-colors 256)) (:foreground "magenta"))))
'(ivy-current-match ((((min-colors 256)) (:background "light pink"))))
;; gnus
'(message-header-name ((((min-colors 256)) (:foreground "red"))))
'(message-header-other ((((min-colors 256)) (:foreground "dark orange"))))
;; ediff
'(ediff-current-diff-A ((((min-colors 256)) (:background "papaya whip"))))
'(ediff-current-diff-Ancestor ((((min-colors 256)) (:background "papaya whip"))))
'(ediff-current-diff-B ((((min-colors 256)) (:background "papaya whip"))))
'(ediff-current-diff-C ((((min-colors 256)) (:background "papaya whip"))))
'(ediff-even-diff-A ((((min-colors 256)) (:background "seashell"))))
'(ediff-even-diff-Ancestor ((((min-colors 256)) (:background "seashell"))))
'(ediff-even-diff-B ((((min-colors 256)) (:background "seashell"))))
'(ediff-even-diff-C ((((min-colors 256)) (:background "seashell"))))
'(ediff-fine-diff-A ((((min-colors 256)) (:background "moccasin"))))
'(ediff-fine-diff-Ancestor ((((min-colors 256)) (:background "moccasin"))))
'(ediff-fine-diff-B ((((min-colors 256)) (:background "moccasin"))))
'(ediff-fine-diff-C ((((min-colors 256)) (:background "moccasin"))))
'(ediff-odd-diff-A ((((min-colors 256)) (:background "seashell"))))
'(ediff-odd-diff-Ancestor ((((min-colors 256)) (:background "seashell"))))
'(ediff-odd-diff-B ((((min-colors 256)) (:background "seashell"))))
'(ediff-odd-diff-C ((((min-colors 256)) (:background "seashell"))))
;; highlights (mouse hovers, other hovers etc.)
'(highlight ((t (:background "pink" :foreground "magenta4"))))
;; widgets
'(widget-field ((t (:background "pink" :foreground "magenta4" :extend t))))
'(widget-button ((t (:background "pink" :foreground "magenta4" :box t :weight bold))))
;; dashboard
;; uses some widget themes by default, which makes it less nice with this theme.
;; Overriding is sensible here? yes.
'(dashboard-items-face ((t (:foreground "magenta4"))))
'(dashboard-no-items-face ((t (:foreground "magenta4"))))
;; magit
'(magit-section-highlight ((((min-colors 256)) (:background "pink"))))
'(magit-diff-hunk-heading ((((min-colors 256)) (:foreground "black" :background "MistyRose2"))))
'(magit-diff-hunk-heading-highlight ((((min-colors 256)) (:foreground "black" :background "MistyRose3"))))
'(magit-diff-context ((((min-colors 256)) (:inherit default))))
'(magit-diff-context-highlight ((((min-colors 256)) (:background "MistyRose2"))))
'(magit-diff-removed ((((min-colors 256)) (:background "RosyBrown2"))))
'(magit-diff-added ((((min-colors 256)) (:background "RosyBrown1"))))
'(magit-diff-removed-highlight ((((min-colors 256)) (:background "pink3"))))
'(magit-diff-added-highlight ((((min-colors 256)) (:background "pink1"))))
'(magit-diff-whitespace-warning ((((min-colors 256)) (:background "violet red"))))
'(magit-section-heading ((((min-colors 256)) (:foreground "firebrick"))))
'(magit-section-highlight ((((min-colors 256)) (:background "#fdc"))))
'(magit-diff-file-heading ((((min-colors 256)) (:foreground "firebrick4"))))
'(magit-diff-file-heading-highlight ((((min-colors 256)) (:background "#fdd"))))
'(magit-hash ((((min-colors 256)) (:inherit bold))))
'(magit-branch-local ((((min-colors 256)) (:foreground "PaleVioletRed2" :weight bold))))
'(magit-branch-remote ((((min-colors 256)) (:foreground "PaleVioletRed3" :weight bold))))
;; company-mode
'(company-echo ((t (:background "pink" :foreground "magenta4" :extend t))))
'(company-tooltip ((t (:background "pink" :foreground "magenta4" :extend t))))
'(company-tooltip-annotation ((t (:background "pink" :foreground "seashell" :extend t))))
'(company-tooltip-selection ((t (:background "hot pink" :foreground "magenta4" :weight bold :extend t))))
;; lsp-mode
;; mostly headerline, as it doesn't play ball with the current font-lock settings
'(lsp-headerline-breadcrumb-path-face ((t (:foreground "seashell"))))
'(lsp-headerline-breadcrumb-separator-face ((t (:foreground "purple" :height 0.8))))
'(lsp-headerline-breadcrumb-symbols-face ((t (:foreground "seashell"))))
'(lsp-ui-doc-background ((t (:background "seashell"))))
;; org-mode
;; TODO: better colors for the nesting levels?
'(org-level-1 ((t (:foreground "violet red" :background "pink" :weight extra-bold :height 1.5))))
'(org-level-2 ((t (:foreground "hot pink" :background "pink" :weight bold :height 1.2))))
'(org-level-3 ((t (:foreground "pale violet red" :background "pink" :weight bold :height 1.1))))
'(org-level-4 ((t (:foreground "deep pink" :background "pink" :weight bold :height 1.0))))
'(org-level-5 ((t (:foreground "PaleVioletRed3" :weight bold :height 1.0))))
'(org-level-6 ((t (:foreground "maroon" :weight bold :height 1.0))))
'(org-level-7 ((t (:foreground "light slate blue" :weight bold :height 1.0))))
'(org-level-8 ((t (:foreground "coral" :weight bold :height 1.0))))
'(org-block ((t (:background "white"))))
'(org-block-begin-line ((t (:foreground "purple" :background "pink" :extend t :weight bold))))
'(org-block-end-line ((t (:foreground "purple" :background "pink" :extend t :weight bold))))
'(org-table ((t (:foreground "hot pink" :background "white" :weight bold))))
'(org-quote ((t (:background "white" :extend t))))
'(org-verse ((t (:background "white" :extend t))))
'(org-verbatim ((t (:background "white"))))
'(org-link ((t (:foreground "purple" :underline t :weight bold))))
;; Markdown mode (mimic some org mode styling)
'(markdown-header-face-1 ((t (:foreground "violet red" :weight bold :height 1.5))))
'(markdown-header-face-2 ((t (:foreground "hot pink" :weight bold :height 1.2))))
'(markdown-header-face-3 ((t (:foreground "pale violet red" :weight bold :height 1.1))))
'(markdown-header-face-4 ((t (:foreground "deep pink" :weight bold :height 1.0))))
'(markdown-header-face-5 ((t (:foreground "light slate blue" :weight bold :height 1.0))))
'(markdown-header-face-6 ((t (:foreground "coral" :weight bold :height 1.0))))
'(markdown-code-face ((t (:background "white" :extend t))))
;; Centaur tabs
'(centaur-tabs-selected ((((min-colors 256)) (:background "hot pink" :foreground "white"))))
'(centaur-tabs-selected-modified ((t (:background "violet red" :foreground "white" :weight bold))))
'(centaur-tabs-modified-marker-selected ((t (:background "violet red" :foreground "white"))))
'(centaur-tabs-unselected ((((min-colors 256)) (:background "pink" :foreground "white"))))
'(centaur-tabs-unselected-modified ((t (:background "pink" :foreground "white" :weight bold))))
'(centaur-tabs-modified-marker-unselected ((t (:background "pink" :foreground "white"))))
'(centaur-tabs-background-color ((t (:background "MistyRose5" :foreground "MistyRose5")))))
(custom-theme-set-variables
'pink-bliss-uwu
'(org-fontify-quote-and-verse-blocks t)
'(CUA-mode-read-only-cursor-color "dark grey")
'(help-highlight-face 'info-xref)
'(list-matching-lines-buffer-name-face 'bold)
'(rcirc-colors pink-bliss-foreground-colors))
(defvar pink-bliss-foreground-colors
(let ((candidates)
;; (red-limit #xe000)
(green-limit #xa000)
(both-limit #xa000))
(dolist (item color-name-rgb-alist)
(cl-destructuring-bind (color red green blue) item
(when (and (not (color-gray-p color))
;; (< red red-limit)
(< green green-limit)
(not (and (> red both-limit)
(> green both-limit))))
(setq candidates (cons color candidates)))))
candidates)
"Colors to use for nicks in rcirc, for example.
To check out the list, evaluate
\(list-colors-display pink-bliss-foreground-colors).")
;; Add self to custom theme path
;;;###autoload
(when load-file-name
(add-to-list 'custom-theme-load-path
(file-name-directory load-file-name)))
(provide-theme 'pink-bliss-uwu)
;;; pink-bliss-uwu-theme.el ends here