cutarv33-theme.el~ 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. ;;; cutarv33-theme.el --- A high-contrast dark theme with blue/pink accents -*- lexical-binding: t; no-byte-compile: t; -*-
  2. (deftheme cutarv33
  3. "High-contrast dark theme with blue/pink accents.
  4. Optimized for syntax highlighting and UI clarity based on the Custom Terminal palette.")
  5. (let ((class '((class color) (min-colors 89)))
  6. ;; --- BASE UI ---
  7. (bg "#f8f8ff") ;; Default background
  8. (fg "#000000") ;; Default foreground
  9. (cursor "#f8f8ff") ;; Cursor bg (matches `bg`; visibility depends on `cursor-type`)
  10. (selection "#f0b94a") ;; Region/selected text background
  11. ;;(selection-fg "#000000") ;; Region/selected text foreground
  12. ;; --- ANSI NORMAL ---
  13. (dark_blue "#007cbf" ) ;; Fringe, minibuffer prompts, function names, line numbers, inactive tab borders
  14. (red "#cf3f29" ) ;; Errors, negation chars, failed search (`isearch-fail`)
  15. (medium_blue "#2374de" ) ;; Keywords, active hyperlinks
  16. (orange "#c75e10" ) ;; Constants, lazy search highlights, debug indicators
  17. (magenta "#b05197" ) ;; Strings, variables, UI dividers (`vertical-border`)
  18. (green "#429e66" ) ;; Docstrings, comment delimiters, info/status indicators
  19. (cyan "#129cc9" ) ;; Types/Classes
  20. (purple "#a64dd6" ) ;; Built-ins, visited links
  21. ;; --- ANSI BRIGHT ---
  22. (light_blue "#7cc9f2") ;; Inactive mode-line/tabs background (shares hex with `selection`)
  23. (light_red "#f07b69") ;; Warnings, builtin, regex constructs
  24. (accent_blue "#6f9ff2") ;; (Currently unused in faces)
  25. (yellow "#f0b94a") ;; Active search (`isearch`), regex backslashes, modified buffer status, warnings
  26. (accent_pink "#EF89DF") ;; Active mode-line/tabs, modeline accent bar
  27. (bright_green "#2cd45c") ;; (Currently unused in faces)
  28. (bright_cyan "#17dbe6") ;; hl-line hl-tab
  29. (light_purple "#c8a0f2")) ;; (Currently unused in faces)
  30. (custom-theme-set-faces
  31. 'cutarv33
  32. ;; --- CORE UI ---
  33. `(default ((,class (:background ,bg :foreground ,fg))))
  34. `(cursor ((,class (:background ,bg :foreground ,bg))))
  35. `(fringe ((,class (:background ,bg :foreground ,dark_blue))))
  36. `(region ((,class (:background ,selection))))
  37. `(highlight ((,class (:background ,light_blue :foreground ,bg))))
  38. `(hl-line ((,class (:background ,light_purple :extend t)))) ;; Using dark_blue for line highlight dimness
  39. `(link ((,class (:foreground ,medium_blue :underline t))))
  40. `(link-visited ((,class (:foreground ,purple :underline t))))
  41. `(minibuffer-prompt ((,class (:foreground ,dark_blue :weight bold))))
  42. `(vertical-border ((,class (:foreground ,magenta)))) ;; "UI dividers"
  43. ;; --- SYNTAX HIGHLIGHTING (Font Lock) ---
  44. ;; Comments: ansi_0 (Dark Blue)
  45. `(font-lock-comment-face ((,class (:foreground ,green :slant italic))))
  46. `(font-lock-comment-delimiter-face ((,class (:foreground ,bright_green :slant italic))))
  47. ;; Keywords: ansi_7 (Purple)
  48. `(font-lock-keyword-face ((,class (:foreground ,medium_blue :weight bold))))
  49. ;; Strings: ansi_4 (Magenta)
  50. `(font-lock-string-face ((,class (:foreground ,magenta))))
  51. `(font-lock-regexp-grouping-backslash ((,class (:foreground ,yellow))))
  52. `(font-lock-regexp-grouping-construct ((,class (:foreground ,light_red))))
  53. ;; Functions: Using Accent Pink (ansi_12) for better visibility as "Primary Accent"
  54. `(font-lock-function-name-face ((,class (:foreground ,dark_blue :weight bold))))
  55. ;; Variables: Default foreground or slightly dimmed
  56. `(font-lock-variable-name-face ((,class (:foreground ,medium_blue))))
  57. ;; Types: ansi_6 (Cyan)
  58. `(font-lock-type-face ((,class (:foreground ,purple))))
  59. ;; Constants: ansi_3 (Orange)
  60. `(font-lock-constant-face ((,class (:foreground ,light_red))))
  61. `(font-lock-builtin-face ((,class (:foreground ,medium_blue)))) ;; Same as keywords usually
  62. ;; Doc & Warnings
  63. `(font-lock-doc-face ((,class (:inherit font-lock-comment-face :foreground ,green))))
  64. `(font-lock-warning-face ((,class (:foreground ,light_red :weight bold))))
  65. `(font-lock-negation-char-face ((,class (:foreground ,red))))
  66. ;; --- MODELINE (Tabs UI Mapping) ---
  67. ;; Active Tab: Accent Pink
  68. `(mode-line ((,class (:background ,accent_pink :foreground ,bg))))
  69. ;; Inactive Tab: Light Blue
  70. `(mode-line-inactive ((,class (:background ,light_blue :foreground ,fg :box (:line-width 1 :color ,accent_blue)))))
  71. `(mode-line-buffer-id ((,class (:weight bold))))
  72. `(mode-line-highlight ((,class (:box (:line-width 2 :color ,fg)))))
  73. ;; --- SEARCH & ISEARCH ---
  74. ;; Search Matches: Yellow (ansi_11)
  75. `(isearch ((,class (:background ,yellow :foreground ,bg :weight bold))))
  76. `(isearch-fail ((,class (:background ,red :foreground ,fg))))
  77. `(lazy-highlight ((,class (:background ,orange :foreground ,bg))))
  78. ;; --- LINE NUMBERS ---
  79. `(line-number ((,class (:foreground ,light_blue :background ,fg))))
  80. `(line-number-current-line ((,class (:foreground ,bg :background ,accent_pink :weight bold))))
  81. ;; --- DIY (Doom Emacs Specifics) ---
  82. `(doom-modeline-bar ((,class (:background ,accent_pink :foreground ,fg))))
  83. `(doom-modeline-buffer-file ((,class (:foreground ,fg :weight bold))))
  84. `(doom-modeline-buffer-path ((,class (:foreground ,fg :weight bold))))
  85. `(doom-modeline-buffer-modified ((,class (:foreground ,yellow :weight bold))))
  86. `(doom-modeline-debug ((,class (:foreground ,orange))))
  87. `(doom-modeline-info ((,class (:foreground ,green))))
  88. `(doom-modeline-warning ((,class (:foreground ,yellow))))
  89. `(doom-modeline-error ((,class (:foreground ,red))))
  90. ;; --- ORG MODE ---
  91. `(org-level-1 ((,class (:foreground ,accent_pink :weight bold :height 1.2))))
  92. `(org-level-2 ((,class (:foreground ,accent_blue :weight bold :height 1.1))))
  93. `(org-level-3 ((,class (:foreground ,bright_green :weight bold))))
  94. `(org-level-4 ((,class (:foreground ,bright_cyan :weight bold))))
  95. `(org-level-5 ((,class (:foreground ,light_purple :weight bold))))
  96. `(org-todo ((,class (:foreground ,light_red :weight bold :box t))))
  97. `(org-done ((,class (:foreground ,bright_green :weight bold :box t))))
  98. `(org-date ((,class (:foreground ,medium_blue))))
  99. `(org-link ((,class (:foreground ,light_purple :underline t)))) ;; "markdown links" -> light_purple
  100. `(org-code ((,class (:foreground ,orange :background ,bg))))
  101. `(org-block ((,class (:background ,bg :foreground ,fg :extend t))))
  102. `(org-block-begin-line ((,class (:foreground ,dark_blue :background ,bg :extend t))))
  103. ;; --- MAGIT / GIT ---
  104. `(magit-branch-local ((,class (:foreground ,cyan :weight bold))))
  105. `(magit-branch-remote ((,class (:foreground ,green :weight bold))))
  106. `(magit-hash ((,class (:foreground ,dark_blue))))
  107. `(magit-item-highlight ((,class (:background ,selection))))
  108. `(magit-diff-added ((,class (:foreground ,bright_green :background unspecified))))
  109. `(magit-diff-removed ((,class (:foreground ,light_red :background unspecified))))
  110. `(magit-diff-context-highlight ((,class (:background ,dark_blue :foreground ,fg))))
  111. `(magit-section-heading ((,class (:foreground ,bright_cyan :weight bold :underline t))))
  112. ;; --- TREE-SITTER ---
  113. `(tree-sitter-hl-face:function.call ((,class (:foreground ,accent_pink))))
  114. `(tree-sitter-hl-face:method.call ((,class (:foreground ,accent_pink))))
  115. `(tree-sitter-hl-face:type ((,class (:foreground ,cyan))))
  116. `(tree-sitter-hl-face:property ((,class (:foreground ,light_blue))))
  117. `(tree-sitter-hl-face:parameter ((,class (:foreground ,orange))))
  118. `(tree-sitter-hl-face:escape ((,class (:foreground ,light_red))))
  119. ;; --- FLYCHECK / LSP ---
  120. `(flycheck-error ((,class (:underline (:style wave :color ,red)))))
  121. `(flycheck-warning ((,class (:underline (:style wave :color ,orange)))))
  122. `(flycheck-info ((,class (:underline (:style wave :color ,medium_blue)))))
  123. `(lsp-face-highlight-textual ((,class (:background ,selection))))
  124. ;; --- DASHBOARD ---
  125. `(doom-dashboard-menu-desc ((,class (:foreground ,accent_blue))))
  126. `(doom-dashboard-banner ((,class (:foreground ,accent_pink))))
  127. ;; --- MISC ---
  128. `(show-paren-match ((,class (:background ,accent_blue :foreground ,bg :weight bold))))
  129. `(show-paren-mismatch ((,class (:background ,red :foreground ,fg :weight bold))))
  130. `(success ((,class (:foreground ,green))))
  131. `(error ((,class (:foreground ,red :weight bold))))
  132. `(warning ((,class (:foreground ,orange))))
  133. `(header-line ((,class (:background ,dark_blue :foreground ,fg))))))
  134. ;;;###autoload
  135. (and load-file-name
  136. (boundp 'custom-theme-load-path)
  137. (add-to-list 'custom-theme-load-path
  138. (file-name-as-directory (file-name-directory load-file-name))))
  139. (provide-theme 'cutarv33)
  140. ;;; cutarv33-theme.el ends here