#cutarv41-theme.el# 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. ;;; cutarv41-theme.el --- A high-contrast light theme with blue/pink accents -*- lexical-binding: t; no-byte-compile: t; -*-
  2. (deftheme cutarv41
  3. "A high-contrast light theme with blue/pink accents, optimized for clarity and syntax highlighting.")
  4. (let ((class '((class color) (min-colors 256)))
  5. ;; --- Palette ---
  6. ;; Base UI
  7. (bg "#f8f8ff") ;; Default background
  8. (fg "#010101") ;; Default foreground
  9. (cursor "#f8f8ff") ;; Cursor bg
  10. (selection "#aaafff") ;; Region/selected text background
  11. ;; ANSI Normal
  12. (dark-blue "#007cbf") ;; Fringe, minibuffer prompts, function names, line numbers
  13. (red "#cf3f29") ;; Errors, negation chars
  14. (medium-blue "#2374de") ;; Keywords, active hyperlinks
  15. (orange "#c75e10") ;; Constants, debug indicators
  16. (magenta "#b05197") ;; Strings, variables, UI dividers
  17. (green "#429e66") ;; Docstrings, comment delimiters
  18. (cyan "#129cc9") ;; Types/Classes
  19. (purple "#a64dd6") ;; Built-ins, visited links
  20. ;; ANSI Bright
  21. (light-blue "#7cc9f2") ;; Inactive mode-line/tabs background
  22. (light-red "#f07b69") ;; Warnings, regex constructs
  23. (accent-blue "#6f9ff2") ;; Accents
  24. (yellow "#f0b94a") ;; Active search, warnings
  25. (accent-pink "#EF89DF") ;; Active mode-line/tabs
  26. (bright-green "#2cd45c") ;; Status indicators
  27. (bright-cyan "#11ddee") ;; hl-line hl-tab
  28. (light-purple "#cca0ff")) ;; Accents
  29. (custom-theme-set-faces
  30. 'cutarv41
  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 ,light-purple :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 ,"#666666" :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)
  129. ;;; cutarv41-theme.el ends here