dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

junipero-theme.el (16291B)


      1 ;;; junipero-theme.el --- Theme
      2 
      3 ;; Copyright (C) 2021 ,
      4 
      5 ;; Author:
      6 ;; Version: 0.1
      7 ;; Package-Requires: ((emacs "24"))
      8 ;; Created with ThemeCreator, https://github.com/mswift42/themecreator.
      9 
     10 
     11 ;; This program is free software: you can redistribute it and/or modify
     12 ;; it under the terms of the GNU General Public License as published by
     13 ;; the Free Software Foundation, either version 3 of the License, or
     14 ;; (at your option) any later version.
     15 
     16 ;; This program is distributed in the hope that it will be useful,
     17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
     18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     19 ;; GNU General Public License for more details.
     20 
     21 ;; You should have received a copy of the GNU General Public License
     22 ;; along with this program. If not, see <http://www.gnu.org/licenses/>.
     23 
     24 ;; This file is not part of Emacs.
     25 
     26 ;;; Commentary:
     27 
     28 ;;; Code:
     29 
     30  (deftheme junipero)
     31  (let ((class '((class color) (min-colors 89)))
     32        (fg1 "#878787")
     33        (fg2 "#7c7c7c")
     34        (fg3 "#717171")
     35        (fg4 "#676767")
     36        (bg1 "#11121A")
     37        (bg2 "#24252c")
     38        (bg3 "#37383f")
     39        (bg4 "#4a4b51")
     40        (builtin "#ba75cf")
     41        (keyword "#0490e8")
     42        (const   "#5c78f0")
     43        (comment "#3e9e5f")
     44        (func    "#ff6c11")
     45        (str     "#1dd3d6")
     46        (type    "#ff3863")
     47        (var     "#db6775")
     48        (warning "#ff8800")
     49        (warning2 "#ff4545"))
     50    (custom-theme-set-faces
     51    'junipero
     52         `(default ((,class (:background ,bg1 :foreground ,fg1))))
     53         `(font-lock-builtin-face ((,class (:foreground ,builtin))))
     54         `(font-lock-comment-face ((,class (:foreground ,comment))))
     55 	`(font-lock-negation-char-face ((,class (:foreground ,const))))
     56 	`(font-lock-reference-face ((,class (:foreground ,const))))
     57 	`(font-lock-constant-face ((,class (:foreground ,const))))
     58         `(font-lock-doc-face ((,class (:foreground ,comment))))
     59         `(font-lock-function-name-face ((,class (:foreground ,func ))))
     60         `(font-lock-keyword-face ((,class (:bold ,class :foreground ,keyword))))
     61         `(font-lock-string-face ((,class (:foreground ,str))))
     62         `(font-lock-type-face ((,class (:foreground ,type ))))
     63         `(font-lock-variable-name-face ((,class (:foreground ,var))))
     64         `(font-lock-warning-face ((,class (:foreground ,warning :background ,bg2))))
     65         `(term-color-black ((,class (:foreground ,fg2 :background nil))))
     66         `(region ((,class (:foreground "#102030" :background "#80a0f0"))))
     67         `(highlight ((,class (:foreground ,fg3 :background ,bg3))))
     68 	`(hl-line ((,class (:background  "#222222"))))
     69 	`(fringe ((,class (:background ,bg2 :foreground ,fg4))))
     70 	`(cursor ((,class (:background ,bg3))))
     71         `(show-paren-match-face ((,class (:background ,warning))))
     72         `(isearch ((,class (:bold t :foreground ,warning :background ,bg3))))
     73         `(mode-line ((,class (:box (:line-width 1 :color nil :style pressed-button) :foreground "#40979a9" :background "#101130"))) :bold t)
     74         `(mode-line-inactive ((,class (:box (:line-width 1 :color nil :style pressed-button) :foreground "#2069a9" :background "#101124" :weight normal)))) ;
     75         `(mode-line-buffer-id ((,class (:bold t :foreground ,func :background nil))))
     76 	`(mode-line-highlight ((,class (:foreground ,keyword :box nil :weight bold))))
     77         `(mode-line-emphasis ((,class (:foreground ,fg1))))
     78 	`(vertical-border ((,class (:foreground "#101124"))))
     79         `(minibuffer-prompt ((,class (:bold t :foreground ,keyword))))
     80         `(default-italic ((,class (:italic t))))
     81 	`(link ((,class (:foreground ,const :underline t))))
     82 	`(org-code ((,class (:foreground ,fg2))))
     83 	`(org-hide ((,class (:foreground ,bg1))))
     84         `(org-level-1 ((,class (:bold t :foreground ,fg2 :height 1.1))))
     85         `(org-level-2 ((,class (:bold nil :foreground ,fg3))))
     86         `(org-level-3 ((,class (:bold t :foreground ,fg4))))
     87         `(org-level-4 ((,class (:bold nil :foreground ,bg4))))
     88         `(org-date ((,class (:underline t :foreground ,var) )))
     89         `(org-footnote  ((,class (:underline t :foreground ,fg4))))
     90         `(org-link ((,class (:underline t :foreground ,type ))))
     91         `(org-special-keyword ((,class (:foreground ,func))))
     92         `(org-block ((,class (:foreground ,fg3))))
     93         `(org-quote ((,class (:inherit org-block :slant italic))))
     94         `(org-verse ((,class (:inherit org-block :slant italic))))
     95         `(org-todo ((,class (:box (:line-width 1 :color ,fg3) :foreground ,keyword :bold t))))
     96         `(org-done ((,class (:box (:line-width 1 :color ,bg3) :bold t :foreground ,bg4))))
     97         `(org-warning ((,class (:underline t :foreground ,warning))))
     98         `(org-agenda-structure ((,class (:weight bold :foreground ,fg3 :box (:color ,fg4) :background ,bg3))))
     99         `(org-agenda-date ((,class (:foreground ,var :height 1.1 ))))
    100         `(org-agenda-date-weekend ((,class (:weight normal :foreground ,fg4))))
    101         `(org-agenda-date-today ((,class (:weight bold :foreground ,keyword :height 1.4))))
    102         `(org-agenda-done ((,class (:foreground ,bg4))))
    103 	`(org-scheduled ((,class (:foreground ,type))))
    104         `(org-scheduled-today ((,class (:foreground ,func :weight bold :height 1.2))))
    105 	`(org-ellipsis ((,class (:foreground ,builtin))))
    106 	`(org-verbatim ((,class (:foreground ,fg4))))
    107         `(org-document-info-keyword ((,class (:foreground ,func))))
    108 	`(font-latex-bold-face ((,class (:foreground ,type))))
    109 	`(font-latex-italic-face ((,class (:foreground ,var :italic t))))
    110 	`(font-latex-string-face ((,class (:foreground ,str))))
    111 	`(font-latex-match-reference-keywords ((,class (:foreground ,const))))
    112 	`(font-latex-match-variable-keywords ((,class (:foreground ,var))))
    113 	`(ido-only-match ((,class (:foreground ,warning))))
    114 	`(org-sexp-date ((,class (:foreground ,fg4))))
    115 	`(ido-first-match ((,class (:foreground ,keyword :bold t))))
    116         `(ivy-current-match ((,class (:foreground ,fg3 :inherit highlight :underline t))))
    117 	`(gnus-header-content ((,class (:foreground ,keyword))))
    118 	`(gnus-header-from ((,class (:foreground ,var))))
    119 	`(gnus-header-name ((,class (:foreground ,type))))
    120 	`(gnus-header-subject ((,class (:foreground ,func :bold t))))
    121 	`(mu4e-view-url-number-face ((,class (:foreground ,type))))
    122 	`(mu4e-cited-1-face ((,class (:foreground ,fg2))))
    123 	`(mu4e-cited-7-face ((,class (:foreground ,fg3))))
    124 	`(mu4e-header-marks-face ((,class (:foreground ,type))))
    125 	`(ffap ((,class (:foreground ,fg4))))
    126 	`(js2-private-function-call ((,class (:foreground ,const))))
    127 	`(js2-jsdoc-html-tag-delimiter ((,class (:foreground ,str))))
    128 	`(js2-jsdoc-html-tag-name ((,class (:foreground ,var))))
    129 	`(js2-external-variable ((,class (:foreground ,type  ))))
    130         `(js2-function-param ((,class (:foreground ,const))))
    131         `(js2-jsdoc-value ((,class (:foreground ,str))))
    132         `(js2-private-member ((,class (:foreground ,fg3))))
    133         `(js3-warning-face ((,class (:underline ,keyword))))
    134         `(js3-error-face ((,class (:underline ,warning))))
    135         `(js3-external-variable-face ((,class (:foreground ,var))))
    136         `(js3-function-param-face ((,class (:foreground ,fg2))))
    137         `(js3-jsdoc-tag-face ((,class (:foreground ,keyword))))
    138         `(js3-instance-member-face ((,class (:foreground ,const))))
    139 	`(warning ((,class (:foreground ,warning))))
    140 	`(ac-completion-face ((,class (:underline t :foreground ,keyword))))
    141 	`(info-quoted-name ((,class (:foreground ,builtin))))
    142 	`(info-string ((,class (:foreground ,str))))
    143 	`(icompletep-determined ((,class :foreground ,builtin)))
    144         `(undo-tree-visualizer-current-face ((,class :foreground ,builtin)))
    145         `(undo-tree-visualizer-default-face ((,class :foreground ,fg2)))
    146         `(undo-tree-visualizer-unmodified-face ((,class :foreground ,var)))
    147         `(undo-tree-visualizer-register-face ((,class :foreground ,type)))
    148 	`(slime-repl-inputed-output-face ((,class (:foreground ,type))))
    149         `(trailing-whitespace ((,class :foreground nil :background ,warning)))
    150         `(rainbow-delimiters-depth-1-face ((,class :foreground ,fg1)))
    151         `(rainbow-delimiters-depth-2-face ((,class :foreground ,type)))
    152         `(rainbow-delimiters-depth-3-face ((,class :foreground ,var)))
    153         `(rainbow-delimiters-depth-4-face ((,class :foreground ,const)))
    154         `(rainbow-delimiters-depth-5-face ((,class :foreground ,keyword)))
    155         `(rainbow-delimiters-depth-6-face ((,class :foreground ,fg1)))
    156         `(rainbow-delimiters-depth-7-face ((,class :foreground ,type)))
    157         `(rainbow-delimiters-depth-8-face ((,class :foreground ,var)))
    158         `(magit-item-highlight ((,class :background ,bg3)))
    159         `(magit-section-heading        ((,class (:foreground ,keyword :weight bold))))
    160         `(magit-hunk-heading           ((,class (:background ,bg3))))
    161         `(magit-section-highlight      ((,class (:background ,bg2))))
    162         `(magit-hunk-heading-highlight ((,class (:background ,bg3))))
    163         `(magit-diff-context-highlight ((,class (:background ,bg3 :foreground ,fg3))))
    164         `(magit-diffstat-added   ((,class (:foreground ,type))))
    165         `(magit-diffstat-removed ((,class (:foreground ,var))))
    166         `(magit-process-ok ((,class (:foreground ,func :weight bold))))
    167         `(magit-process-ng ((,class (:foreground ,warning :weight bold))))
    168         `(magit-branch ((,class (:foreground ,const :weight bold))))
    169         `(magit-log-author ((,class (:foreground ,fg3))))
    170         `(magit-hash ((,class (:foreground ,fg2))))
    171         `(magit-diff-file-header ((,class (:foreground ,fg2 :background ,bg3))))
    172         `(lazy-highlight ((,class (:foreground ,fg2 :background ,bg3))))
    173         `(term ((,class (:foreground ,fg1 :background ,bg1))))
    174         `(term-color-black ((,class (:foreground ,bg3 :background ,bg3))))
    175         `(term-color-blue ((,class (:foreground ,func :background ,func))))
    176         `(term-color-red ((,class (:foreground ,keyword :background ,bg3))))
    177         `(term-color-green ((,class (:foreground ,type :background ,bg3))))
    178         `(term-color-yellow ((,class (:foreground ,var :background ,var))))
    179         `(term-color-magenta ((,class (:foreground ,builtin :background ,builtin))))
    180         `(term-color-cyan ((,class (:foreground ,str :background ,str))))
    181         `(term-color-white ((,class (:foreground ,fg2 :background ,fg2))))
    182         `(rainbow-delimiters-unmatched-face ((,class :foreground ,warning)))
    183         `(helm-header ((,class (:foreground ,fg2 :background ,bg1 :underline nil :box nil))))
    184         `(helm-source-header ((,class (:foreground ,keyword :background ,bg1 :underline nil :weight bold))))
    185         `(helm-selection ((,class (:background ,bg2 :underline nil))))
    186         `(helm-selection-line ((,class (:background ,bg2))))
    187         `(helm-visible-mark ((,class (:foreground ,bg1 :background ,bg3))))
    188         `(helm-candidate-number ((,class (:foreground ,bg1 :background ,fg1))))
    189         `(helm-separator ((,class (:foreground ,type :background ,bg1))))
    190         `(helm-time-zone-current ((,class (:foreground ,builtin :background ,bg1))))
    191         `(helm-time-zone-home ((,class (:foreground ,type :background ,bg1))))
    192         `(helm-buffer-not-saved ((,class (:foreground ,type :background ,bg1))))
    193         `(helm-buffer-process ((,class (:foreground ,builtin :background ,bg1))))
    194         `(helm-buffer-saved-out ((,class (:foreground ,fg1 :background ,bg1))))
    195         `(helm-buffer-size ((,class (:foreground ,fg1 :background ,bg1))))
    196         `(helm-ff-directory ((,class (:foreground ,func :background ,bg1 :weight bold))))
    197         `(helm-ff-file ((,class (:foreground ,fg1 :background ,bg1 :weight normal))))
    198         `(helm-ff-executable ((,class (:foreground ,var :background ,bg1 :weight normal))))
    199         `(helm-ff-invalid-symlink ((,class (:foreground ,warning2 :background ,bg1 :weight bold))))
    200         `(helm-ff-symlink ((,class (:foreground ,keyword :background ,bg1 :weight bold))))
    201         `(helm-ff-prefix ((,class (:foreground ,bg1 :background ,keyword :weight normal))))
    202         `(helm-grep-cmd-line ((,class (:foreground ,fg1 :background ,bg1))))
    203         `(helm-grep-file ((,class (:foreground ,fg1 :background ,bg1))))
    204         `(helm-grep-finish ((,class (:foreground ,fg2 :background ,bg1))))
    205         `(helm-grep-lineno ((,class (:foreground ,fg1 :background ,bg1))))
    206         `(helm-grep-match ((,class (:foreground nil :background nil :inherit helm-match))))
    207         `(helm-grep-running ((,class (:foreground ,func :background ,bg1))))
    208         `(helm-moccur-buffer ((,class (:foreground ,func :background ,bg1))))
    209         `(helm-source-go-package-godoc-description ((,class (:foreground ,str))))
    210         `(helm-bookmark-w3m ((,class (:foreground ,type))))
    211         `(company-echo-common ((,class (:foreground ,bg1 :background ,fg1))))
    212         `(company-preview ((,class (:background ,bg1 :foreground ,var))))
    213         `(company-preview-common ((,class (:foreground ,bg2 :foreground ,fg3))))
    214         `(company-preview-search ((,class (:foreground ,type :background ,bg1))))
    215         `(company-scrollbar-bg ((,class (:background ,bg3))))
    216         `(company-scrollbar-fg ((,class (:foreground ,keyword))))
    217         `(company-tooltip ((,class (:foreground ,fg2 :background ,bg1 :bold t))))
    218         `(company-tooltop-annotation ((,class (:foreground ,const))))
    219         `(company-tooltip-common ((,class ( :foreground ,fg3))))
    220         `(company-tooltip-common-selection ((,class (:foreground ,str))))
    221         `(company-tooltip-mouse ((,class (:inherit highlight))))
    222         `(company-tooltip-selection ((,class (:background ,bg3 :foreground ,fg3))))
    223         `(company-template-field ((,class (:inherit region))))
    224         `(web-mode-builtin-face ((,class (:inherit ,font-lock-builtin-face))))
    225         `(web-mode-comment-face ((,class (:inherit ,font-lock-comment-face))))
    226         `(web-mode-constant-face ((,class (:inherit ,font-lock-constant-face))))
    227         `(web-mode-keyword-face ((,class (:foreground ,keyword))))
    228         `(web-mode-doctype-face ((,class (:inherit ,font-lock-comment-face))))
    229         `(web-mode-function-name-face ((,class (:inherit ,font-lock-function-name-face))))
    230         `(web-mode-string-face ((,class (:foreground ,str))))
    231         `(web-mode-type-face ((,class (:inherit ,font-lock-type-face))))
    232         `(web-mode-html-attr-name-face ((,class (:foreground ,func))))
    233         `(web-mode-html-attr-value-face ((,class (:foreground ,keyword))))
    234         `(web-mode-warning-face ((,class (:inherit ,font-lock-warning-face))))
    235         `(web-mode-html-tag-face ((,class (:foreground ,builtin))))
    236         `(jde-java-font-lock-package-face ((t (:foreground ,var))))
    237         `(jde-java-font-lock-public-face ((t (:foreground ,keyword))))
    238         `(jde-java-font-lock-private-face ((t (:foreground ,keyword))))
    239         `(jde-java-font-lock-constant-face ((t (:foreground ,const))))
    240         `(jde-java-font-lock-modifier-face ((t (:foreground ,fg2))))
    241         `(jde-jave-font-lock-protected-face ((t (:foreground ,keyword))))
    242         `(jde-java-font-lock-number-face ((t (:foreground ,var))))
    243         `(header-line-highlight ((t (:background ,bg1))))
    244         )
    245   ;; emacs >= 26.1
    246   (when (>= emacs-major-version 26)
    247     (custom-theme-set-faces
    248      'junipero
    249      `(line-number ((t (:inherit fringe :foreground "#2069a9" :background "#101124"))))
    250      `(line-number-current-line ((t (:inherit fringe :foreground "#ffb500" :background "#101124"))))))
    251   ;; emacs >= 27.1
    252   (when (>= emacs-major-version 27)
    253     (custom-theme-set-faces
    254      'junipero
    255      `(line-number ((t (:foreground "#2069a9" :background "#101124"))))
    256      `(line-number-current-line ((t (:foreground "#ffb500" :background "#101124"))))
    257      `(tab-line ((,class (:inherit fringe :box (:line-width 4 :color ,bg2)))))
    258      `(tab-line-tab ((,class (:inherit tab-line))))
    259      `(tab-line-tab-inactive ((,class (:inherit tab-line :foreground ,comment))))
    260      `(tab-line-tab-current  ((,class (:background ,bg4 :foreground ,fg1 :box (:line-width 4 :color ,bg4)))))
    261      `(tab-line-highlight    ((,class (:background ,bg1 :foreground ,fg2 :box (:line-width 4 :color ,bg1)))))))
    262 
    263    )
    264 
    265 ;;;###autoload
    266 (when load-file-name
    267   (add-to-list 'custom-theme-load-path
    268                (file-name-as-directory (file-name-directory load-file-name))))
    269 
    270 (provide-theme 'junipero)
    271 
    272 ;; Local Variables:
    273 ;; no-byte-compile: t
    274 ;; End:
    275 
    276 ;;; junipero-theme.el ends here