[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ef-themes 832d9d609d: Add ef-cyprus theme
From: |
ELPA Syncer |
Subject: |
[elpa] externals/ef-themes 832d9d609d: Add ef-cyprus theme |
Date: |
Mon, 24 Oct 2022 07:57:41 -0400 (EDT) |
branch: externals/ef-themes
commit 832d9d609d3fd5ab6db260241712fd15e79ca39b
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add ef-cyprus theme
Read the announcement, which includes screenshots:
<https://protesilaos.com/codelog/2022-10-24-ef-cyprus-theme/>.
---
contrast-ratios.org | 65 +++++++++++++++++
ef-cyprus-theme.el | 200 ++++++++++++++++++++++++++++++++++++++++++++++++++++
ef-themes.el | 3 +-
3 files changed, 267 insertions(+), 1 deletion(-)
diff --git a/contrast-ratios.org b/contrast-ratios.org
index 03be6638e2..cc9882a623 100644
--- a/contrast-ratios.org
+++ b/contrast-ratios.org
@@ -164,6 +164,71 @@ C1 and C2 are color values written in hexadecimal RGB."
| #303230 | 9232 | 1.46 |
#+TBLFM: $2='(Δ $1 @1$1) :: $3='(Λ $1 @1$1);%.2f
+* ef-cyprus
+:PROPERTIES:
+:CUSTOM_ID: h:029a92c2-e4f5-4457-9eec-8a89dea471f4
+:END:
+
+** Base colours
+:PROPERTIES:
+:CUSTOM_ID: h:4330b001-f03b-470c-b255-b948e61cf41f
+:END:
+
+| Name | | #fcf7ef | #f0ece0 | #e5e3d8 | #f8f3ea |
+|----------------+---------+---------+---------+---------+---------|
+| fg-main | #242521 | 14.46 | 13.06 | 11.98 | 13.95 |
+| fg-dim | #59786f | 4.54 | 4.10 | 3.76 | 4.38 |
+| fg-alt | #7f475a | 6.67 | 6.02 | 5.53 | 6.44 |
+| red | #9f0d0f | 7.76 | 7.00 | 6.42 | 7.48 |
+| red-warmer | #dd0020 | 4.81 | 4.34 | 3.98 | 4.64 |
+| red-cooler | #ca3400 | 4.92 | 4.44 | 4.08 | 4.75 |
+| red-faint | #b05350 | 4.69 | 4.23 | 3.88 | 4.52 |
+| green | #006f00 | 6.01 | 5.43 | 4.98 | 5.80 |
+| green-warmer | #557400 | 5.07 | 4.58 | 4.20 | 4.89 |
+| green-cooler | #00824f | 4.57 | 4.13 | 3.79 | 4.41 |
+| green-faint | #4f654c | 5.97 | 5.39 | 4.95 | 5.76 |
+| yellow | #a7601f | 4.54 | 4.10 | 3.76 | 4.38 |
+| yellow-warmer | #bf4400 | 4.87 | 4.40 | 4.04 | 4.70 |
+| yellow-cooler | #a2604f | 4.56 | 4.11 | 3.77 | 4.40 |
+| yellow-faint | #8f6f4a | 4.34 | 3.92 | 3.59 | 4.18 |
+| blue | #375cc6 | 5.61 | 5.07 | 4.65 | 5.41 |
+| blue-warmer | #444fcf | 6.03 | 5.45 | 5.00 | 5.82 |
+| blue-cooler | #065fbf | 5.80 | 5.23 | 4.80 | 5.59 |
+| blue-faint | #4a659f | 5.39 | 4.87 | 4.46 | 5.20 |
+| magenta | #9a456f | 5.70 | 5.15 | 4.72 | 5.50 |
+| magenta-warmer | #bf456a | 4.61 | 4.16 | 3.82 | 4.44 |
+| magenta-cooler | #8448aa | 5.64 | 5.10 | 4.68 | 5.45 |
+| magenta-faint | #804f60 | 6.14 | 5.55 | 5.09 | 5.93 |
+| cyan | #1f70af | 4.93 | 4.45 | 4.08 | 4.76 |
+| cyan-warmer | #3f6faf | 4.80 | 4.33 | 3.97 | 4.63 |
+| cyan-cooler | #007a9f | 4.60 | 4.15 | 3.81 | 4.43 |
+| cyan-faint | #4f677f | 5.50 | 4.97 | 4.56 | 5.31 |
+#+TBLFM: $3='(Λ $2 @1$3);%.2f :: $4='(Λ $2 @1$4);%.2f :: $5='(Λ $2 @1$5);%.2f
:: $6='(Λ $2 @1$6);%.2f
+
+** Special colours against the modeline
+:PROPERTIES:
+:CUSTOM_ID: h:f623eb77-f128-40bd-b55d-6dacdb1fdda2
+:END:
+
+| Name | | #c0df6f |
+|------------------+---------+---------|
+| modeline-err | #950f0f | 5.96 |
+| modeline-warning | #7f00af | 5.56 |
+| modeline-info | #0040af | 5.96 |
+#+TBLFM: $3='(Λ $2 @1$3);%.2f
+
+** Distance and contrast between main backgrounds
+:PROPERTIES:
+:CUSTOM_ID: h:aec7096d-454b-4e06-abfd-e9d130c607c7
+:END:
+
+# bg-main / bg-dim, bg-main / bg-alt
+| #fcf7ef | distance | contrast |
+|---------+----------+----------|
+| #f0ece0 | 1379 | 1.11 |
+| #e5e3d8 | 4278 | 1.21 |
+#+TBLFM: $2='(Δ $1 @1$1) :: $3='(Λ $1 @1$1);%.2f
+
* ef-dark
:PROPERTIES:
:CUSTOM_ID: h:c97a3ebc-de07-40bf-af86-1df8be72f214
diff --git a/ef-cyprus-theme.el b/ef-cyprus-theme.el
new file mode 100644
index 0000000000..5fafe77a4e
--- /dev/null
+++ b/ef-cyprus-theme.el
@@ -0,0 +1,200 @@
+;;; ef-cyprus-theme.el --- Legible light theme with green, yellow, teal, red
colors -*- lexical-binding:t -*-
+
+;; Copyright (C) 2022 Free Software Foundation, Inc.
+
+;; Author: Protesilaos Stavrou <info@protesilaos.com>
+;; Maintainer: Ef-Themes Development <~protesilaos/ef-themes@lists.sr.ht>
+;; URL: https://git.sr.ht/~protesilaos/ef-themes
+;; Mailing-List: https://lists.sr.ht/~protesilaos/ef-themes
+;; Keywords: faces, theme, accessibility
+
+;; This file is 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:
+;;
+;; The `ef-themes' are a collection of light and dark themes for GNU
+;; Emacs whose goal is to provide colorful ("pretty") yet legible
+;; options for users who want something with a bit more flair than the
+;; `modus-themes' (also designed by me).
+
+;;; Code:
+
+
+
+(eval-and-compile
+ (require 'ef-themes)
+
+ (deftheme ef-cyprus "Legible light theme with green, yellow, teal, red
colors.")
+
+ (defconst ef-cyprus-palette
+ '(;; Basic tones
+ (bg-main "#fcf7ef")
+ (fg-main "#242521")
+ (bg-dim "#f0ece0")
+ (fg-dim "#59786f")
+ (bg-alt "#e5e3d8")
+ (fg-alt "#7f475a")
+
+ (bg-active "#d5d3c8")
+ (bg-inactive "#f8f3ea")
+
+ ;; Basic hues for foreground values
+ (red "#9f0d0f")
+ (red-warmer "#dd0020")
+ (red-cooler "#ca3400")
+ (red-faint "#b05350")
+ (green "#006f00")
+ (green-warmer "#557400")
+ (green-cooler "#00824f")
+ (green-faint "#4f654c")
+ (yellow "#a7601f")
+ (yellow-warmer "#bf4400")
+ (yellow-cooler "#a2604f")
+ (yellow-faint "#8f6f4a")
+ (blue "#375cc6")
+ (blue-warmer "#444fcf")
+ (blue-cooler "#065fbf")
+ (blue-faint "#4a659f")
+ (magenta "#9a456f")
+ (magenta-warmer "#bf456a")
+ (magenta-cooler "#8448aa")
+ (magenta-faint "#804f60")
+ (cyan "#1f70af")
+ (cyan-warmer "#3f6faf")
+ (cyan-cooler "#007a9f")
+ (cyan-faint "#4f677f")
+
+ ;; Basic hues for background values
+ (bg-red "#ff8f88")
+ (bg-green "#96df80")
+ (bg-yellow "#efbf00")
+ (bg-blue "#cfceff")
+ (bg-magenta "#df9fff")
+ (bg-cyan "#88cfd0")
+
+ (bg-red-subtle "#ffc6bf")
+ (bg-green-subtle "#c4f2af")
+ (bg-yellow-subtle "#f0f07f")
+ (bg-blue-subtle "#ccdfff")
+ (bg-magenta-subtle "#fad3ff")
+ (bg-cyan-subtle "#bfefff")
+
+ ;; Diffs
+ (bg-added "#d5f8d5")
+ (bg-added-faint "#e5ffe5")
+ (bg-added-refine "#c6e8c6")
+
+ (bg-changed "#ffdfa9")
+ (bg-changed-faint "#ffefbf")
+ (bg-changed-refine "#fac090")
+
+ (bg-removed "#ffd8d5")
+ (bg-removed-faint "#ffe9e9")
+ (bg-removed-refine "#f3b5af")
+
+ ;; Graphs
+ (red-graph-0-bg "#ef7969")
+ (red-graph-1-bg "#ffaab4")
+ (green-graph-0-bg "#4faa09")
+ (green-graph-1-bg "#8fef00")
+ (yellow-graph-0-bg "#ffcf00")
+ (yellow-graph-1-bg "#f9ff00")
+ (blue-graph-0-bg "#7090ff")
+ (blue-graph-1-bg "#9fc6ff")
+ (magenta-graph-0-bg "#e07fff")
+ (magenta-graph-1-bg "#fad0ff")
+ (cyan-graph-0-bg "#70d3f0")
+ (cyan-graph-1-bg "#afefff")
+
+ ;; Special hues
+ (bg-mode-line "#c0df6f") (fg-mode-line "#142010")
+ (bg-accent "#802000") (fg-accent "#ffffff")
+ (bg-completion "#e6e4bf")
+ (bg-hover "#efc26f")
+ (bg-hover-alt "#afc0f0")
+ (bg-hl-line "#f0e0d4")
+ (bg-region "#e0e7e5")
+ (bg-paren "#9fcfdf")
+ (bg-err "#ffd4bf") ; check with err
+ (bg-warning "#f0e8ba") ; check with warning
+ (bg-info "#d0efbf") ; check with info
+
+ (border "#c4c0b6")
+ (cursor "#007f00")
+ (fg-intense "#000000")
+
+ (modeline-err "#950f0f")
+ (modeline-warning "#7f00af")
+ (modeline-info "#0040af")
+
+ (underline-err "#ef0f1f")
+ (underline-warning "#bf5f00")
+ (underline-info "#02af5f")
+
+ ;; Mappings
+ (err red-warmer)
+ (warning yellow)
+ (info green)
+
+ (link yellow)
+ (link-alt cyan)
+ (date yellow-cooler)
+ (name green-warmer)
+ (keybind red)
+ (prompt green)
+
+ (builtin green-warmer)
+ (comment yellow-faint)
+ (constant green-cooler)
+ (fnname yellow)
+ (keyword green)
+ (preprocessor yellow-cooler)
+ (docstring cyan-faint)
+ (string red-cooler)
+ (type blue-warmer)
+ (variable cyan-cooler)
+
+ (rx-escape magenta-cooler) ; compare with `string'
+ (rx-construct cyan-cooler)
+
+ (accent-0 green)
+ (accent-1 red-cooler)
+ (accent-2 cyan-cooler)
+ (accent-3 yellow)
+
+ (mail-0 green-warmer)
+ (mail-1 yellow-cooler)
+ (mail-2 cyan)
+ (mail-3 green-cooler)
+ (mail-4 green)
+ (mail-5 red)
+
+ (rainbow-0 yellow)
+ (rainbow-1 green-warmer)
+ (rainbow-2 yellow-warmer)
+ (rainbow-3 cyan-warmer)
+ (rainbow-4 green-cooler)
+ (rainbow-5 magenta)
+ (rainbow-6 yellow-cooler)
+ (rainbow-7 cyan-cooler)
+ (rainbow-8 red))
+ "The `ef-cyprus' palette.")
+
+ (ef-themes-theme ef-cyprus ef-cyprus-palette)
+
+ (provide-theme 'ef-cyprus))
+
+;;; ef-cyprus-theme.el ends here
diff --git a/ef-themes.el b/ef-themes.el
index c0dee4bb59..b6c8e97ffb 100644
--- a/ef-themes.el
+++ b/ef-themes.el
@@ -57,7 +57,8 @@
;;; User options
(defconst ef-themes-light-themes
- '(ef-day
+ '(ef-cyprus
+ ef-day
ef-deuteranopia-light
ef-duo-light
ef-frost
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/ef-themes 832d9d609d: Add ef-cyprus theme,
ELPA Syncer <=