emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/monokai-theme 22df342 132/207: Merge pull request #60 from


From: ELPA Syncer
Subject: [nongnu] elpa/monokai-theme 22df342 132/207: Merge pull request #60 from d1egoaz/expose_primary_colors
Date: Thu, 21 Oct 2021 18:07:47 -0400 (EDT)

branch: elpa/monokai-theme
commit 22df342186748078ba36336b7bed6acb253aee30
Merge: 02c5f5d b555826
Author: Kelvin Smith <onekelvinsmith@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #60 from d1egoaz/expose_primary_colors
    
    Expose foreground, background and primary 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]