MTX16-theme.el 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ;;; themes/MTX16.el -*- lexical-binding: t; -*-
  2. ;; my-extended-theme.el
  3. ;; A high-contrast Emacs theme based on the extended color palette
  4. (deftheme MTX16 "A high-contrast theme with extended color palette")
  5. (let (
  6. ;; Base colors - High contrast neutrals
  7. (base00 "#eef0f0") ; Background
  8. (base01 "#F8F9FA") ; Lighter background (status bars, line numbers)
  9. (base02 "#F0F0F0") ; Selection background, current line
  10. (base03 "#BBBBBB") ; Comments, invisible
  11. (base04 "#8D8D84") ; Dark foreground (disabled)
  12. (base05 "#666666") ; Default foreground (less important)
  13. (base06 "#444444") ; Default foreground
  14. (base07 "#333333") ; Strong foreground (important text)
  15. (base08 "#FF6B6B") ; Red: errors, deleted
  16. (base09 "#FFB347") ; Orange: warnings
  17. (base0A "#88D26E") ; Green: success, strings
  18. (base0B "#9EBD6E") ; Light green: strings alt
  19. (base0C "#508AE0") ; Blue: functions, info
  20. (base0D "#6434A3") ; Purple: keywords, variables
  21. (base0E "#EF89DF") ; Magenta: constants, special
  22. (base0F "#A080CA") ; Light purple: operators
  23. ;; Additional GUI-specific enhancements
  24. (highlight "#CEF")
  25. (region "#7DF")
  26. (accent-strong "#508AE0")
  27. (accent-subtle "#BEEFFF")
  28. )
  29. (custom-theme-set-faces
  30. 'MTX16
  31. ;; Basic faces
  32. `(default ((t (:background ,base00 :foreground ,base07))))
  33. `(cursor ((t (:background ,base07))))
  34. `(fringe ((t (:background ,base01))))
  35. `(highlight ((t (:background ,highlight))))
  36. `(region ((t (:background ,region :foreground ,base07))))
  37. `(secondary-selection ((t (:background ,accent-subtle))))
  38. ;; Mode line
  39. `(mode-line ((t (:background ,base02 :foreground ,base07 :box nil))))
  40. `(mode-line-inactive ((t (:background ,base01 :foreground ,base04 :box nil))))
  41. `(mode-line-buffer-id ((t (:foreground ,base0D :weight bold))))
  42. ;; Font lock - syntax highlighting
  43. `(font-lock-comment-face ((t (:foreground ,base03 :slant italic))))
  44. `(font-lock-comment-delimiter-face ((t (:foreground ,base03))))
  45. `(font-lock-doc-face ((t (:foreground ,base04))))
  46. `(font-lock-string-face ((t (:foreground ,base0A))))
  47. `(font-lock-constant-face ((t (:foreground ,base0E))))
  48. `(font-lock-builtin-face ((t (:foreground ,base0F))))
  49. `(font-lock-type-face ((t (:foreground ,base0D))))
  50. `(font-lock-function-name-face ((t (:foreground ,base0C))))
  51. `(font-lock-variable-name-face ((t (:foreground ,base06))))
  52. `(font-lock-keyword-face ((t (:foreground ,base0D :weight bold))))
  53. `(font-lock-preprocessor-face ((t (:foreground ,base0F))))
  54. `(font-lock-warning-face ((t (:foreground ,base09 :weight bold))))
  55. ;; UI elements
  56. `(minibuffer-prompt ((t (:foreground ,base0C :weight bold))))
  57. `(link ((t (:foreground ,base0C :underline t))))
  58. `(link-visited ((t (:foreground ,base0E :underline t))))
  59. `(button ((t (:foreground ,base0C :underline t))))
  60. `(header-line ((t (:background ,base01 :foreground ,base07))))
  61. `(vertical-border ((t (:foreground ,base02))))
  62. ;; Search and matching
  63. `(isearch ((t (:background ,base0E :foreground ,base00 :weight bold))))
  64. `(isearch-fail ((t (:background ,base08))))
  65. `(lazy-highlight ((t (:background ,accent-subtle :foreground ,base07))))
  66. `(match ((t (:background ,base0A :foreground ,base00))))
  67. ;; Line numbers
  68. `(line-number ((t (:foreground ,base03 :background ,base01))))
  69. `(line-number-current-line ((t (:foreground ,base07 :background ,base02 :weight bold))))
  70. ;; Company (autocompletion)
  71. `(company-tooltip ((t (:background ,base01 :foreground ,base07))))
  72. `(company-tooltip-selection ((t (:background ,base0C :foreground ,base00))))
  73. `(company-tooltip-common ((t (:foreground ,base0D))))
  74. `(company-scrollbar-bg ((t (:background ,base02))))
  75. `(company-scrollbar-fg ((t (:background ,base04))))
  76. ;; Org-mode
  77. `(org-level-1 ((t (:foreground ,base0D :weight bold :height 1.2))))
  78. `(org-level-2 ((t (:foreground ,base0C :weight bold))))
  79. `(org-level-3 ((t (:foreground ,base0F :weight bold))))
  80. `(org-done ((t (:foreground ,base0A :weight bold))))
  81. `(org-todo ((t (:foreground ,base08 :weight bold))))
  82. `(org-date ((t (:foreground ,base0E))))
  83. `(org-special-keyword ((t (:foreground ,base03))))
  84. `(org-block ((t (:background ,base01 :foreground ,base06))))
  85. `(org-code ((t (:foreground ,base0B))))
  86. ;; Terminal specific adjustments
  87. `(term-color-black ((t (:foreground ,base00 :background ,base00))))
  88. `(term-color-red ((t (:foreground ,base08 :background ,base08))))
  89. `(term-color-green ((t (:foreground ,base0A :background ,base0A))))
  90. `(term-color-yellow ((t (:foreground ,base09 :background ,base09))))
  91. `(term-color-blue ((t (:foreground ,base0C :background ,base0C))))
  92. `(term-color-magenta ((t (:foreground ,base0E :background ,base0E))))
  93. `(term-color-cyan ((t (:foreground ,base0B :background ,base0B))))
  94. `(term-color-white ((t (:foreground ,base07 :background ,base07))))
  95. ;; Error and warning faces
  96. `(error ((t (:foreground ,base08 :weight bold))))
  97. `(warning ((t (:foreground ,base09 :weight bold))))
  98. `(success ((t (:foreground ,base0A :weight bold))))
  99. ;; Dired
  100. `(dired-directory ((t (:foreground ,base0C :weight bold))))
  101. `(dired-flagged ((t (:foreground ,base08))))
  102. `(dired-symlink ((t (:foreground ,base0E))))
  103. ;; Ivy/Helm (completion frameworks)
  104. `(ivy-current-match ((t (:background ,base0C :foreground ,base00))))
  105. `(ivy-minibuffer-match-face-1 ((t (:foreground ,base05))))
  106. `(ivy-minibuffer-match-face-2 ((t (:foreground ,base0D :weight bold))))
  107. `(ivy-minibuffer-match-face-3 ((t (:foreground ,base0E))))
  108. `(ivy-minibuffer-match-face-4 ((t (:foreground ,base0A))))
  109. ))
  110. ;; Provide the theme
  111. (provide-theme 'MTX16)