From a84621b520597e0c682b7acd048dfd25ca2bd7f9 Mon Sep 17 00:00:00 2001 From: bh Date: Fri, 12 Dec 2025 22:35:33 +0800 Subject: Added Terafox Theme --- themes/terafox-emacs-theme.el | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 themes/terafox-emacs-theme.el (limited to 'themes/terafox-emacs-theme.el') diff --git a/themes/terafox-emacs-theme.el b/themes/terafox-emacs-theme.el new file mode 100644 index 0000000..40ed478 --- /dev/null +++ b/themes/terafox-emacs-theme.el @@ -0,0 +1,59 @@ +;; Terafox-inspired theme for Emacs +;; Based on the Terafox colorscheme from nightfox.nvim + +(deftheme terafox-emacs + "A dark theme inspired by Terafox colorscheme") + +;; Color palette - Terafox syntax with custom bg/fg +(let ((bg "#003636") ;; Keep your original dark teal bg + (fg "#8affff") ;; Keep original fg + ;; (bg-alt "#002626") ;; Darker variant + ;; (bg-alt "#002323") ;; Darker variant + (bg-alt "#004344") ;; Darker variant + (gray "#2f3239") + ;; Terafox syntax colors from tmTheme + (keyword "#ad5c7c") ;; Mauve - keywords + (string "#7aa4a1") ;; Muted cyan - strings + (number "#fda47f") ;; Peachy orange - numbers/constants + (function "#4d7d90") ;; Steel blue - functions + (type "#fda47f") ;; Peachy orange - types + (builtin "#e85c51") ;; Coral red - built-ins + (variable "#ad6771") ;; Dusty mauve - variables + (operator "#a1cdd8") ;; Light cyan - operators + (comment "#6a7c88") ;; Dark gray - comments + (cursor "#FFC600") ;; Keep your yellow cursor + (selection "#395e5e")) ;; Keep your teal selection + + (custom-theme-set-faces + 'terafox-emacs + + ;; Base faces + `(default ((t (:foreground ,fg :background ,bg)))) + `(cursor ((t (:background ,cursor)))) + `(region ((t (:background ,selection)))) + `(highlight ((t (:background ,bg-alt)))) + `(fringe ((t (:background ,bg)))) + `(vertical-border ((t (:foreground ,operator)))) + + ;; Font lock (syntax highlighting) + `(font-lock-builtin-face ((t (:foreground ,builtin)))) + `(font-lock-comment-face ((t (:foreground ,comment :slant italic)))) + `(font-lock-constant-face ((t (:foreground ,number)))) + `(font-lock-function-name-face ((t (:foreground ,function)))) + `(font-lock-keyword-face ((t (:foreground ,keyword)))) + `(font-lock-string-face ((t (:foreground ,string)))) + `(font-lock-type-face ((t (:foreground ,type)))) + `(font-lock-variable-name-face ((t (:foreground ,variable)))) + `(font-lock-warning-face ((t (:foreground ,builtin :weight bold)))) + + ;; Completions + `(completions-common-part ((t (:foreground ,operator)))) + `(completions-first-difference ((t (:foreground ,type :weight bold)))) + + ;; Treemacs + `(treemacs-directory-face ((t (:foreground "#74c4c4")))) + `(treemacs-directory-collapsed-face ((t (:foreground "#74c4c4")))) + `(treemacs-nerd-icons-file-face ((t (:foreground "#74c4c4")))) + `(treemacs-nerd-icons-root-face ((t (:foreground ,fg :weight bold)))))) + +(provide-theme 'terafox-emacs) -- cgit v1.2.3