MTF4-extended-theme.el 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. ;;; themes/MTF4-extended-theme.el -*- lexical-binding: t; -*-
  2. ;; MTF4-extended-theme.el
  3. ;; A brighter, high-contrast light theme based on MTF4 with extended color palette
  4. (deftheme MTF4-extended
  5. "A brighter, high-contrast light theme with extended color palette based on MTF4.")
  6. (let (
  7. ;; Core colors - Bright high-contrast palette
  8. (bg-primary "#FFFFFF")
  9. (bg-secondary "#F8F9FA")
  10. (bg-tertiary "#F0F0F0")
  11. (bg-highlight "#E0E0FF")
  12. (bg-region "#C0C0FF")
  13. (fg-primary "#202020")
  14. (fg-secondary "#444444")
  15. (fg-tertiary "#666666")
  16. (fg-comment "#8D8D84")
  17. ;; Syntax colors - Bright and distinct
  18. (syntax-magenta "#EF89DF")
  19. (syntax-blue "#508AE0")
  20. (syntax-purple "#6434A3")
  21. (syntax-green "#88D26E")
  22. (syntax-teal "#008080")
  23. (syntax-red "#FF6B6B")
  24. (syntax-orange "#FFB347")
  25. (syntax-cyan "#89DAFF")
  26. ;; UI colors
  27. (ui-cursor "#6434A3") ; Purple cursor for visibility
  28. (ui-fringe "#F8F9FA") ; Subtle fringe
  29. (ui-mode-line "#508AE0") ; Bright blue mode line
  30. (ui-mode-line-inactive "#C0C0C0")
  31. (ui-search "#C0FFC0") ; Bright green search
  32. (ui-search-fail "#FFC0C0") ; Bright red for failed search
  33. )
  34. (custom-theme-set-faces
  35. 'MTF4-extended
  36. ;; Basic faces - High contrast foundation
  37. `(default ((t (:background ,bg-primary :foreground ,fg-primary))))
  38. `(cursor ((t (:background ,ui-cursor))))
  39. `(fringe ((t (:background ,ui-fringe))))
  40. `(hl-line ((t (:background ,bg-highlight))))
  41. `(highlight ((t (:background ,bg-highlight))))
  42. `(region ((t (:background ,bg-region :foreground ,fg-primary))))
  43. `(secondary-selection ((t (:background ,syntax-cyan :foreground ,fg-primary))))
  44. `(lazy-highlight ((t (:background ,ui-search :foreground ,fg-primary))))
  45. ;; Mode line - Bright and clear
  46. `(mode-line ((t (:foreground "white" :background ,ui-mode-line :box nil))))
  47. `(mode-line-inactive ((t (:foreground ,fg-primary :background ,ui-mode-line-inactive :box nil))))
  48. `(mode-line-buffer-id ((t (:foreground "white" :weight bold))))
  49. `(mode-line-emphasis ((t (:foreground "white" :weight bold))))
  50. `(mode-line-highlight ((t (:foreground "white"))))
  51. ;; Syntax highlighting - Bright, distinct colors
  52. `(font-lock-builtin-face ((t (:foreground ,syntax-purple))))
  53. `(font-lock-comment-face ((t (:foreground ,fg-comment :slant italic))))
  54. `(font-lock-comment-delimiter-face ((t (:foreground ,fg-comment))))
  55. `(font-lock-constant-face ((t (:foreground ,syntax-magenta))))
  56. `(font-lock-doc-face ((t (:foreground ,syntax-green))))
  57. `(font-lock-function-name-face ((t (:foreground ,syntax-blue))))
  58. `(font-lock-keyword-face ((t (:foreground ,syntax-purple :weight bold))))
  59. `(font-lock-string-face ((t (:foreground ,syntax-teal))))
  60. `(font-lock-type-face ((t (:foreground ,syntax-green))))
  61. `(font-lock-variable-name-face ((t (:foreground ,syntax-orange))))
  62. `(font-lock-preprocessor-face ((t (:foreground ,syntax-purple))))
  63. `(font-lock-warning-face ((t (:foreground ,syntax-red :weight bold))))
  64. `(font-lock-error-face ((t (:foreground ,syntax-red :weight bold))))
  65. ;; Search and matching
  66. `(isearch ((t (:background ,ui-search :foreground ,fg-primary))))
  67. `(isearch-fail ((t (:background ,ui-search-fail :foreground ,fg-primary))))
  68. `(match ((t (:background ,syntax-green :foreground ,bg-primary))))
  69. ;; Minibuffer
  70. `(minibuffer-prompt ((t (:foreground ,syntax-blue :weight bold))))
  71. ;; Line numbers
  72. `(line-number ((t (:foreground ,fg-comment :background ,bg-secondary))))
  73. `(line-number-current-line ((t (:foreground ,syntax-blue :background ,bg-tertiary :weight bold))))
  74. ;; Diff
  75. `(diff-added ((t (:background "#E0FFE0" :foreground ,syntax-green))))
  76. `(diff-removed ((t (:background "#FFE0E0" :foreground ,syntax-red))))
  77. `(diff-changed ((t (:background "#FFFFE0" :foreground ,syntax-orange))))
  78. ;; Whitespace
  79. `(whitespace-line ((t (:foreground ,syntax-red :background "#FFFF88"))))
  80. `(whitespace-tab ((t (:foreground "#E0E0E0" :background "white"))))
  81. `(whitespace-hspace ((t (:foreground "#E0E0E0"))))
  82. ;; Links
  83. `(link ((t (:foreground ,syntax-blue :underline t))))
  84. `(link-visited ((t (:foreground ,syntax-purple :underline t))))
  85. ;; Org-mode
  86. `(org-level-1 ((t (:foreground ,syntax-purple :weight bold :height 1.2))))
  87. `(org-level-2 ((t (:foreground ,syntax-blue :weight bold))))
  88. `(org-level-3 ((t (:foreground ,syntax-magenta :weight bold))))
  89. `(org-done ((t (:foreground ,syntax-green :weight bold))))
  90. `(org-todo ((t (:foreground ,syntax-red :weight bold))))
  91. `(org-date ((t (:foreground ,syntax-teal))))
  92. `(org-block ((t (:background ,bg-secondary :foreground ,fg-primary))))
  93. `(org-code ((t (:foreground ,syntax-orange))))
  94. ;; Terminal compatibility
  95. `(term-color-black ((t (:foreground ,fg-primary :background ,fg-primary))))
  96. `(term-color-red ((t (:foreground ,syntax-red :background ,syntax-red))))
  97. `(term-color-green ((t (:foreground ,syntax-green :background ,syntax-green))))
  98. `(term-color-yellow ((t (:foreground ,syntax-orange :background ,syntax-orange))))
  99. `(term-color-blue ((t (:foreground ,syntax-blue :background ,syntax-blue))))
  100. `(term-color-magenta ((t (:foreground ,syntax-magenta :background ,syntax-magenta))))
  101. `(term-color-cyan ((t (:foreground ,syntax-teal :background ,syntax-teal))))
  102. `(term-color-white ((t (:foreground ,bg-primary :background ,bg-primary))))
  103. ;; Company (autocompletion)
  104. `(company-tooltip ((t (:background ,bg-secondary :foreground ,fg-primary))))
  105. `(company-tooltip-selection ((t (:background ,syntax-blue :foreground "white"))))
  106. `(company-tooltip-common ((t (:foreground ,syntax-purple))))
  107. `(company-scrollbar-bg ((t (:background ,bg-tertiary))))
  108. `(company-scrollbar-fg ((t (:background ,fg-comment))))
  109. ;; Ivy/Helm
  110. `(ivy-current-match ((t (:background ,syntax-blue :foreground "white"))))
  111. `(ivy-minibuffer-match-face-1 ((t (:foreground ,fg-tertiary))))
  112. `(ivy-minibuffer-match-face-2 ((t (:foreground ,syntax-purple :weight bold))))
  113. `(ivy-minibuffer-match-face-3 ((t (:foreground ,syntax-magenta))))
  114. `(ivy-minibuffer-match-face-4 ((t (:foreground ,syntax-green))))
  115. ;; Dired
  116. `(dired-directory ((t (:foreground ,syntax-blue :weight bold))))
  117. `(dired-flagged ((t (:foreground ,syntax-red))))
  118. `(dired-symlink ((t (:foreground ,syntax-magenta))))
  119. ))
  120. (provide-theme 'MTF4-extended)