camm4-theme.txt 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. ;;; camm4-theme.el --- A light theme based on the camm4 palette -*- lexical-binding: t; no-byte-compile: t; -*-
  2. (deftheme camm4
  3. "Light theme with a calm, readable palette.
  4. Core colours: blues (005FDB, 3B82F6, 007A8A, 40B7BF) and magenta (8A35B8, D33682).")
  5. (let ((class '((class color) (min-colors 89)))
  6. ;; Basic palette
  7. (camm4-bg "#fefcff")
  8. (camm4-fg "#101010")
  9. (camm4-cursor "#f04ceb")
  10. ;; ANSI colours (index 01-16)
  11. (camm4-black "#E6EEFF") ; 01 – very light blueish grey
  12. (camm4-red "#C82829") ; 02
  13. (camm4-green "#419722") ; 03
  14. (camm4-yellow "#F48925") ; 04
  15. (camm4-blue "#005FDB") ; 05 – core blue
  16. (camm4-magenta "#EF89DF") ; 06 – core purple
  17. (camm4-cyan "#007A8A") ; 07 – core teal/blue
  18. (camm4-white "#4D4D4C") ; 08 – dark grey
  19. (camm4-brblack "#e2ecff") ; 09
  20. (camm4-brred "#E53935") ; 10
  21. (camm4-brgreen "#22A653") ; 11
  22. (camm4-bryellow "#FFA200") ; 12
  23. (camm4-brblue "#3B82F6") ; 13 – core bright blue
  24. (camm4-brmagenta "#D33682") ; 14 – core bright magenta
  25. (camm4-brcyan "#40B7BF") ; 15 – core bright teal
  26. (camm4-brwhite "#1D1F21")) ; 16 – near black
  27. (custom-theme-set-faces
  28. 'camm4
  29. ;; Basic faces
  30. `(default ((,class (:background ,camm4-bg :foreground ,camm4-fg))))
  31. `(cursor ((,class (:background ,camm4-cursor))))
  32. `(fringe ((,class (:background ,camm4-bg :foreground ,camm4-white))))
  33. `(region ((,class (:background ,camm4-brblack :foreground ,camm4-fg))))
  34. `(highlight ((,class (:background ,camm4-brblack))))
  35. `(hl-line ((,class (:background ,camm4-brblack))))
  36. `(success ((,class (:foreground ,camm4-brgreen))))
  37. `(warning ((,class (:foreground ,camm4-bryellow))))
  38. `(error ((,class (:foreground ,camm4-brred :weight bold))))
  39. `(link ((,class (:foreground ,camm4-blue :underline t))))
  40. `(link-visited ((,class (:foreground ,camm4-magenta :underline t))))
  41. ;; Font lock (syntax highlighting)
  42. `(font-lock-builtin-face ((,class (:foreground ,camm4-cyan))))
  43. `(font-lock-comment-face ((,class (:foreground ,camm4-white :slant italic))))
  44. `(font-lock-comment-delimiter-face ((,class (:inherit font-lock-comment-face))))
  45. `(font-lock-constant-face ((,class (:foreground ,camm4-brblue))))
  46. `(font-lock-doc-face ((,class (:inherit font-lock-comment-face :foreground ,camm4-green))))
  47. `(font-lock-function-name-face ((,class (:foreground ,camm4-brmagenta :weight bold))))
  48. `(font-lock-keyword-face ((,class (:foreground ,camm4-blue :weight bold))))
  49. `(font-lock-negation-char-face ((,class (:foreground ,camm4-red))))
  50. `(font-lock-preprocessor-face ((,class (:foreground ,camm4-cyan))))
  51. `(font-lock-regexp-grouping-backslash ((,class (:foreground ,camm4-yellow))))
  52. `(font-lock-regexp-grouping-construct ((,class (:foreground ,camm4-red))))
  53. `(font-lock-string-face ((,class (:foreground ,camm4-red :weight semi-light))))
  54. `(font-lock-type-face ((,class (:foreground ,camm4-brcyan :weight normal))))
  55. `(font-lock-variable-name-face ((,class (:foreground ,camm4-magenta))))
  56. `(font-lock-warning-face ((,class (:foreground ,camm4-brred :weight bold))))
  57. ;; Mode line
  58. `(mode-line ((,class (:background ,camm4-black :foreground ,camm4-fg :box (:line-width 1 :color ,camm4-white)))))
  59. `(mode-line-inactive ((,class (:background ,camm4-brblack :foreground ,camm4-white :box (:line-width 1 :color ,camm4-brblack)))))
  60. `(mode-line-buffer-id ((,class (:weight bold :foreground ,camm4-brblue))))
  61. `(mode-line-emphasis ((,class (:weight bold))))
  62. `(mode-line-highlight ((,class (:box (:line-width 1 :color ,camm4-brblue)))))
  63. ;; Minibuffer, completion, etc.
  64. `(minibuffer-prompt ((,class (:foreground ,camm4-blue :weight bold))))
  65. `(completions-common-part ((,class (:foreground ,camm4-fg))))
  66. `(completions-first-difference ((,class (:foreground ,camm4-brred :weight bold))))
  67. ;; Search
  68. `(isearch ((,class (:background ,camm4-bryellow :foreground ,camm4-fg))))
  69. `(isearch-fail ((,class (:background ,camm4-red :foreground ,camm4-bg))))
  70. `(lazy-highlight ((,class (:background ,camm4-yellow :foreground ,camm4-fg :underline t))))
  71. ;; Line numbers
  72. `(line-number ((,class (:foreground ,camm4-white :background ,camm4-bg))))
  73. `(line-number-current-line ((,class (:foreground ,camm4-blue :weight bold :background ,camm4-brblack))))
  74. ;; Dired
  75. `(dired-header ((,class (:foreground ,camm4-blue :weight bold))))
  76. `(dired-directory ((,class (:foreground ,camm4-brblue :weight bold))))
  77. `(dired-symlink ((,class (:foreground ,camm4-cyan :slant italic))))
  78. ;; Org mode
  79. `(org-level-1 ((,class (:foreground ,camm4-brblue :weight bold :height 1.2))))
  80. `(org-level-2 ((,class (:foreground ,camm4-blue :weight bold :height 1.1))))
  81. `(org-level-3 ((,class (:foreground ,camm4-cyan :weight bold))))
  82. `(org-level-4 ((,class (:foreground ,camm4-magenta :weight bold))))
  83. `(org-level-5 ((,class (:foreground ,camm4-brcyan :weight bold))))
  84. `(org-level-6 ((,class (:foreground ,camm4-brmagenta :weight bold))))
  85. `(org-todo ((,class (:foreground ,camm4-brred :weight bold :box t))))
  86. `(org-done ((,class (:foreground ,camm4-brgreen :weight bold :box t))))
  87. `(org-date ((,class (:foreground ,camm4-brblue :underline t))))
  88. `(org-link ((,class (:foreground ,camm4-blue :underline t))))
  89. `(org-tag ((,class (:foreground ,camm4-white :weight normal))))
  90. ;; Markdown
  91. `(markdown-header-face-1 ((,class (:inherit org-level-1))))
  92. `(markdown-header-face-2 ((,class (:inherit org-level-2))))
  93. `(markdown-header-face-3 ((,class (:inherit org-level-3))))
  94. `(markdown-link-face ((,class (:inherit link))))
  95. `(markdown-url-face ((,class (:inherit link))))
  96. ;; Magit
  97. `(magit-branch-local ((,class (:foreground ,camm4-brblue :weight bold))))
  98. `(magit-branch-remote ((,class (:foreground ,camm4-cyan :weight bold))))
  99. `(magit-tag ((,class (:foreground ,camm4-bryellow :weight bold))))
  100. `(magit-hash ((,class (:foreground ,camm4-white))))
  101. `(magit-diff-added ((,class (:foreground ,camm4-brgreen))))
  102. `(magit-diff-removed ((,class (:foreground ,camm4-brred))))
  103. `(magit-diff-context ((,class (:foreground ,camm4-white))))
  104. `(magit-section-heading ((,class (:foreground ,camm4-blue :weight bold :background ,camm4-brblack))))
  105. `(magit-section-highlight ((,class (:background ,camm4-brblack))))
  106. ;; Tree‑sitter (if you use it)
  107. `(tree-sitter-hl-face:function.call ((,class (:foreground ,camm4-brmagenta))))
  108. `(tree-sitter-hl-face:function.builtin ((,class (:foreground ,camm4-cyan))))
  109. `(tree-sitter-hl-face:variable.builtin ((,class (:foreground ,camm4-magenta))))
  110. `(tree-sitter-hl-face:type ((,class (:foreground ,camm4-brcyan))))
  111. `(tree-sitter-hl-face:constant.builtin ((,class (:foreground ,camm4-brblue))))
  112. ;; LSP / Flycheck
  113. `(flycheck-error ((,class (:underline (:style wave :color ,camm4-brred)))))
  114. `(flycheck-warning ((,class (:underline (:style wave :color ,camm4-bryellow)))))
  115. `(flycheck-info ((,class (:underline (:style wave :color ,camm4-brblue)))))
  116. `(lsp-face-highlight-textual ((,class (:background ,camm4-brblack :underline t))))
  117. ;; Extra
  118. `(show-paren-match ((,class (:background ,camm4-brcyan :foreground ,camm4-bg :weight bold))))
  119. `(show-paren-mismatch ((,class (:background ,camm4-brred :foreground ,camm4-bg :weight bold))))
  120. `(match ((,class (:background ,camm4-yellow :foreground ,camm4-fg))))
  121. `(shadow ((,class (:foreground ,camm4-white))))
  122. `(secondary-selection ((,class (:background ,camm4-brblack))))
  123. `(trailing-whitespace ((,class (:background ,camm4-brred))))
  124. `(vertical-border ((,class (:foreground ,camm4-white))))
  125. `(widget-button ((,class (:foreground ,camm4-blue :weight bold))))
  126. `(widget-field ((,class (:background ,camm4-brblack))))
  127. ))
  128. ;;;###autoload
  129. (and load-file-name
  130. (boundp 'custom-theme-load-path)
  131. (add-to-list 'custom-theme-load-path
  132. (file-name-as-directory (file-name-directory load-file-name))))
  133. (provide-theme 'camm4)
  134. ;;; camm4-theme.el ends here