diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e43b0f9 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store diff --git a/README.md b/README.md new file mode 100644 index 0000000..7dafa80 --- /dev/null +++ b/README.md @@ -0,0 +1,54 @@ + ______ __ __ + / ____/_ __/ /_ ___ _________ __ ______ / /__ + / / / / / / __ \/ _ \/ ___/ __ \/ / / / __ \/ //_/ +/ /___/ /_/ / /_/ / __/ / / /_/ / /_/ / / / / ,< +\____/\__, /_.___/\___/_/ / .___/\__,_/_/ /_/_/|_| + /____/ /_/ + + +![cyberpunk](https://raw.githubusercontent.com/the-frey/cyberpunk-2019/master/cyberpunk-2019.png) + +# Cyberpunk 2019 + +This theme is a spin on the Tron Legacy theme and Cyberpunk VS Code theme, now for emacs. Sam Aaron's excellent Cyberpunk theme just wasn't garish or extrovert enough for me, I'm afraid. + +This is heavily optimised for Clojure, Emacs Lisp and Haskell - that said, if you see an issue, feel free to throw in a PR! + +## Installation + +Download the theme file, and place it in your `~/.emacs.d/themes`, then add the following to your init file: + +``` +(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") +(load-theme `cyberpunk-2019 t) +``` + +### Modeline + +If you use the modeline, you might also want these styles in your `init.el`, although default styles are provided by this theme - this is just a change I like for slightly bolder lines: + +``` + '(mode-line ((t (:foreground "#fafafa" :background "DarkOrange" :box nil)))) + '(mode-line-inactive ((t (:foreground "#fafafa" :background "#666666" :box nil))))\ +``` + +These should go in the `custom-set-faces` block provided by `M-x customize`. + +### Flycheck + +If you use flycheck, you might want to add the following to your init file. + +``` +(set-face-attribute 'flycheck-error nil :underline '(:color "#FF4081")) +(set-face-attribute 'flycheck-warning nil :underline '(:color "#FF9C00")) +(set-face-attribute 'flycheck-info nil :underline '(:color "#9C00FF")) +``` + +### iTerm2 + +If you're on mac, you might want these styles for your terminal as well. There's an `.itermcolors` file in this repo you can use. The colours might look a bit weird until you load it - that's because I use `oh-my-zsh` with the `agnoster` theme, and this file is explicitly designed to work with that theme, its modeline and git feautres. YMMV with other setups. + +These are based on the VS Code Cyberpunk iTerm addon, but rejigged and altered to fit `oh-my-zsh` and `agnoster`. + +At some point I will make some standard terminal colours so this is Linux compatible. + diff --git a/cyberpunk-2019-theme.el b/cyberpunk-2019-theme.el new file mode 100644 index 0000000..0f146da --- /dev/null +++ b/cyberpunk-2019-theme.el @@ -0,0 +1,108 @@ +;;; cyberpunk-2019.el - a custom theme inspired by the Tron: Legacy theme by +;; Ian Y.E. Pan and Cyberpunk VS Code theme by Max-SS et al. +;; +;; Copyright© 2019 Alex Lynham +;; Licensed under GNU GPLv3 +;; +;; 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 . +;; +;; Author: Alex Lynham + +(deftheme cyberpunk-2019 + "Custom theme by Alex Lynham. Licensed under GNU GPLv3.") + +(custom-theme-set-faces + `cyberpunk-2019 + `(default ((t (:background "#372963" :foreground "#00E3FF" )))) + `(cursor ((t (:background "#BEFF00")))) + `(region ((t (:background "#009fff")))) + `(bold ((t (:weight normal :foreground "#FF9C00")))) + `(fringe ((t (:background "#4B3E72")))) + `(mode-line ((t (:foreground "#FFFAFA" :background "#FF9C00")))) + `(mode-line-inactive ((t (:foreground "#CBECFF" :background "#3D5666")))) + `(highlight ((t (:background "#262F36")))) + `(ido-first-match ((t (:foreground "#D7F0FF" :weight bold)))) + `(ido-only-match ((t (:foreground "#31C0C0")))) + `(ido-subdir ((t (:foreground "#5DC4FF")))) + `(isearch ((t (:background "#4D4FBB" :foreground "#FFFAFA")))) + `(lazy-highlight ((t (:background "#659F93" :foreground "#FFFAFA")))) + `(linum ((t (:background "#4B3E72" :foreground "#CBEBFF")))) + `(nlinum-relative-current-face ((t (:inherit linum :background "#4B3E72" :foreground "#BEFF00" :weight normal)))) + `(font-lock-builtin-face ((t (:foreground "#00FFC1")))) + `(font-lock-doc-face ((t (:foreground "#7FDEFF" :italic t)))) + `(font-lock-comment-face ((t ( + :foreground "#CBEBFF" + :background nil + :italic t)))) + `(font-lock-string-face ((t (:foreground "#7FDEFF")))) + `(font-lock-variable-name-face ((t (:foreground "#FF4081")))) + `(font-lock-function-name-face ((t (:foreground "#00FF9C")))) + `(font-lock-keyword-face ((t (:foreground "#00BEFF")))) + `(font-lock-negation-char-face ((t (:foreground "#5EC4FF")))) + `(font-lock-preprocessor-face ((t (:foreground "#5EC4FF")))) + `(font-lock-type-face ((t (:foreground "#FF9C00")))) + + `(font-lock-constant-face ((t (:foreground "#66FFC4")))) + `(minibuffer-prompt ((t (:foreground "#729FCF" )))) + `(font-lock-warning-face ((t (:foreground "red" :bold t)))) + `(dashboard-banner-logo-title-face ((t ( + :inherit default + :overline t + :height 1.15 + :family "Monaco")))) + `(dashboard-heading-face ((t ( + :inherit default + :foreground "#CBEBFF" + :height 1.1)))) + + `(clojure-keyword ((t (:foreground "#FFA000")))) + `(clojure-special ((t (:foreground "#9C00FF")))) + + `(show-paren-match-face ((t (:background "#009FFF" :foreground "#FFFAFA")))) + `(show-paren-mismatch-face ((t (:background "red1" :foreground "white")))) + + `(org-block ((t (:background "#4B3E72" :foreground "#00E3FF")))) + `(org-document-title ((t (:height 2.0 :foreground "#CBEBFF" + :family "Georgia")))) + `(org-level-1 ((t ( + :inherit outline-1 + :weight bold + :foreground "#7FDEFF" + :height 1.3)))) + `(org-level-2 ((t ( + :inherit outline-2 + :weight bold + :foreground "#00FFC1" + :height 1.1)))) + `(org-level-3 ((t ( + :inherit outline-3 + :weight bold + :foreground "#00BEFF" + :height 1.1)))) + `(org-table ((t (:background "#FF4081" :foreground "#729FCF")))) + + `(rainbow-delimiters-depth-1-face ((t (:foreground "#00FF9C")))) + `(rainbow-delimiters-depth-2-face ((t (:foreground "#FF4081")))) + `(rainbow-delimiters-depth-3-face ((t (:foreground "#00BEFF")))) + `(rainbow-delimiters-depth-4-face ((t (:foreground "#FEF96A")))) + `(rainbow-delimiters-depth-5-face ((t (:foreground "#C592FF")))) + `(rainbow-delimiters-depth-6-face ((t (:foreground "#9C00FF")))) + `(rainbow-delimiters-depth-7-face ((t (:foreground "#FEF96A")))) + `(rainbow-delimiters-depth-8-face ((t (:foreground "#BEFF00")))) + `(rainbow-delimiters-depth-9-face ((t (:foreground "#FF00BE")))) + + ) + +(provide-theme 'cyberpunk-2019) + diff --git a/cyberpunk-2019.itermcolors b/cyberpunk-2019.itermcolors new file mode 100644 index 0000000..38391c6 --- /dev/null +++ b/cyberpunk-2019.itermcolors @@ -0,0 +1,357 @@ + + + + + Ansi 0 Color + + Alpha Component + 1 + Blue Component + 0.5058823823928833 + Color Space + sRGB + Green Component + 0.25098040699958801 + Red Component + 1 + + Ansi 1 Color + + Alpha Component + 1 + Blue Component + 0.61176472902297974 + Color Space + sRGB + Green Component + 1 + Red Component + 0.0 + + Ansi 10 Color + + Alpha Component + 1 + Blue Component + 0.73717445135116577 + Color Space + sRGB + Green Component + 0.96646648645401001 + Red Component + 0.12886351346969604 + + Ansi 11 Color + + Alpha Component + 1 + Blue Component + 0.53081244230270386 + Color Space + sRGB + Green Component + 0.96818214654922485 + Red Component + 1 + + Ansi 12 Color + + Alpha Component + 1 + Blue Component + 0.99167412519454956 + Color Space + sRGB + Green Component + 0.79847496747970581 + Red Component + 0.10722490400075912 + + Ansi 13 Color + + Alpha Component + 1 + Blue Component + 0.99433296918869019 + Color Space + sRGB + Green Component + 0.68058031797409058 + Red Component + 0.90116435289382935 + + Ansi 14 Color + + Alpha Component + 1 + Blue Component + 0.98827284574508667 + Color Space + sRGB + Green Component + 0.83922570943832397 + Red Component + 0.60002338886260986 + + Ansi 15 Color + + Alpha Component + 1 + Blue Component + 1 + Color Space + sRGB + Green Component + 1 + Red Component + 0.99999600648880005 + + Ansi 2 Color + + Alpha Component + 1 + Blue Component + 0.67469781637191772 + Color Space + sRGB + Green Component + 0.98288244009017944 + Red Component + 0.0 + + Ansi 3 Color + + Alpha Component + 1 + Blue Component + 0.41637670993804932 + Color Space + sRGB + Green Component + 0.97871953248977661 + Red Component + 0.99975460767745972 + + Ansi 4 Color + + Alpha Component + 1 + Blue Component + 1 + Color Space + sRGB + Green Component + 0.74771982431411743 + Red Component + 0.0 + + Ansi 5 Color + + Alpha Component + 1 + Blue Component + 1 + Color Space + sRGB + Green Component + 0.58545517921447754 + Red Component + 0.87335008382797241 + + Ansi 6 Color + + Alpha Component + 1 + Blue Component + 0.99462181329727173 + Color Space + sRGB + Green Component + 0.79799681901931763 + Red Component + 0.52480369806289673 + + Ansi 7 Color + + Alpha Component + 1 + Blue Component + 1 + Color Space + sRGB + Green Component + 1 + Red Component + 1 + + Ansi 8 Color + + Alpha Component + 1 + Blue Component + 0.5058823823928833 + Color Space + sRGB + Green Component + 0.25098040699958801 + Red Component + 1 + + Ansi 9 Color + + Alpha Component + 1 + Blue Component + 0.61176472902297974 + Color Space + sRGB + Green Component + 1 + Red Component + 0.0 + + Background Color + + Alpha Component + 1 + Blue Component + 0.34118849039077759 + Color Space + sRGB + Green Component + 0.16278219223022461 + Red Component + 0.19937470555305481 + + Badge Color + + Alpha Component + 0.5 + Blue Component + 0.0 + Color Space + sRGB + Green Component + 0.1491314172744751 + Red Component + 1 + + Bold Color + + Alpha Component + 1 + Blue Component + 1 + Color Space + sRGB + Green Component + 1 + Red Component + 0.99999600648880005 + + Cursor Color + + Alpha Component + 1 + Blue Component + 0.73717445135116577 + Color Space + sRGB + Green Component + 0.96646648645401001 + Red Component + 0.12886351346969604 + + Cursor Guide Color + + Alpha Component + 0.25 + Blue Component + 1 + Color Space + sRGB + Green Component + 0.9268307089805603 + Red Component + 0.70213186740875244 + + Cursor Text Color + + Alpha Component + 1 + Blue Component + 1 + Color Space + sRGB + Green Component + 1 + Red Component + 0.99999600648880005 + + Foreground Color + + Alpha Component + 1 + Blue Component + 0.89999997615814209 + Color Space + sRGB + Green Component + 0.89999997615814209 + Red Component + 0.89999997615814209 + + Link Color + + Alpha Component + 1 + Blue Component + 0.73423302173614502 + Color Space + sRGB + Green Component + 0.35916060209274292 + Red Component + 0.0 + + Selected Text Color + + Alpha Component + 1 + Blue Component + 0.0 + Color Space + sRGB + Green Component + 0.0 + Red Component + 0.0 + + Selection Color + + Alpha Component + 1 + Blue Component + 1 + Color Space + sRGB + Green Component + 0.86970102787017822 + Red Component + 0.75813239812850952 + + Tab Color + + Alpha Component + 1 + Blue Component + 0.32156860828399658 + Color Space + sRGB + Green Component + 0.25882357358932495 + Red Component + 0.23137256503105164 + + + diff --git a/cyberpunk-2019.png b/cyberpunk-2019.png new file mode 100644 index 0000000..d788d81 Binary files /dev/null and b/cyberpunk-2019.png differ