Skip to content

Instantly share code, notes, and snippets.

@tinylucid
Created December 4, 2022 15:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tinylucid/d12838ee27db0be9b877a685d902aa06 to your computer and use it in GitHub Desktop.
Save tinylucid/d12838ee27db0be9b877a685d902aa06 to your computer and use it in GitHub Desktop.
;;; naysayer-theme.el --- Aftereight theme for Emacs.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Code:
(deftheme naysayer
"Naysayer theme for Emacs.")
(let* ((class '((class color) (min-colors 89)))
(fg "#c1b08d")
(bg "#041818")
(strings "#44b9b1")
(constants "#a060c0")
(type "#c090ff")
(builtins "#FFF2c9")
(keywords "ivory1")
(comments "#3fdf1f") ;;30f035 37df45
(hl "#abf"))
(custom-theme-set-faces
'naysayer
`(default ((,class (:background ,bg :foreground ,fg))))
`(fringe ((,class (:background "#031c1c" :foreground ,fg))))
`(font-lock-keyword-face ((,class (:foreground "white"))))
`(font-lock-builtin-face ((,class (:foreground "lightgreen"))))
`(font-lock-string-face ((,class (:foreground "#0fdfaf"))))
`(font-lock-doc-face ((,class (:foreground ,comments))))
`(font-lock-comment-face ((,class (:foreground ,comments))))
`(highlight-numbers-number ((,class (:foreground ,type))))
`(font-lock-function-name-face ((,class (:foreground "white"))))
`(font-lock-variable-name-face ((,class (:foreground "#c8d4ec"))))
`(cursor ((,class (:foreground "#000" :background "#ff0068"))))
'(vertical-border ((t (:background "#000" :foreground "#000"))))
`(magit-diff-context ((,class (:foreground ,fg))))
`(magit-diff-context-highlight ((,class (:foreground ,fg))))
`(mode-line ((,class (:foreground ,fg :background "#000000"))))
`(mode-line-inactive ((,class (:background "#062828"))))
`(mode-line-buffer-id ((,class (:foreground "white"))))
'(dired-directory ((t (:foreground "Green2"))))
'(dired-flagged ((t (:weight bold :foreground "Pink"))))
'(dired-header ((t (:foreground "PaleGreen"))))
'(dired-ignored ((t (:foreground "grey70"))))
'(dired-mark ((t (:foreground "Aquamarine"))))
'(dired-marked ((t (:weight bold :foreground "DarkOrange"))))
'(dired-perm-write ((t (:foreground "chocolate1"))))
'(dired-symlink ((t (:foreground "Cyan1"))))
'(dired-warning ((t (:foreground "Pink" :weight bold))))
`(hl-line ((t (:background "#000000"))))
`(selectrum-current-candidate ((t (:background "#000000"))))))
(provide-theme 'naysayer)
;;;###autoload
(when (and (boundp 'custom-theme-load-path)
load-file-name)
;; add theme folder to `custom-theme-load-path' when installing over MELPA
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
;;; naysayer-theme.el ends here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment