-._protesilaos-s-_ef_themes_.-/ef-night-theme.el

166 lines
4.7 KiB
EmacsLisp
Raw Permalink Normal View History

2022-08-15 06:09:28 +02:00
;;; ef-night-theme.el --- Legible dark theme -*- lexical-binding:t -*-
2022-08-14 06:28:31 +02:00
;; 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
;; Version: 0.1.0
2022-08-14 06:28:31 +02:00
;; Package-Requires: ((emacs "28.1"))
;; 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:
;;
2022-08-16 00:06:59 +02:00
;; 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).
2022-08-14 06:28:31 +02:00
;;; Code:
(eval-and-compile
(require 'ef-themes)
2022-08-15 06:09:28 +02:00
(deftheme ef-night "Legible dark theme.")
2022-08-14 06:28:31 +02:00
(defconst ef-night-palette
'(;; Basic tones
2022-08-16 00:21:20 +02:00
(bg-main "#000e17")
(fg-main "#afbcbf")
(bg-dim "#0f1b29")
2022-08-16 06:20:04 +02:00
(fg-dim "#70819f")
2022-08-16 00:21:20 +02:00
(bg-alt "#1a2a2f")
2022-08-16 06:36:18 +02:00
(fg-alt "#b0a0a0")
2022-08-14 06:28:31 +02:00
;; Basic hues for foreground values
2022-08-15 15:10:49 +02:00
(red "#ef656a")
(red-warmer "#f47360")
(red-cooler "#ef798f")
(red-faint "#d56f72")
(green "#1fa526")
(green-warmer "#50a22f")
2022-08-16 22:24:37 +02:00
(green-cooler "#00a972")
2022-08-15 15:10:49 +02:00
(green-faint "#61a06c")
(yellow "#c48502")
(yellow-warmer "#e6832f")
(yellow-cooler "#df8f6f")
(yellow-faint "#cf9f7f")
(blue "#379cf6")
(blue-warmer "#6a88ff")
(blue-cooler "#029fff")
(blue-faint "#7a94df")
(magenta "#d570af")
(magenta-warmer "#e580ea")
(magenta-cooler "#af8aff")
(magenta-faint "#c59faf")
(cyan "#4fb0cf")
(cyan-warmer "#6fafff")
(cyan-cooler "#3dc0b0")
(cyan-faint "#92b4df")
2022-08-14 06:28:31 +02:00
;; Basic hues for background values
2022-08-16 00:21:20 +02:00
(bg-red "#cd2f30")
(bg-green "#20a020")
(bg-yellow "#904f30")
(bg-blue "#2f439f")
(bg-magenta "#c040cf")
(bg-cyan "#027080")
2022-08-14 06:28:31 +02:00
;; Diffs
2022-08-17 09:14:54 +02:00
(bg-added "#002d1f")
(bg-added-faint "#001f18")
(bg-added-refine "#003b2f")
2022-08-14 06:28:31 +02:00
2022-08-17 09:14:54 +02:00
(bg-changed "#323200")
(bg-changed-faint "#292000")
(bg-changed-refine "#484700")
2022-08-14 06:28:31 +02:00
2022-08-17 09:14:54 +02:00
(bg-removed "#450f1f")
(bg-removed-faint "#2f060f")
(bg-removed-refine "#641426")
2022-08-14 06:28:31 +02:00
;; Special hues
2022-08-14 20:07:52 +02:00
(bg-mode-line "#003a7f") (fg-mode-line "#ceeeff")
(bg-accent "#ff9270") (fg-accent "#000000")
2022-08-14 06:44:19 +02:00
(bg-completion "#00314f")
2022-08-14 20:01:59 +02:00
(bg-hover "#6f345a")
(bg-hover-alt "#664f4a")
(bg-hl-line "#002255")
(bg-region "#222f40")
(bg-active "#28353f")
2022-08-14 18:27:19 +02:00
(bg-paren "#703350")
(bg-err "#331419") ; check with err
(bg-info "#00251f") ; check with info
2022-08-14 06:28:31 +02:00
2022-08-14 20:01:59 +02:00
(border "#34445a")
2022-08-17 05:33:14 +02:00
(cursor "#00ccaf")
2022-08-14 06:28:31 +02:00
(fg-intense "#ffffff")
;; Mappings
2022-08-14 20:58:28 +02:00
(err red)
2022-08-14 06:43:13 +02:00
(warning yellow-warmer)
2022-08-14 20:58:28 +02:00
(info green-cooler)
2022-08-14 06:28:31 +02:00
2022-08-14 20:59:04 +02:00
(link blue)
(link-alt magenta)
(date cyan)
2022-08-14 20:01:59 +02:00
(name blue-warmer)
2022-08-14 06:28:31 +02:00
(keybind blue-cooler)
2022-08-16 22:24:46 +02:00
(builtin green-cooler)
(comment yellow-faint)
(constant magenta-cooler)
(fnname cyan-cooler)
(keyword blue-warmer)
2022-08-14 06:28:31 +02:00
(preprocessor red-warmer)
(docstring cyan-faint)
2022-08-14 20:01:59 +02:00
(string blue-cooler)
(type magenta-cooler)
(variable cyan-warmer)
2022-08-14 06:28:31 +02:00
2022-08-14 20:59:04 +02:00
(accent-0 blue-cooler)
(accent-1 magenta-warmer)
(accent-2 cyan-cooler)
(accent-3 red-cooler)
2022-08-14 06:28:31 +02:00
2022-08-14 20:59:04 +02:00
(mail-0 blue)
(mail-1 magenta-warmer)
2022-08-14 06:28:31 +02:00
(mail-2 green-cooler)
2022-08-14 20:59:04 +02:00
(mail-3 yellow)
2022-08-14 06:28:31 +02:00
(mail-4 magenta-cooler)
2022-08-14 20:36:44 +02:00
(rainbow-0 cyan-warmer)
2022-08-14 06:28:31 +02:00
(rainbow-1 magenta-cooler)
2022-08-14 20:36:44 +02:00
(rainbow-2 yellow-cooler)
(rainbow-3 blue-warmer)
(rainbow-4 red)
(rainbow-5 green-cooler)
(rainbow-6 magenta)
(rainbow-7 cyan)
(rainbow-8 yellow))
2022-08-14 06:28:31 +02:00
"The `ef-night' palette.")
(ef-themes-theme ef-night ef-night-palette)
(provide-theme 'ef-night))
;;; ef-night-theme.el ends here