[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/monokai-theme b555826 131/207: Expose primary, background
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/monokai-theme b555826 131/207: Expose primary, background and foreground colors |
Date: |
Thu, 21 Oct 2021 18:07:47 -0400 (EDT) |
branch: elpa/monokai-theme
commit b5558264e1d7e22a2a157cccccf256daf3d32d42
Author: Diego Alvarez <diego.alvarez.zuluaga@gmail.com>
Commit: Diego Alvarez <diego.alvarez.zuluaga@gmail.com>
Expose primary, background and foreground colors
---
README.md | 18 +++++++++++++++
monokai-theme.el | 68 ++++++++++++++++++++++++++++++++++++++++++++++----------
2 files changed, 74 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index 6a4eff1..f7c6cce 100644
--- a/README.md
+++ b/README.md
@@ -49,6 +49,24 @@ To load it automatically on Emacs startup add this to your
init file:
(load-theme 'monokai t)
```
+## Customization
+
+Please see full list of variables in the `defcustom` section.
+
+i.e.:
+```lisp
+ (setq monokai-fg "#ABB2BF"
+ monokai-bg "#282C34"
+ monokai-blue "#61AFEF"
+ monokai-cyan "#56B6C2"
+ monokai-green "#98C379"
+ monokai-gray "#3E4451"
+ monokai-violet "#C678DD"
+ monokai-red "#E06C75"
+ monokai-orange "#D19A66"
+ monokai-yellow "#E5C07B")
+```
+
# Bugs & Improvements
Please, report any problems that you find on the projects integrated
diff --git a/monokai-theme.el b/monokai-theme.el
index 527f7c9..3c2391d 100644
--- a/monokai-theme.el
+++ b/monokai-theme.el
@@ -93,6 +93,62 @@ Also affects 'linum-mode' background."
:type 'number
:group 'monokai)
+;; Primary colors
+(defcustom monokai-yellow "#E6DB74"
+ "Primary colors - yellow"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-orange "#FD971F"
+ "Primary colors - orange"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-red "#F92672"
+ "Primary colors - red"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-magenta "#FD5FF0"
+ "Primary colors - magenta"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-blue "#66D9EF"
+ "Primary colors - blue"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-green "#A6E22E"
+ "Primary colors - green"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-cyan "#A1EFE4"
+ "Primary colors - cyan"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-violet "#AE81FF"
+ "Primary colors - violet"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-gray "#3E3D31"
+ "Primary colors - gray"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-fg "#F8F8F2"
+ "Adaptive colors - foreground"
+ :type 'string
+ :group 'monokai)
+
+(defcustom monokai-bg "#272822"
+ "Adaptive colors - background"
+ :type 'string
+ :group 'monokai)
+
(let* (;; Variable pitch
(monokai-pitch (if monokai-use-variable-pitch
'variable-pitch
@@ -100,16 +156,6 @@ Also affects 'linum-mode' background."
;; Definitions for guis that support 256 colors
(class '((class color) (min-colors 257)))
- ;; Primary colors
- (monokai-yellow "#E6DB74")
- (monokai-orange "#FD971F")
- (monokai-red "#F92672")
- (monokai-magenta "#FD5FF0")
- (monokai-violet "#AE81FF")
- (monokai-blue "#66D9EF")
- (monokai-cyan "#A1EFE4")
- (monokai-green "#A6E22E")
- (monokai-gray "#3E3D31")
;; Darker and lighter accented colors
(monokai-yellow-d "#BEB244")
(monokai-yellow-l "#FFF7A8")
@@ -130,8 +176,6 @@ Also affects 'linum-mode' background."
(monokai-gray-d "#35331D")
(monokai-gray-l "#7B7962")
;; Adaptive colors
- (monokai-fg "#F8F8F2")
- (monokai-bg "#272822")
(monokai-highlight-line "#49483E")
(monokai-highlight "#FFB269")
(monokai-emph "#F8F8F0")
- [nongnu] elpa/monokai-theme 97a4623 082/207: Namespace all colour variables, (continued)
- [nongnu] elpa/monokai-theme 97a4623 082/207: Namespace all colour variables, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 602f68f 091/207: Move diff-hl to alphabetical position, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme b99b4a5 101/207: Add binding to terminal class for diary face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 03f7684 098/207: Add git-timemachine face, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme a04e95c 097/207: Update git-gutter faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 8683dce 105/207: Merge pull request #49 from tejasbubane/add-badges, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme b3f3e76 096/207: Add evil-ex-substitute faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 99c5842 102/207: Update helm faces (finally!), ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 92235b1 116/207: Rename fringe variable and remove high-contrast option, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme acb21a0 118/207: Add swiper faces, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme b555826 131/207: Expose primary, background and foreground colors,
ELPA Syncer <=
- [nongnu] elpa/monokai-theme 241f7a2 155/207: Merge pull request #69 from fap-/68-adoc-mode-barely-readable, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 2e89bf7 162/207: Correct fringe 256 colors, add more defs, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 65970ea 143/207: Rename some core variables, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 7364418 167/207: Change pos-tip color., ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 5a3fa99 194/207: Merge pull request #91 from seagle0128/master, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme bb5cbbd 186/207: Update version number, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 9d28eff 199/207: Better colors for smerge and ediff, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme e4add60 195/207: Add license file, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme 2e987cf 019/207: Merge pull request #9 from nhessler/fix-autoload, ELPA Syncer, 2021/10/21
- [nongnu] elpa/monokai-theme b558b2f 013/207: Add 256 color support for terminals using "emacs -nw" using approximate colors. Reformat the code. Leave background color for terminals to "nil" which uses the default terminal backgroundcolor., ELPA Syncer, 2021/10/21