cutarv41-dark-theme.el 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. ;;; cutarv41-dark-theme.el --- A high-contrast dark theme for TUI Emacs -*- lexical-binding: t; no-byte-compile: t; -*-
  2. (deftheme cutarv41-dark
  3. "Inverted high-contrast dark theme optimized for TUI/Terminal Emacs.")
  4. (let ((class '((class color) (min-colors 89)))
  5. ;; --- Palette (Inverted from cutarv41) ---
  6. ;; Base UI
  7. (bg "#000000") ;; Deep dark background (Inverted from #f8f8ff)
  8. (fg "#ffffff") ;; Ghost white foreground (Inverted from #000000)
  9. (cursor "#ffffff") ;; Cursor bg
  10. (selection "#3e4481") ;; Muted blue selection (Adjusted from #aaafff for dark contrast)
  11. ;; ANSI Normal (Lightened for visibility on dark bg)
  12. (dark-blue "#4da6ff") ;; Lighter blue (Adjusted from #007cbf)
  13. (red "#ff6b6b") ;; Lighter red (Adjusted from #cf3f29)
  14. (medium-blue "#6da6ff") ;; Lighter blue (Adjusted from #2374de)
  15. (orange "#ffb347") ;; Lighter orange (Adjusted from #c75e10)
  16. (magenta "#d18ecb") ;; Lighter magenta (Adjusted from #b05197)
  17. (green "#8fbc8f") ;; Lighter green (Adjusted from #429e66)
  18. (cyan "#80daeb") ;; Lighter cyan (Adjusted from #129cc9)
  19. (purple "#c8a0f2") ;; Lighter purple (Adjusted from #a64dd6)
  20. ;; ANSI Bright (Retained from base as they are already light)
  21. (light-blue "#7cc9f2")
  22. (light-red "#f07b69")
  23. (accent-blue "#6f9ff2")
  24. (yellow "#f0b94a")
  25. (accent-pink "#EF89DF")
  26. (bright-green "#2cd45c")
  27. (bright-cyan "#11ddee")
  28. (light-purple "#c8a0f2"))
  29. (custom-theme-set-faces
  30. 'cutarv41-dark
  31. ;; --- Core UI ---
  32. `(default ((,class (:background ,bg :foreground ,fg))))
  33. `(cursor ((,class (:background ,bg :foreground ,bg))))
  34. `(fringe ((,class (:background ,bg :foreground ,dark-blue))))
  35. `(region ((,class (:background ,selection))))
  36. `(highlight ((,class (:background ,light-blue :foreground ,bg))))
  37. `(hl-line ((,class (:background ,dark-blue :extend t))))
  38. `(link ((,class (:foreground ,medium-blue :underline t))))
  39. `(link-visited ((,class (:foreground ,purple :underline t))))
  40. `(minibuffer-prompt ((,class (:foreground ,dark-blue :weight bold))))
  41. `(vertical-border ((,class (:foreground ,magenta))))
  42. ;; --- Syntax Highlighting (Font Lock) ---
  43. `(font-lock-comment-face ((,class (:foreground ,"#eef" :slant italic))))
  44. `(font-lock-comment-delimiter-face ((,class (:foreground ,bright-green :slant italic))))
  45. `(font-lock-keyword-face ((,class (:foreground ,medium-blue :weight bold))))
  46. `(font-lock-string-face ((,class (:foreground ,green))))
  47. `(font-lock-regexp-grouping-backslash ((,class (:foreground ,yellow))))
  48. `(font-lock-regexp-grouping-construct ((,class (:foreground ,light-red))))
  49. `(font-lock-function-name-face ((,class (:foreground ,cyan :weight bold))))
  50. `(font-lock-variable-name-face ((,class (:foreground ,medium-blue))))
  51. `(font-lock-type-face ((,class (:foreground ,purple))))
  52. `(font-lock-constant-face ((,class (:foreground ,light-red))))
  53. `(font-lock-builtin-face ((,class (:foreground ,orange))))
  54. `(font-lock-doc-face ((,class (:inherit font-lock-comment-face :foreground ,green))))
  55. `(font-lock-warning-face ((,class (:foreground ,light-red :weight bold))))
  56. `(font-lock-negation-char-face ((,class (:foreground ,red))))
  57. ;; --- Mode-line ---
  58. `(mode-line ((,class (:background ,accent-pink :foreground ,bg))))
  59. `(mode-line-inactive ((,class (:background ,light-blue :foreground ,fg :box (:line-width 1 :color ,accent-blue)))))
  60. `(mode-line-buffer-id ((,class (:weight bold))))
  61. `(mode-line-highlight ((,class (:box (:line-width 2 :color ,fg)))))
  62. ;; --- Search & Isearch ---
  63. `(isearch ((,class (:background ,yellow :foreground ,bg :weight bold))))
  64. `(isearch-fail ((,class (:background ,red :foreground ,fg))))
  65. `(lazy-highlight ((,class (:background ,orange :foreground ,bg))))
  66. ;; --- Line Numbers ---
  67. `(line-number ((,class (:foreground ,light-blue :background ,fg))))
  68. `(line-number-current-line ((,class (:foreground ,bg :background ,accent-pink :weight bold))))
  69. ;; --- Package Specifics ---
  70. ;; Doom Modeline
  71. `(doom-modeline-bar ((,class (:background ,accent-pink :foreground ,fg))))
  72. `(doom-modeline-buffer-file ((,class (:foreground ,fg :weight bold))))
  73. `(doom-modeline-buffer-path ((,class (:foreground ,fg :weight bold))))
  74. `(doom-modeline-buffer-modified ((,class (:foreground ,yellow :weight bold))))
  75. `(doom-modeline-debug ((,class (:foreground ,orange))))
  76. `(doom-modeline-info ((,class (:foreground ,green))))
  77. `(doom-modeline-warning ((,class (:foreground ,yellow))))
  78. `(doom-modeline-error ((,class (:foreground ,red))))
  79. ;; Org Mode
  80. `(org-level-1 ((,class (:foreground ,accent-pink :weight bold :height 1.2))))
  81. `(org-level-2 ((,class (:foreground ,accent-blue :weight bold :height 1.1))))
  82. `(org-level-3 ((,class (:foreground ,bright-green :weight bold))))
  83. `(org-level-4 ((,class (:foreground ,bright-cyan :weight bold))))
  84. `(org-level-5 ((,class (:foreground ,light-purple :weight bold))))
  85. `(org-todo ((,class (:foreground ,light-red :weight bold :box t))))
  86. `(org-done ((,class (:foreground ,bright-green :weight bold :box t))))
  87. `(org-date ((,class (:foreground ,medium-blue))))
  88. `(org-link ((,class (:foreground ,light-purple :underline t))))
  89. `(org-code ((,class (:foreground ,orange :background ,bg))))
  90. `(org-block ((,class (:background ,bg :foreground ,fg :extend t))))
  91. `(org-block-begin-line ((,class (:foreground ,dark-blue :background ,bg :extend t))))
  92. ;; Magit
  93. `(magit-branch-local ((,class (:foreground ,cyan :weight bold))))
  94. `(magit-branch-remote ((,class (:foreground ,green :weight bold))))
  95. `(magit-hash ((,class (:foreground ,dark-blue))))
  96. `(magit-item-highlight ((,class (:background ,selection))))
  97. `(magit-diff-added ((,class (:foreground ,bright-green :background unspecified))))
  98. `(magit-diff-removed ((,class (:foreground ,light-red :background unspecified))))
  99. `(magit-diff-context-highlight ((,class (:background ,dark-blue :foreground ,fg))))
  100. `(magit-section-heading ((,class (:foreground ,bright-cyan :weight bold :underline t))))
  101. ;; Tree-sitter
  102. `(tree-sitter-hl-face:function.call ((,class (:foreground ,accent-pink))))
  103. `(tree-sitter-hl-face:method.call ((,class (:foreground ,accent-pink))))
  104. `(tree-sitter-hl-face:type ((,class (:foreground ,cyan))))
  105. `(tree-sitter-hl-face:property ((,class (:foreground ,light-blue))))
  106. `(tree-sitter-hl-face:parameter ((,class (:foreground ,orange))))
  107. `(tree-sitter-hl-face:escape ((,class (:foreground ,light-red))))
  108. ;; Flycheck / LSP
  109. `(flycheck-error ((,class (:underline (:style wave :color ,red)))))
  110. `(flycheck-warning ((,class (:underline (:style wave :color ,orange)))))
  111. `(flycheck-info ((,class (:underline (:style wave :color ,medium-blue)))))
  112. `(lsp-face-highlight-textual ((,class (:background ,selection))))
  113. ;; Dashboard
  114. `(doom-dashboard-menu-desc ((,class (:foreground ,accent-blue))))
  115. `(doom-dashboard-banner ((,class (:foreground ,accent-pink))))
  116. ;; Misc
  117. `(show-paren-match ((,class (:background ,accent-blue :foreground ,bg :weight bold))))
  118. `(show-paren-mismatch ((,class (:background ,red :foreground ,fg :weight bold))))
  119. `(success ((,class (:foreground ,green))))
  120. `(error ((,class (:foreground ,red :weight bold))))
  121. `(warning ((,class (:foreground ,orange))))
  122. `(header-line ((,class (:background ,dark-blue :foreground ,fg))))))
  123. ;;;###autoload
  124. (and load-file-name
  125. (boundp 'custom-theme-load-path)
  126. (add-to-list 'custom-theme-load-path
  127. (file-name-as-directory (file-name-directory load-file-name))))
  128. (provide-theme 'cutarv41-dark)
  129. ;;; cutarv41-dark-theme.el ends here