Skip to content

Instantly share code, notes, and snippets.

@nkwhr
Created July 10, 2015 07:23
Show Gist options
  • Save nkwhr/e68b1e96c14251ccc494 to your computer and use it in GitHub Desktop.
Save nkwhr/e68b1e96c14251ccc494 to your computer and use it in GitHub Desktop.
(unless (>= 24 emacs-major-version)
(error "requires Emacs 24 or later."))
(deftheme heroku "A color theme inspired by Heroku's old dashboard")
(custom-theme-set-variables
'heroku
'(linum-format "%4d\u2502 "))
(let ((*background* "#1b1b24")
(*comments* "#7a7a8a")
(*constant* "#0cafed")
(*current-line* "#151515")
(*cursor-underscore* "#a9aec8")
;; (*keywords* "#e6524d")
(*keywords* "#7c76b8")
;; Sidebar line numbers
(*line-number* "#161A1F")
(*line-fg* "#666")
(*type-face* "#0cafed") ;; blue
(*method-declaration* "#0cafed") ;; blue
(*mode-line-bg* "#333")
(*mode-inactive-bg* "#222")
(*mode-line-fg* "#a9aec8")
(*mode-inactive-fg* "#555")
(*normal* "#cccccc")
(*number* "#605193")
(*operators* "#0cafed") ;; blue
(*warning* "#e6524d")
(*regexp* "#c62826")
;; (*string* "#a6fa62")
(*string* "#a6fa62") ;; green
(*variable* "#e6524d") ;; red
(*visual-selection* "#555"))
(custom-theme-set-faces
'heroku
`(bold ((t (:bold t))))
`(button ((t (:foreground, *keywords* :underline t))))
`(default ((t (:background, *background* :foreground, *normal*))))
`(header-line ((t (:background, *mode-line-bg* :foreground, *normal*)))) ;; info header
`(highlight ((t (:background, *current-line*))))
`(highlight-face ((t (:background, *current-line*))))
`(hl-line ((t (:background, *current-line* :underline t))))
`(info-xref ((t (:foreground, *keywords* :underline t))))
`(region ((t (:background, *visual-selection*))))
`(underline ((nil (:underline t))))
;; font-lock
`(font-lock-builtin-face ((t (:foreground, *operators*))))
`(font-lock-comment-delimiter-face ((t (:foreground, *comments*))))
`(font-lock-comment-face ((t (:foreground, *comments*))))
`(font-lock-constant-face ((t (:foreground, *constant*))))
`(font-lock-doc-face ((t (:foreground, *string*))))
`(font-lock-doc-string-face ((t (:foreground, *string*))))
`(font-lock-function-name-face ((t (:foreground, *method-declaration*))))
`(font-lock-keyword-face ((t (:foreground, *keywords*))))
`(font-lock-negation-char-face ((t (:foreground, *warning*))))
`(font-lock-number-face ((t (:foreground, *number*))))
`(font-lock-preprocessor-face ((t (:foreground, *keywords*))))
`(font-lock-reference-face ((t (:foreground, *constant*))))
`(font-lock-regexp-grouping-backslash ((t (:foreground, *regexp*))))
`(font-lock-regexp-grouping-construct ((t (:foreground, *regexp*))))
`(font-lock-string-face ((t (:foreground, *string*))))
`(font-lock-type-face ((t (:foreground, *type-face*))))
`(font-lock-variable-name-face ((t (:foreground, *variable*))))
`(font-lock-warning-face ((t (:foreground, *warning*))))
;; GUI
`(fringe ((t (:background, *background*))))
`(linum ((t (:background, *line-number* :foreground, *line-fg*))))
`(minibuffer-prompt ((t (:foreground, *variable*))))
`(mode-line ((t (:background, *mode-line-bg* :foreground, *mode-line-fg*))))
`(mode-line-inactive ((t (:background, *mode-inactive-bg* :foreground, *mode-inactive-fg*))))
`(cursor ((t (:background, *cursor-underscore*))))
`(text-cursor ((t (:background, *cursor-underscore*))))
`(vertical-border ((t (:foreground, *background*)))) ;; between splits
;; show-paren
`(show-paren-mismatch ((t (:background, *warning* :foreground, *normal* :weight bold))))
`(show-paren-match ((t (:background, *keywords* :foreground, *normal* :weight bold))))
;; search
`(isearch ((t (:background, *regexp* :foreground, *visual-selection*))))
`(isearch-fail ((t (:background, *warning*))))
`(lazy-highlight ((t (:background, *operators* :foreground, *visual-selection*))))
))
;;;###autoload
(when (and (boundp 'custom-theme-load-path) load-file-name)
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))
(provide-theme 'heroku)
;; Local Variables:
;; no-byte-compile: t
;; End:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment