-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsnazzy-theme.el
77 lines (60 loc) · 2.09 KB
/
snazzy-theme.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
;;; snazzy-theme.el --- An elegant syntax theme with bright colors -*- lexical-binding: t; -*-
;; Copyright (C) 2017 Wei Jian Gan <[email protected]>
;;; Authors:
;; Scheme: Sindre Sorhus (https://sindresorhus.com/)
;; Template: Kaleb Elwert <[email protected]>
;; Keywords: faces, theme, color, snazzy
;; URL: https://github.com/weijiangan/emacs-snazzy/
;; Version: 1.0
;; Package-Requires: ((emacs "24") (base16-theme "2.1"))
;; This file is not a part of GNU Emacs.
;;; License:
;; 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/>.
;;; Commentary:
;; Add this one-liner to your init.el:
;; (load-theme 'snazzy t)
;;; Code:
(require 'base16-theme)
(defvar snazzy-theme-colors
'(:base00 "#1e1f29"
:base01 "#34353e"
:base02 "#4a4b53"
:base03 "#78787e"
:base04 "#a5a5a9"
:base05 "#eff0eb"
:base06 "#f1f1f0"
:base07 "#f1f1f0"
:base08 "#ff5c57"
:base09 "#ff9f43"
:base0A "#f3f99d"
:base0B "#5af78e"
:base0C "#9aedfe"
:base0D "#57c7ff"
:base0E "#ff6ac1"
:base0F "#b2643c")
"All colors for Snazzy theme are defined here.")
;; Define the theme
(deftheme snazzy)
;; Add all the faces to the theme
(base16-theme-define 'snazzy snazzy-theme-colors)
;; Mark the theme as provided
(provide-theme 'snazzy)
;;;###autoload
(and load-file-name
(boundp 'custom-theme-load-path)
(add-to-list 'custom-theme-load-path
(file-name-as-directory
(file-name-directory load-file-name))))
(provide 'snazzy-theme)
;;; snazzy-theme.el ends here