about summary refs log tree commit diff stats
path: root/emacs.d/brianna-theme.el
blob: a4cd74dc8c20341c71e915a6c67961628293712b (plain)
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
;;; brianna-theme  -*- lexical-binding: t; -*-
;; a little theme by acdw
;; (and named by noa)

(deftheme brianna
  "A little theme by acdw"
  :background-mode 'light)

;; (custom-theme-set-variables 'brianna)

(defvar fclear
  '((t ()))
  ;; '((t ( :foreground unspecified :background unspecified
  ;;        :width unspecified :height unspecified
  ;;        :weight unspecified :slant unspecified
  ;;        :underline nil :overline nil :strike-through nil :box nil
  ;;        :inverse-video nil :extend nil)))
  "Specification to clear a given face.")

(defun fclear (face)
  "Set FACE spec to `fclear' --- inside `custom-theme-set-faces'."
  (list face fclear))

(defface brianna-prompt '((t (:inherit bold)))
  "A face for prompts.")

(defface brianna-input-field '((t ( :background "lavender"
                                    :box (:line-width (1 . -1)))))
  "A face for input fields.")

(custom-theme-set-faces
 'brianna
 ;; Default
 '(default ((t ( :foreground "black"
                 :background "alice blue"))))

 ;; Font lock -- clear
 (fclear 'font-lock-bracket-face)
 (fclear 'font-lock-builtin-face)
 (fclear 'font-lock-constant-face)
 (fclear 'font-lock-delimiter-face)
 (fclear 'font-lock-doc-markup-face)
 (fclear 'font-lock-escape-face)
 (fclear 'font-lock-function-call-face)
 (fclear 'font-lock-function-name-face)
 (fclear 'font-lock-keyword-face)
 (fclear 'font-lock-misc-punctuation-face)
 (fclear 'font-lock-negation-char-face)
 (fclear 'font-lock-number-face)
 (fclear 'font-lock-operator-face)
 (fclear 'font-lock-preprocessor-face)
 (fclear 'font-lock-property-name-face)
 (fclear 'font-lock-property-use-face)
 (fclear 'font-lock-punctuation-face)
 (fclear 'font-lock-regexp-face)
 (fclear 'font-lock-regexp-grouping-backslash)
 (fclear 'font-lock-regexp-grouping-construct)
 (fclear 'font-lock-type-face)
 (fclear 'font-lock-variable-name-face)
 (fclear 'font-lock-variable-use-face)
 (fclear 'font-lock-warning-face)

 ;; Font lock
 '(font-lock-comment-delimiter-face ((t (:slant italic))))
 '(font-lock-comment-face ((t (:slant italic))))
 '(font-lock-string-face ((t (:weight bold))))
 '(font-lock-doc-face ((t (:inherit (font-lock-string-face
                                     font-lock-comment-face)))))

 ;; Propertized text
 '(bold ((t (:weight bold))))
 '(error ((t (:foreground "red" :slant italic))))
 '(highlight ((t (:background "wheat"))))
 '(isearch ((t (:background "sea green" :foreground "white"))))
 '(isearch-fail ((t (:background "tomato"))))
 '(italic ((t (:slant italic))))
 '(lazy-highlight ((t (:background "dark sea green"))))
 '(link ((t (:foreground "navy" :underline t))))
 '(match ((t (:background "wheat"))))
 '(pulse-highlight-start-face ((t (:background "goldenrod"))))
 '(query-replace ((t (:background "wheat"))))
 '(region ((t (:background "papaya whip"))))
 '(shadow ((t (:foreground "orchid"))))
 '(show-paren-match ((t (:background "goldenrod"))))
 '(show-paren-mismatch ((t (:foreground "red" :slant italic))))
 '(success ((t (:foreground "sea green" :slant italic))))
 '(trailing-whitespace ((t (:background "tomato"))))
 '(underline ((t (:underline t))))
 '(warning ((t (:foreground "brown" :slant italic))))

 ;; User interface
 '(completions-annotations ((t (:inherit 'italic))))
 '(completions-highlight ((t (:background "wheat"))))
 '(header-line ((t (:background "lavender" :inherit variable-pitch))))
 '(minibuffer-prompt ((t (:inherit brianna-prompt))))
 '(mode-line ((t (:background "lavender" :inherit variable-pitch))))
 '(mode-line-active ((t ( :box "black" :background "light goldenrod"
                          :inherit mode-line))))
 '(mode-line-inactive ((t ( :box "pale goldenrod" :background "pale goldenrod"
                            :inherit mode-line))))
 '(tab-bar ((t (:inherit mode-line-inactive))))
 '(tab-bar-tab ((t ( :weight bold :underline t
                     :inherit variable-pitch))))
 '(tab-bar-tab-inactive ((t ( :background "pale goldenrod"
                              :inherit variable-pitch))))
 '(vertical-border ((t (:foreground "gray"))))

 ;;; Specific modes &c
 ;; Outline --- these go first b/c so many other headlines inherit from them
 '(outline-1 ((t (:inherit (bold underline italic) :extend t))))
 '(outline-2 ((t (:inherit (bold underline)))))
 '(outline-3 ((t (:inherit (italic underline)))))
 '(outline-3 ((t (:inherit (italic underline)))))
 '(outline-4 ((t (:inherit (italic underline)))))
 '(outline-5 ((t (:inherit (italic underline)))))
 '(outline-6 ((t (:inherit (italic underline)))))
 '(outline-7 ((t (:inherit (italic underline)))))
 '(outline-8 ((t (:inherit (italic underline)))))
 ;; Dired
 '(dired-header ((t (:underline t :extend t))))
 ;; Elastic indent
 '(elastic-indent ((t ())))
 ;; Eshell
 '(eshell-prompt ((t (:inherit brianna-prompt))))
 ;; Eww
 '(eww-form-text ((t (:inherit brianna-input-field))))
 ;; Gemtext mode
 '(gemtext-face-heading1 ((t (:inherit outline-1))))
 '(gemtext-face-heading2 ((t (:inherit outline-2))))
 '(gemtext-face-heading3 ((t (:inherit outline-3))))
 ;; Info
 '(info-title-1 ((t (:inherit outline-1))))
 '(info-title-2 ((t (:inherit outline-2))))
 '(info-title-3 ((t (:inherit outline-3))))
 '(info-title-4 ((t (:inherit outline-4))))
 ;; Jabber
 '(jabber-activity-face ((t (:inherit italic))))
 '(jabber-activity-personal-face ((t (:inherit rcirc-track-nick))))
 '(jabber-chat-error ((t (:inherit error))))
 '(jabber-chat-prompt-foreign ((t (:inherit brianna-prompt))))
 '(jabber-chat-prompt-local ((t (:inherit brianna-prompt))))
 '(jabber-chat-prompt-system ((t (:inherit brianna-prompt))))
 '(jabber-chat-text-foreign ((t (:inherit default))))
 '(jabber-chat-text-local ((t (:inherit default))))
 '(jabber-muc-presence-dim ((t (:inherit shadow))))
 '(jabber-rare-time-face ((t (:inherit shadow))))
 '(jabber-title-large ((t (:inherit outline-1))))
 '(jabber-title-medium ((t (:inherit outline-2))))
 '(jabber-title-small ((t (:inherit outline-3))))
 ;; Org
 (fclear 'org-document-info-keyword)
 (fclear 'org-document-info)
 (fclear 'org-document-title)
 '(org-drawer ((t (:inherit font-lock-comment-face))))
 ;; RCIRC
 '(rcirc-my-nick ((t (:weight bold :slant italic))))
 '(rcirc-nick-in-message ((t (:weight bold :slant italic))))
 '(rcirc-other-nick ((t (:slant italic))))
 '(rcirc-prompt ((t (:inherit brianna-prompt))))
 '(rcirc-timestamp ((t (:inherit shadow))))
 '(rcirc-server ((t (:inherit shadow))))
 '(rcirc-track-nick ((t (:weight bold :slant italic :inverse-video nil))))
 ;; Sh
 '(sh-heredoc ((t ( :background "azure" :extend t
                    :inherit font-lock-string-face))))
 (fclear 'sh-quoted-exec)
 ;; Widgets
 '(widget-field ((t (:inherit brianna-input-field))))
 '(widget-single-line-field ((t (:inherit brianna-input-field))))
 ;; Whitespace-mode
 '(whitespace-tab ((t (:foreground "#888"))))
 )

(provide-theme 'brianna)