branch: externals/tempel
commit 4bc75c1aba67165fa6844a8088d3fafd5c562d68
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    Use the more subtle face colors from Modus
    
    Discussion in #6
    
    Co-authored-by: Protesilaos Stavrou <[email protected]>
---
 tempel.el | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/tempel.el b/tempel.el
index 3b7cf4da22..aef2a72c46 100644
--- a/tempel.el
+++ b/tempel.el
@@ -62,10 +62,20 @@
   "Annotation width for `tempel-expand'."
   :type '(choice (const nil integer)))
 
-(defface tempel-field '((t :inherit highlight))
+(defface tempel-field
+  '((((class color) (min-colors 88) (background light))
+     :background "#fdf0ff" :foreground "#541f4f" :underline "#d5baff")
+    (((class color) (min-colors 88) (background dark))
+     :background "#230631" :foreground "#e5cfef" :underline "#7042a2")
+    (t :inherit highlight))
   "Face used for fields.")
 
-(defface tempel-form '((t :inherit region))
+(defface tempel-form
+  '((((class color) (min-colors 88) (background light))
+     :background "#ecf7ed" :foreground "#004000" :underline "#5ada88")
+    (((class color) (min-colors 88) (background dark))
+     :background "#001904" :foreground "#b8e2b8" :underline "#006800")
+    (t :inherit region))
   "Face used for evaluated forms.")
 
 (defvar tempel--templates nil

Reply via email to