summary refs log tree commit diff
path: root/emacs.d/lib/wabi-sabi-theme.el
blob: 1ca0003a74e50470f9cce550c1d346f25c3f51d4 (plain) (blame)
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
;;; wabi-sabi-theme.el --- Black and light yellow theme without syntax highlighting

;;; Code:

(deftheme wabi-sabi
  "Wabi Sabi.")

(defvar wabi-sabi-faces
  `(default
    font-lock-builtin-face
    font-lock-constant-face
    font-lock-function-name-face
    font-lock-keyword-face
    font-lock-negation-char-face
    font-lock-preprocessor-face
    font-lock-regexp-grouping-backslash
    font-lock-regexp-grouping-construct
    font-lock-string-face
    font-lock-type-face
    font-lock-variable-name-face
    font-lock-warning-face
    fringe
    sh-quoted-exec))

(let ((bg              "#f7f9f5")
      (bg-alt          "#fffde7")
      (fg              "#000000")
      (fg-alt          "#000000")
      (highlight       "#c4c6c2")
      (highlight-alt   "#cccab5")
      (modeline-fg     "#ffffff")
      (modeline-bg     "#2D271F")
      (modeline-bg-alt "#605C49")
      (region          "#eeed9d"))

  (apply 'custom-theme-set-faces 'wabi-sabi
         `(default   ((t (:foreground ,fg :background ,bg))))
         `(cursor    ((t (:background ,fg :foreground ,bg))))
         `(highlight ((t (:background ,highlight))))

         `(mode-line           ((t (:foreground ,modeline-fg :background ,modeline-bg))))
         `(mode-line-inactive  ((t (:foreground ,modeline-fg :background ,modeline-bg-alt))))

         `(show-paren-match       ((t (:background ,highlight-alt))))
         `(whitespace-indentation ((t (:background ,bg-alt :foreground ,fg-alt))))

         `(font-lock-comment-face           ((t (:foreground ,fg :weight bold))))
         `(font-lock-comment-delimiter-face ((t (:foreground ,fg :weight bold))))
         `(font-lock-doc-face               ((t (:foreground ,fg :weight bold))))
         `(font-lock-doc-string-face        ((t (:foreground ,fg :weight bold))))

         `(region ((t (:background ,region :foreground ,fg))))

         (mapcar (lambda (n) `(,n ((t (:background ,bg :foreground ,fg))))) wabi-sabi-faces)))

;;;###autoload
(when load-file-name
  (add-to-list 'custom-theme-load-path
               (file-name-as-directory (file-name-directory load-file-name))))

(provide-theme 'wabi-sabi)

;;; wabi-sabi-theme.el ends here