mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
ffd2a5c9ae
* doc/misc/modus-themes.org: (Overview): Document good support for cases with red-green color deficiency (deuteranopia). (Customization Options): Add code block with sample configuration. (Option for mode line presentation): Document new values. (Option for completion framework aesthetics): Reword statements. (Option for mail citations): Include new customization. (Option for line highlighting (hl-line-mode)): Change description of possible value. (Option for diff buffer looks): Update the meaning of 'fg-only', which now is an alias for 'fg-only-deuteranopia'. (Option for org-mode block styles): Rename possible values. (Cycle through arbitrary colors (DIY)): Include code samples for demo case. (Override colors (DIY)): Use correct symbol. (Override color saturation (DIY)): Show how to combine manual and automatic color overrides. (Update Org block delimiter fontification (DIY)): Provide example. (Load theme depending on time of day): Include missing "DIY" label. (Full support for packages or face groups): Update list with additions, removals. (Indirectly covered packages): Update list. (Notes for individual packages) (Note on dimmer.el) (Note on display-fill-column-indicator-mode) (Note on mmm-mode.el background colors) (Note on prism.el) (Note on ERC escaped color sequences) (Note on powerline or spaceline) (Note on Helm grep) (Note on EWW and Elfeed fonts (SHR fonts)): Stylistic change to the heading. (Note on inline Latex in Org buffers) (Note on god-mode.el): Add note. (Frequently Asked Questions (FAQ)): Include new section. (Acknowledgements): Update list of contributors (bug#48647). * etc/themes/modus-operandi-theme.el: Bump version number. * etc/themes/modus-themes.el: Add new defcustom forms and update existing ones, edit doc strings, remove old obsolete aliases, tweak internal functions, refine face specifications. * etc/themes/modus-vivendi-theme.el: Bump version number.
73 lines
2.6 KiB
EmacsLisp
73 lines
2.6 KiB
EmacsLisp
;;; modus-operandi-theme.el --- Accessible light theme (WCAG AAA) -*- lexical-binding:t -*-
|
||
|
||
;; Copyright (C) 2019-2021 Free Software Foundation, Inc.
|
||
|
||
;; Author: Protesilaos Stavrou <info@protesilaos.com>
|
||
;; URL: https://gitlab.com/protesilaos/modus-themes
|
||
;; Version: 1.4.0
|
||
;; Package-Requires: ((emacs "26.1"))
|
||
;; Keywords: faces, theme, accessibility
|
||
|
||
;; This file is part of GNU Emacs.
|
||
|
||
;; This program 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.
|
||
;;
|
||
;; This program 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 this program. If not, see <https://www.gnu.org/licenses/>.
|
||
|
||
;;; Commentary:
|
||
;;
|
||
;; Modus Operandi is the light variant of the Modus themes (Modus
|
||
;; Vivendi is the dark one). The themes are designed for color-contrast
|
||
;; accessibility. More specifically:
|
||
;;
|
||
;; 1. Provide a consistent minimum contrast ratio between background
|
||
;; and foreground values of 7:1 or higher. This meets the highest
|
||
;; such accessibility criterion per the guidelines of the Worldwide
|
||
;; Web Consortium's Working Group on Accessibility (WCAG AAA
|
||
;; standard).
|
||
;;
|
||
;; 2. Offer as close to full face coverage as possible. The list is
|
||
;; already quite long, with more additions to follow as part of the
|
||
;; ongoing development process.
|
||
;;
|
||
;; For a complete view of the project, also refer to the following files
|
||
;; (should be distributed in the same repository/directory as the
|
||
;; current item):
|
||
;;
|
||
;; - modus-themes.el (Main code shared between the themes)
|
||
;; - modus-vivendi-theme.el (Dark theme)
|
||
|
||
;;; 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 'modus-themes t))
|
||
(require 'modus-themes)))
|
||
|
||
(deftheme modus-operandi
|
||
"Accessible and customizable light theme (WCAG AAA standard).
|
||
Conforms with the highest legibility standard for color contrast
|
||
between background and foreground in any given piece of text,
|
||
which corresponds to a minimum contrast in relative luminance of
|
||
7:1.")
|
||
|
||
(modus-themes-theme modus-operandi)
|
||
|
||
(provide-theme 'modus-operandi)
|
||
|
||
;;; modus-operandi-theme.el ends here
|