cutarv42-theme.el 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. ;;; cutarv42-theme.el --- A high-contrast light theme with blue/pink accents -*- lexical-binding: t; no-byte-compile: t; -*-
  2. (deftheme cutarv42
  3. "A high-contrast light theme with blue/pink accents, optimized for clarity and syntax highlighting.")
  4. (let* (;; --- 1. Primitive Palette (Raw Colors) ---
  5. (pure-white "#f8f8ff")
  6. (pure-black "#010101")
  7. (deep-blue "#007cbf")
  8. (mid-blue "#2374de")
  9. (soft-pink "#ef89df")
  10. (deep-purple "#a64dd6")
  11. (raw-magenta "#b05197")
  12. (burnt-amber "#e58e40")
  13. (duck-blue "#007a94")
  14. (forest-green "#429e66")
  15. (bright-green "#2cd45c")
  16. (crimson-red "#cf3f29")
  17. (soft-red "#f07b69")
  18. (deep-orange "#ee7722")
  19. (light-blue "#7cc9f2")
  20. (light-grey "#f9f9f9")
  21. (mid-grey "#888888")
  22. (dark-grey "#444444")
  23. (faint-purple "#eeccee")
  24. ;; --- 2. Semantic Palette (Functional Roles) ---
  25. ;; Base UI
  26. (bg-main pure-white)
  27. (fg-main pure-black)
  28. (ui-accent soft-pink)
  29. (ui-hl-line faint-purple)
  30. (ui-selection light-blue)
  31. (ui-border raw-magenta)
  32. (ui-muted mid-grey)
  33. ;; Syntax Roles
  34. (syntax-keyword duck-blue)
  35. (syntax-string forest-green)
  36. (syntax-variable mid-blue)
  37. (syntax-type deep-purple)
  38. (syntax-constant burnt-amber)
  39. (syntax-builtin deep-orange)
  40. (syntax-comment "#666666") ;; Standard grey for comments
  41. (syntax-comment-d bright-green) ;; Delimiter color
  42. (syntax-function deep-blue)
  43. ;; Status / Feedback
  44. (status-error crimson-red)
  45. (status-warning soft-red)
  46. (status-info deep-orange)
  47. (status-success bright-green)
  48. (status-highlight deep-blue)
  49. ;; Theme Class
  50. (class '((class color) (min-colors 256))))
  51. (custom-theme-set-faces
  52. 'cutarv42
  53. ;; --- Core UI ---
  54. `(default ((,class (:background ,bg-main :foreground ,fg-main))))
  55. `(cursor ((,class (:background ,bg-main :foreground ,bg-main))))
  56. `(fringe ((,class (:background ,bg-main :foreground ,status-highlight))))
  57. `(region ((,class (:background ,ui-accent))))
  58. `(highlight ((,class (:background ,ui-selection :foreground ,bg-main))))
  59. `(hl-line ((,class (:background ,ui-hl-line :extend t))))
  60. `(link ((,class (:foreground ,syntax-keyword :underline t))))
  61. `(link-visited ((,class (:foreground ,syntax-type :underline t))))
  62. `(minibuffer-prompt ((,class (:foreground ,status-highlight :weight bold))))
  63. `(vertical-border ((,class (:foreground ,ui-border))))
  64. ;; --- Syntax Highlighting (Font Lock) ---
  65. `(font-lock-comment-face ((,class (:foreground ,syntax-comment :slant italic))))
  66. `(font-lock-doc-face ((,class (:inherit font-lock-comment-face))))
  67. `(font-lock-comment-delimiter-face ((,class (:foreground ,syntax-comment-d :slant italic))))
  68. `(font-lock-string-face ((,class (:foreground ,syntax-string))))
  69. `(font-lock-type-face ((,class (:foreground ,syntax-type))))
  70. `(font-lock-keyword-face ((,class (:foreground ,syntax-keyword :weight bold))))
  71. `(font-lock-function-name-face ((,class (:foreground ,syntax-function :weight bold))))
  72. `(font-lock-variable-name-face ((,class (:foreground ,syntax-variable))))
  73. `(font-lock-constant-face ((,class (:foreground ,syntax-constant))))
  74. `(font-lock-builtin-face ((,class (:foreground ,syntax-builtin))))
  75. `(font-lock-warning-face ((,class (:foreground ,status-warning :weight bold))))
  76. `(font-lock-negation-char-face ((,class (:foreground ,status-error))))
  77. `(font-lock-regexp-grouping-backslash ((,class (:foreground ,status-info))))
  78. `(font-lock-regexp-grouping-construct ((,class (:inherit font-lock-constant-face))))
  79. ;; --- Mode-line ---
  80. `(mode-line ((,class (:background ,ui-accent :foreground ,bg-main))))
  81. `(mode-line-inactive ((,class (:background ,ui-selection :foreground ,fg-main))))
  82. ;:box (:line-width 1 :color ,syntax-keyword)
  83. ;; --- Search & Isearch ---
  84. `(isearch ((,class (:inherit hl-line))))
  85. `(isearch-fail ((,class (:inherit show-paren-mismatch))))
  86. `(lazy-highlight ((,class (:background ,status-info :foreground ,bg-main))))
  87. ;; --- Line Numbers ---
  88. `(line-number ((,class (:foreground ,fg-main :background ,ui-selection))))
  89. `(line-number-current-line ((,class (:inherit mode-line :weight bold))))
  90. ;; --- Package Specifics ---
  91. ;; Doom Modeline
  92. `(doom-modeline-bar ((,class (:background ,ui-accent :foreground ,fg-main))))
  93. `(doom-modeline-buffer-file ((,class (:foreground ,fg-main :weight bold))))
  94. `(doom-modeline-buffer-path ((,class (:foreground ,fg-main :weight bold))))
  95. `(doom-modeline-buffer-modified ((,class (:foreground ,status-info :weight bold))))
  96. `(doom-modeline-debug ((,class (:inherit font-lock-warning-face))))
  97. `(doom-modeline-info ((,class (:inherit font-lock-delimiter-face))))
  98. `(doom-modeline-warning ((,class (:inherit font-lock-warning-face))))
  99. `(doom-modeline-error ((,class (:inherit error))))
  100. ;; Vertico / Marginalia
  101. `(vertico-current ((,class (:inherit line-number-current-line))))
  102. `(marginalia-documentation ((,class (:inherit font-lock-comment-face))))
  103. ;; Magit
  104. `(magit-branch-local ((,class (:foreground ,syntax-function :weight bold))))
  105. `(magit-branch-remote ((,class (:foreground ,syntax-string :weight bold))))
  106. `(magit-hash ((,class (:foreground ,status-highlight))))
  107. `(magit-item-highlight ((,class (:background ,ui-selection))))
  108. `(magit-diff-added ((,class (:foreground ,status-success :background unspecified))))
  109. `(magit-diff-removed ((,class (:foreground ,status-error :background unspecified))))
  110. `(magit-diff-context-highlight ((,class (:background ,status-highlight :foreground ,fg-main))))
  111. `(magit-section-heading ((,class (:foreground ,ui-selection :weight bold :underline t))))
  112. ;; Tree-sitter
  113. `(tree-sitter-hl-face:function.call ((,class (:foreground ,ui-accent))))
  114. `(tree-sitter-hl-face:method.call ((,class (:foreground ,ui-accent))))
  115. `(tree-sitter-hl-face:type ((,class (:foreground ,syntax-function))))
  116. `(tree-sitter-hl-face:property ((,class (:foreground ,ui-selection))))
  117. `(tree-sitter-hl-face:parameter ((,class (:foreground ,status-info))))
  118. `(tree-sitter-hl-face:escape ((,class (:foreground ,status-warning))))
  119. ;; Flycheck / LSP
  120. `(flycheck-error ((,class (:underline (:style wave :color ,status-error)))))
  121. `(flycheck-warning ((,class (:underline (:style wave :color ,status-info)))))
  122. `(flycheck-info ((,class (:underline (:style wave :color ,syntax-keyword)))))
  123. `(lsp-face-highlight-textual ((,class (:background ,ui-selection))))
  124. ;; Misc
  125. `(show-paren-match ((,class (:background ,syntax-keyword :foreground ,bg-main :weight bold))))
  126. `(show-paren-mismatch ((,class (:background ,status-error :foreground ,fg-main :weight bold))))
  127. `(success ((,class (:foreground ,status-success))))
  128. `(error ((,class (:foreground ,status-error :weight bold))))
  129. `(warning ((,class (:foreground ,status-warning))))
  130. `(header-line ((,class (:background ,status-highlight :foreground ,fg-main))))
  131. ;; Whitespace mode
  132. `(whitespace-indentation ((,class (:background ,ui-muted :foreground ,status-warning ))))
  133. `(whitespace-tab ((,class (:background ,light-grey :foreground ,syntax-constant))))
  134. `(whitespace-space ((,class (:background ,light-grey :foreground ,status-info))))
  135. `(whitespace-trailing ((,class (:background ,status-error :foreground ,status-info))))
  136. `(whitespace-line ((,class (:background ,light-grey))))
  137. ;; Org Mode
  138. `(org-level-1 ((,class (:foreground ,ui-accent :weight bold :height 1.2))))
  139. `(org-level-2 ((,class (:foreground ,syntax-keyword :weight bold :height 1.1))))
  140. `(org-level-3 ((,class (:foreground ,status-success :weight bold))))
  141. `(org-level-4 ((,class (:foreground ,ui-selection :weight bold))))
  142. `(org-level-5 ((,class (:foreground ,syntax-type :weight bold))))
  143. `(org-todo ((,class (:foreground ,status-warning :weight bold :box t))))
  144. `(org-done ((,class (:foreground ,status-success :weight bold :box t))))
  145. `(org-date ((,class (:foreground ,syntax-keyword))))
  146. `(org-link ((,class (:foreground ,syntax-type :underline t))))
  147. `(org-code ((,class (:foreground ,status-info :background ,bg-main))))
  148. `(org-block ((,class (:background ,bg-main :foreground ,fg-main :extend t))))
  149. `(org-block-begin-line ((,class (:foreground ,status-highlight :background ,bg-main :extend t))))
  150. `(rainbow-delimiters-depth-1-face ((,class (:foreground ,ui-selection :background ,light-grey))))
  151. ;`(rainbow-delimiters-depth-2-face ((,class (:foreground ,dark-grey :background ,ui-hl-line))))
  152. ))
  153. ;;;###autoload
  154. (and load-file-name
  155. (boundp 'custom-theme-load-path)
  156. (add-to-list 'custom-theme-load-path
  157. (file-name-as-directory (file-name-directory load-file-name))))
  158. (provide-theme 'cutarv42)
  159. ;;; cutarv41-theme.el ends here