tomorrow-night-bright-theme.el 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. ;;; tomorrow-night-bright-theme.el --- custom theme for faces
  2. ;;; Commentary:
  3. ;;
  4. ;;; Tomorrow Night Bright Theme
  5. ;;
  6. ;; Originally by Chris Kempson https://github.com/ChrisKempson/Tomorrow-Theme
  7. ;; Ported to GNU Emacs by Chris Charles
  8. ;; Ported to GNU Emacs 24's built-in theme system by Jim Myhrberg (@jimeh)
  9. ;;; Code:
  10. (deftheme tomorrow-night-bright
  11. "A Pastel Coloured Theme")
  12. (let ((background "#000000")
  13. (current-line "#2a2a2a")
  14. (selection "#424242")
  15. (foreground "#eaeaea")
  16. (comment "#969896")
  17. (cursor "#9f9f9f")
  18. (red "#d54e53")
  19. (orange "#e78c45")
  20. (yellow "#e7c547")
  21. (green "#b9ca4a")
  22. (aqua "#70c0b1")
  23. (blue "#7aa6da")
  24. (purple "#c397d8"))
  25. (custom-theme-set-faces
  26. 'tomorrow-night-bright
  27. ;; Built-in stuff (Emacs 23)
  28. `(default ((t (:background ,background :foreground ,foreground))))
  29. `(error ((t (:foreground ,red))))
  30. `(escape-glyph ((t (:foreground ,aqua))))
  31. `(fringe ((t (:background ,current-line))))
  32. `(highlight ((t (:background ,green :foreground ,current-line))))
  33. `(link ((t (:foreground ,blue))))
  34. `(link-visited ((t (:foreground ,purple))))
  35. `(minibuffer-prompt ((t (:foreground ,blue))))
  36. `(mode-line ((t (:background ,selection :foreground ,foreground))))
  37. `(mode-line-inactive ((t (:background ,current-line :foreground ,foreground))))
  38. `(region ((t (:background ,selection))))
  39. `(secondary-selection ((t (:background ,blue))))
  40. `(shadow ((t (:foreground ,comment))))
  41. `(success ((t (:foreground ,green))))
  42. `(trailing-whitespace ((t (:background ,red))))
  43. `(warning ((t (:foreground ,orange))))
  44. ;; Font-lock stuff
  45. `(font-lock-builtin-face ((t (:foreground ,aqua))))
  46. `(font-lock-comment-face ((t (:foreground ,comment))))
  47. `(font-lock-constant-face ((t (:foreground ,aqua))))
  48. `(font-lock-doc-string-face ((t (:foreground ,comment))))
  49. `(font-lock-function-name-face ((t (:foreground ,blue))))
  50. `(font-lock-keyword-face ((t (:foreground ,purple))))
  51. `(font-lock-string-face ((t (:foreground ,green))))
  52. `(font-lock-type-face ((t (:foreground ,yellow))))
  53. `(font-lock-variable-name-face ((t (:foreground ,orange))))
  54. `(font-lock-warning-face ((t (:foreground ,red))))
  55. ;; hl-line-mode
  56. `(hl-line ((t (:background ,current-line))))
  57. ;; linum-mode
  58. `(linum ((t (:background ,current-line :foreground ,foreground))))
  59. ;; org-mode
  60. `(org-date ((t (:foreground ,purple))))
  61. `(org-done ((t (:foreground ,green))))
  62. `(org-hide ((t (:foreground ,current-line))))
  63. `(org-link ((t (:foreground ,blue))))
  64. `(org-todo ((t (:foreground ,red))))
  65. ;; show-paren-mode
  66. `(show-paren-match ((t (:background ,blue :foreground ,current-line))))
  67. `(show-paren-mismatch ((t (:background ,orange :foreground ,current-line))))
  68. ;; whitespace-mode
  69. `(whitespace-empty ((t (:background ,yellow :foreground ,red))))
  70. `(whitespace-hspace ((t (:background ,selection :foreground ,comment))))
  71. `(whitespace-indentation ((t (:background ,yellow :foreground ,red))))
  72. `(whitespace-line ((t (:background ,current-line :foreground ,purple))))
  73. `(whitespace-newline ((t (:foreground ,comment))))
  74. `(whitespace-space ((t (:background ,current-line :foreground ,comment))))
  75. `(whitespace-space-after-tab ((t (:background ,yellow :foreground ,red))))
  76. `(whitespace-space-before-tab ((t (:background ,orange :foreground ,red))))
  77. `(whitespace-tab ((t (:background ,selection :foreground ,comment))))
  78. `(whitespace-trailing ((t (:background ,red :foreground ,yellow))))
  79. ;; rainbow-delimiters
  80. `(rainbow-delimiters-depth-1-face ((t (:foreground ,purple))))
  81. `(rainbow-delimiters-depth-2-face ((t (:foreground ,blue))))
  82. `(rainbow-delimiters-depth-3-face ((t (:foreground ,aqua))))
  83. `(rainbow-delimiters-depth-4-face ((t (:foreground ,green))))
  84. `(rainbow-delimiters-depth-5-face ((t (:foreground ,yellow))))
  85. `(rainbow-delimiters-depth-6-face ((t (:foreground ,orange))))
  86. `(rainbow-delimiters-depth-7-face ((t (:foreground ,red))))
  87. `(rainbow-delimiters-depth-8-face ((t (:foreground ,comment))))
  88. `(rainbow-delimiters-depth-9-face ((t (:foreground ,foreground))))
  89. ;; auctex
  90. `(font-latex-bold-face ((t (:foreground ,green))))
  91. `(font-latex-doctex-documentation-face ((t (:background ,current-line))))
  92. `(font-latex-italic-face ((t (:foreground ,green))))
  93. `(font-latex-math-face ((t (:foreground ,orange))))
  94. `(font-latex-sectioning-0-face ((t (:foreground ,yellow))))
  95. `(font-latex-sectioning-1-face ((t (:foreground ,yellow))))
  96. `(font-latex-sectioning-2-face ((t (:foreground ,yellow))))
  97. `(font-latex-sectioning-3-face ((t (:foreground ,yellow))))
  98. `(font-latex-sectioning-4-face ((t (:foreground ,yellow))))
  99. `(font-latex-sectioning-5-face ((t (:foreground ,yellow))))
  100. `(font-latex-sedate-face ((t (:foreground ,aqua))))
  101. `(font-latex-string-face ((t (:foreground ,yellow))))
  102. `(font-latex-verbatim-face ((t (:foreground ,orange))))
  103. `(font-latex-warning-face ((t (:foreground ,red)))))
  104. (custom-theme-set-variables
  105. 'tomorrow-night-bright
  106. `(ansi-color-names-vector
  107. ;; black, red, green, yellow, blue, magenta, cyan, white
  108. [,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])
  109. `(ansi-term-color-vector
  110. ;; black, red, green, yellow, blue, magenta, cyan, white
  111. [unspecified ,background ,red ,green ,yellow ,blue ,purple ,blue ,foreground])))
  112. (provide-theme 'tomorrow-night-bright)
  113. ;;; tomorrow-night-bright-theme.el ends here