branch: externals/doric-themes commit 27d028805e4dc9af50fd0bddf2cfab1702df4a7f Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Add doric-oak theme --- contrasts.org | 32 ++++++++++++++++++++++++ doric-oak-theme.el | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ doric-themes.el | 1 + 3 files changed, 106 insertions(+) diff --git a/contrasts.org b/contrasts.org index 17f70bcaae..52eb206770 100644 --- a/contrasts.org +++ b/contrasts.org @@ -174,6 +174,38 @@ C1 and C2 are color values written in hexadecimal RGB." | bg-accent | #e5d7c5 | 5503 | 1802 | 2196 | 15022 | 0 | #+TBLFM: $3='(Δ $2 @2$3) :: $4='(Δ $2 @2$4) :: $5='(Δ $2 @2$5) :: $6='(Δ $2 @2$6) :: $7='(Δ $2 @2$7) +** Doric Oak +:PROPERTIES: +:CUSTOM_ID: h:doric-oak +:END: + +| | | bg-main | bg-shadow-subtle | bg-neutral | bg-shadow-intense | bg-accent | +| Name | | #e0d8c7 | #d5c9b5 | #c2b19e | #b1bf88 | #b7d2b7 | +|-------------------+---------+---------+------------------+------------+-------------------+-----------| +| fg-main | #3a2018 | 10.59 | 9.18 | 7.20 | 7.63 | 9.23 | +| fg-shadow-subtle | #6b5225 | 5.18 | 4.50 | 3.52 | 3.73 | 4.52 | +| fg-neutral | #53402f | 6.92 | 6.00 | 4.70 | 4.98 | 6.03 | +| fg-shadow-intense | #3f5000 | 6.28 | 5.45 | 4.27 | 4.53 | 5.48 | +| fg-accent | #0f5720 | 6.16 | 5.34 | 4.19 | 4.44 | 5.37 | +|-------------------+---------+---------+------------------+------------+-------------------+-----------| +| fg-faint-red | #750000 | 8.44 | 7.32 | 5.74 | 6.08 | 7.35 | +| fg-faint-green | #056100 | 5.45 | 4.73 | 3.71 | 3.93 | 4.75 | +| fg-faint-yellow | #5f4602 | 6.27 | 5.44 | 4.26 | 4.52 | 5.46 | +| fg-faint-blue | #353362 | 8.23 | 7.13 | 5.59 | 5.93 | 7.17 | +| fg-faint-magenta | #553372 | 7.05 | 6.11 | 4.79 | 5.08 | 6.14 | +| fg-faint-cyan | #35485e | 6.61 | 5.74 | 4.50 | 4.77 | 5.77 | +#+TBLFM: $3='(Λ $2 @2$3);%.2f :: $4='(Λ $2 @2$4);%.2f :: $5='(Λ $2 @2$5);%.2f :: $6='(Λ $2 @2$6);%.2f :: $7='(Λ $2 @2$7);%.2f + +| | | bg-main | bg-shadow-subtle | bg-neutral | bg-shadow-intense | bg-accent | +| Name | | #e0d8c7 | #d5c9b5 | #c2b19e | #a5b47f | #b7d2b7 | +|-------------------+---------+---------+------------------+------------+-------------------+-----------| +| bg-main | #e0d8c7 | 0 | 1955 | 12383 | 26605 | 5453 | +| bg-shadow-subtle | #d5c9b5 | 1955 | 0 | 4513 | 14781 | 2853 | +| bg-neutral | #c2b19e | 12383 | 4513 | 0 | 4551 | 6148 | +| bg-shadow-intense | #a5b47f | 26605 | 14781 | 4551 | 0 | 11829 | +| bg-accent | #b7d2b7 | 5453 | 2853 | 6148 | 11829 | 0 | +#+TBLFM: $3='(Δ $2 @2$3) :: $4='(Δ $2 @2$4) :: $5='(Δ $2 @2$5) :: $6='(Δ $2 @2$6) :: $7='(Δ $2 @2$7) + ** Doric Wind :PROPERTIES: :CUSTOM_ID: h:doric-wind diff --git a/doric-oak-theme.el b/doric-oak-theme.el new file mode 100644 index 0000000000..5beca7b61d --- /dev/null +++ b/doric-oak-theme.el @@ -0,0 +1,73 @@ +;;; doric-oak-theme.el --- Minimalist light theme -*- lexical-binding:t -*- + +;; Copyright (C) 2025 Free Software Foundation, Inc. + +;; Author: Protesilaos Stavrou <i...@protesilaos.com> +;; Maintainer: Protesilaos Stavrou <i...@protesilaos.com> +;; URL: https://github.com/protesilaos/ef-themes +;; Keywords: faces, theme, accessibility + +;; This file is NOT part of GNU Emacs. + +;; GNU Emacs is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. +;; +;; GNU Emacs is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. +;; +;; You should have received a copy of the GNU General Public License +;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. + +;;; Commentary: +;; +;; A collection of highly legible, minimalist themes. If you want +;; something more colourful, use my `ef-themes'. For a "good default" +;; theme, try my `modus-themes'. +;; +;; The backronym of the `doric-themes' is: Doric Only Really +;; Intensifies Conservatively ... themes. + +;;; Code: + +(eval-and-compile + (unless (and (fboundp 'require-theme) + load-file-name + (equal (file-name-directory load-file-name) + (expand-file-name "themes/" data-directory)) + (require-theme 'doric-themes t)) + (require 'doric-themes)) + + (defvar doric-oak-palette + '((cursor "#497020") + (bg-main "#e0d8c7") + (fg-main "#3a2018") + (border "#8f9373") + + (bg-shadow-subtle "#d5c9b5") + (fg-shadow-subtle "#6b5225") + + (bg-neutral "#c2b19e") + (fg-neutral "#53402f") + + (bg-shadow-intense "#b1bf88") + (fg-shadow-intense "#3f5000") + + (bg-accent "#b7d2b7") + (fg-accent "#0f5420") + + (fg-faint-red "#750000") + (fg-faint-green "#056100") + (fg-faint-yellow "#5f4602") + (fg-faint-blue "#353362") + (fg-faint-magenta "#553372") + (fg-faint-cyan "#35485e")) + "Palette of `doric-oak' theme.") + + (doric-themes-define-theme doric-oak light)) + +(provide 'doric-oak-theme) +;;; doric-oak-theme.el ends here diff --git a/doric-themes.el b/doric-themes.el index d2e13cb559..fa632aa104 100644 --- a/doric-themes.el +++ b/doric-themes.el @@ -43,6 +43,7 @@ doric-earth doric-light doric-marble + doric-oak doric-wind) "Light themes.")