soothe-theme.el 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. (deftheme soothe
  2. "sooth-theme
  3. Created : Tue Jul 17 18:21:38 2012 - Jason Milkins.
  4. licence : MIT
  5. An amalgam of muted color tones and highlighted backgrounds.
  6. Also has support for rainbow-delimiters")
  7. (let (
  8. ;; mode-line-font - tighten up the modeline by making it
  9. ;; variable pitch. This theme also uses powerline.el
  10. (mode-line-font "Droid Sans")
  11. ;; named colors
  12. (gray-1 "#828282")
  13. (gray-1bg "#0a0a0a")
  14. (gray-2 "#333333")
  15. (gray-2bg "#111111")
  16. (gray-3 "#aaaaaa")
  17. (gray-3bg "#141414")
  18. (gray-4 "#252525")
  19. (gray-4bg "#171717")
  20. (gray-5 "#2a2a2a")
  21. (gray-5bg "#1a1a1a")
  22. (gray-6 "#202020")
  23. (gray-6bg "#1e1e1e")
  24. (red-1 "#d13120")
  25. (red-1bg "#1D1515")
  26. (red-2 "#b23f1e")
  27. (red-2bg "#251c1e")
  28. (brown-1 "#9f621d")
  29. (brown-1bg "#2a1f1f")
  30. (orange-1 "#d97a35")
  31. (orange-1bg "#1F1710")
  32. (yellow-1 "#deae3e")
  33. (yellow-1bg "#18140C")
  34. (green-1 "#81af34")
  35. (green-1bg "#1a2321")
  36. (green-2 "#4e9f75")
  37. (green-2bg "#1a2321")
  38. (turquoise-1 "#11535F")
  39. (turquoise-2 "#07272D")
  40. (turquoise-1bg "#05181C")
  41. (turquoise-2bg "#041316")
  42. (blue-1 "#7e9fc9")
  43. (blue-1bg "#1e252f")
  44. (blue-2 "#417598")
  45. (blue-2bg "#1b333e")
  46. (blue-3 "#00959e")
  47. (blue-3bg "#132228")
  48. (blue-4 "#365e7a")
  49. (blue-4bg "#172028")
  50. (purple-1 "#a878b5")
  51. (purple-1bg "#1D1B25")
  52. ;; special colors
  53. (background "#110F13")
  54. (alt-background "#111013")
  55. (foreground "#dcdddd")
  56. (hl-line "#11151a")
  57. (selection "#311500")
  58. )
  59. (custom-theme-set-faces
  60. 'soothe
  61. ;; Basics
  62. `(default ((t (:foreground ,foreground :background ,background ))))
  63. `(cursor ((t ( :background ,red-2 ))))
  64. `(region ((t (:foreground nil :background ,selection ))))
  65. `(highlight ((t (:foreground ,blue-3 :background ,blue-3bg ))))
  66. `(hl-line ((t ( :background ,hl-line ))))
  67. `(minibuffer-prompt ((t (:foreground ,orange-1 :background ,orange-1bg ))))
  68. `(escape-glyph ((t (:foreground ,red-1 :background ,purple-1bg ))))
  69. ;; Font-lock stuff
  70. `(font-lock-builtin-face ((t (:foreground ,red-2 :background ,red-1bg ))))
  71. `(font-lock-constant-face ((t (:foreground ,purple-1 :background ,purple-1bg ))))
  72. `(font-lock-comment-face ((t (:foreground ,turquoise-1 :background ,alt-background :italic t ))))
  73. `(font-lock-comment-delimiter-face ((t (:foreground ,turquoise-2 :background ,alt-background :italic t ))))
  74. `(font-lock-doc-face ((t (:foreground ,blue-3 :background ,gray-1bg ))))
  75. `(font-lock-doc-string-face ((t (:foreground ,blue-3 :background ,gray-1bg ))))
  76. `(font-lock-function-name-face ((t (:foreground ,red-1 :background ,red-1bg ))))
  77. `(font-lock-keyword-face ((t (:foreground ,orange-1 :background ,orange-1bg ))))
  78. `(font-lock-negation-char-face ((t (:foreground ,yellow-1 :background ,yellow-1bg ))))
  79. `(font-lock-preprocessor-face ((t (:foreground ,orange-1 :background ,orange-1bg ))))
  80. `(font-lock-string-face ((t (:foreground ,turquoise-1 :background ,turquoise-2bg ))))
  81. `(font-lock-type-face ((t (:foreground ,red-2 :background ,red-2bg :bold nil ))))
  82. `(font-lock-variable-name-face ((t (:foreground ,blue-1 :background ,blue-1bg ))))
  83. `(font-lock-warning-face ((t (:foreground ,red-2 :background ,red-2bg ))))
  84. ;; UI related
  85. `(link ((t (:foreground ,blue-1 :background ,blue-1bg ))))
  86. `(fringe ((t ( :background ,gray-3bg ))))
  87. `(mode-line ((t (:foreground ,gray-1 :background ,gray-3bg :box nil :height 85 :family ,mode-line-font ))))
  88. `(mode-line-inactive ((t (:foreground ,gray-6 :background ,gray-3bg :box nil :height 85 ))))
  89. `(vertical-border ((t (:foreground ,gray-5 :background ,background ))))
  90. ;; Linum
  91. `(linum ((t (:foreground ,gray-5bg :background ,alt-background :height 90 ))))
  92. ;; show-paren-mode
  93. `(show-paren-match ((t (:foreground ,orange-1 :background ,orange-1bg ))))
  94. `(show-paren-mismatch ((t (:foreground ,red-2bg :background ,red-2 ))))
  95. ;; ido
  96. `(ido-only-match ((t (:foreground ,green-1 :background ,green-1bg ))))
  97. `(ido-subdir ((t (:foreground ,purple-1 :background ,purple-1bg ))))
  98. ;; whitespace-mode
  99. `(whitespace-empty ((t (:foreground ,yellow-1bg :background ,yellow-1 ))))
  100. `(whitespace-hspace ((t (:foreground ,gray-2 ))))
  101. `(whitespace-indentation ((t (:foreground ,gray-2 ))))
  102. `(whitespace-line ((t ( :background ,gray-2 ))))
  103. `(whitespace-newline ((t (:foreground ,gray-2 ))))
  104. `(whitespace-space ((t (:foreground ,gray-2 ))))
  105. `(whitespace-space-after-tab ((t (:foreground ,gray-2 ))))
  106. `(whitespace-tab ((t (:foreground ,gray-2 ))))
  107. `(whitespace-trailing ((t (:foreground ,red-1bg :background ,red-1 ))))
  108. ;; flyspell-mode
  109. `(flyspell-incorrect ((t (:underline ,red-2 ))))
  110. `(flyspell-duplicate ((t (:underline ,red-2 ))))
  111. ;; magit
  112. `(magit-diff-add ((t (:foreground ,green-1 ))))
  113. `(magit-diff-del ((t (:foreground ,red-2 ))))
  114. `(magit-item-highlight ((t ( :background ,gray-1bg ))))
  115. ;; highlight-indentation-mode
  116. `(highlight-indentation-face ((t ( :background ,gray-1bg ))))
  117. `(highlight-indentation-current-column-face ((t ( :background ,gray-4 ))))
  118. ;; ECB
  119. `(ecb-default-general-face ((t (:foreground ,gray-3 :background ,gray-1bg ))))
  120. `(ecb-default-highlight-face ((t (:foreground ,red-1 :background ,red-1bg ))))
  121. `(ecb-method-face ((t (:foreground ,red-1 :background ,red-1bg ))))
  122. `(ecb-tag-header-face ((t ( :background ,blue-2bg ))))
  123. ;; org-mode
  124. `(org-date ((t (:foreground ,purple-1 :background ,purple-1bg ))))
  125. `(org-done ((t (:foreground ,green-1 :background ,green-1bg ))))
  126. `(org-hide ((t (:foreground ,gray-2 :background ,gray-1bg ))))
  127. `(org-link ((t (:foreground ,blue-1 :background ,blue-1bg ))))
  128. `(org-todo ((t (:foreground ,red-1 :background ,red-1bg ))))
  129. )
  130. (custom-theme-set-variables
  131. 'soothe
  132. `(powerline-color1 ,gray-6)
  133. `(powerline-color2 ,gray-3bg)
  134. `(Linum-format "%7i ")
  135. `(fringe-mode 4)
  136. ;; Fill Column Indicator mode
  137. `(fci-rule-color ,gray-6)
  138. `(fci-rule-character-color ,gray-6)
  139. `(ansi-color-names-vector
  140. ;; black, red, green, yellow, blue, magenta, cyan, white
  141. [,background ,red-1 ,green-1 ,yellow-1 ,blue-1 ,purple-1 ,blue-1 ,foreground])
  142. `(ansi-term-color-vector
  143. ;; black, red, green, yellow, blue, magenta, cyan, white
  144. [unspecified ,background ,red-1 ,green-1 ,yellow-1 ,blue-1 ,purple-1 ,blue-1 ,foreground])
  145. )
  146. )
  147. ;; Rainbow delimiters
  148. (defun soothe-rainbow-delim-set-face ()
  149. (set-face-attribute 'rainbow-delimiters-depth-1-face nil :foreground "#30828F" )
  150. (set-face-attribute 'rainbow-delimiters-depth-2-face nil :foreground "#2c7580" )
  151. (set-face-attribute 'rainbow-delimiters-depth-3-face nil :foreground "#276872" )
  152. (set-face-attribute 'rainbow-delimiters-depth-4-face nil :foreground "#225B64" )
  153. (set-face-attribute 'rainbow-delimiters-depth-5-face nil :foreground "#1D4E55" )
  154. (set-face-attribute 'rainbow-delimiters-depth-6-face nil :foreground "#184147" )
  155. (set-face-attribute 'rainbow-delimiters-depth-7-face nil :foreground "#133439" )
  156. (set-face-attribute 'rainbow-delimiters-unmatched-face nil :foreground "#eF3000" )
  157. )
  158. (eval-after-load "rainbow-delimiters" '(soothe-rainbow-delim-set-face))
  159. ;;;###autoload
  160. (when load-file-name
  161. (add-to-list 'custom-theme-load-path
  162. (file-name-as-directory (file-name-directory load-file-name))))
  163. (provide-theme 'soothe)