You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.3 KiB

4 years ago
  1. ;; Theme based on plastic color
  2. ;; to figure out face properties of point:
  3. ;; M-x describe-text-properties
  4. ;; or
  5. ;; C-u C-x =
  6. (deftheme plastic "A dark color theme for Emacs")
  7. (let ((*background* "#21252b")
  8. (*normal* "#a9b2c3")
  9. (*comments* "#615953")
  10. (*constants* "#9ec400")
  11. (*current-line* "#151515")
  12. (*cursor-underscore* "#e6c546")
  13. (*keywords* "#61afef")
  14. (*line-number* "#615953")
  15. (*method-declaration* "#e7c547")
  16. (*mode-line-bg* "#ff0000")
  17. (*warnings* "#ff0000")
  18. (*operators* "#e06c75")
  19. (*visual-selection* "#b48ead"))
  20. (custom-theme-set-faces
  21. 'plastic
  22. `(bold (( t (:bold t))))
  23. `(button ((t (:foreground, *keywords* :underline t))))
  24. `(default ((t (:background, *background* :foreground, *normal*))))
  25. `(header-line ((t (:background, *mode-line-bg* :foreground, *normal*))))
  26. `(hl-line ((t (:background, *current-line*))))
  27. `(region ((t (:background, *visual-selection*))))
  28. `(underline ((nil (:underline t))))
  29. ;; font-lock
  30. `(font-lock-builtin-face ((t (:foreground, *operators*))))
  31. `(font-lock-comment-face ((t (:foreground, *comments*))))
  32. `(font-lock-constant-face ((t (:foreground, *constants*))))
  33. `(font-lock-keyword-face ((t (:foreground, *constants*))))
  34. `(font-lock-warning-face ((t (:foreground, *warnings*))))
  35. ;; GUI
  36. `(fringe ((t (:background, *background*))))
  37. `(linum ((t (:background, *line-number*))))
  38. `(cursor ((t (:background, *cursor-underscore*))))
  39. `(text-cursor ((t (:background, *cursor-underscore*))))
  40. `(vertical-border ((t (:foreground, *background*))))
  41. `(line-number ((t (:foreground, *comments*))))
  42. `(company-tooltip ((t (:background, *background* :foreground, *normal*))))
  43. `(company-tooltip-selection ((t (:background, *current-line* :foreground, *constants*))))
  44. ;; show-paren
  45. `(show-paren-mismatch ((t (:background, *warnings*, :foreground, *normal* :weight bold))))
  46. `(show-paren-match ((t (:background, *keywords* :foreground, *normal* :weight bold))))
  47. `(flycheck-error ((t (:foreground, *warnings*))))
  48. ))
  49. ;;;###autoload
  50. (when (and (boundp 'custom-theme-load-path) load-file-name)
  51. (add-to-list 'custom-theme-load-path
  52. (file-name-as-directory (file-name-directory load-file-name))))
  53. (provide-theme 'plastic)