mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-04 22:50:59 -08:00
* doc/misc/modus-themes.org (COPYING): Reword to match the phrasing of other manuals that are distributed with Emacs. (Install from the archives) (Sample configuration for use-package) (Option for more bold constructs) (Option for more slanted constructs) (Option for syntax highlighting) (Option for no font mixing) (Option for links) (Option for command prompt styles) (Option for completion framework aesthetics) (Option for fringe visibility) (Option for language checkers) (Option for org-habit graph styles) (Option for line numbers (display-line-numbers-mode)) (Option for parenthesis matching (show-paren-mode)) (Option for diff buffer looks) (Option for scaled headings) (Option for variable-pitch font in UI elements) (Option for variable-pitch font in headings) (Case-by-case face specs using the themes' palette (DIY)) (Face specs at scale using the themes' palette (DIY)) (Font configurations for Org and others (DIY)) (Load theme depending on time of day): Minor markup changes for better texi output. (Option for mode line presentation): Document new possible values for 'modus-themes-mode-line'. (Option for line highlighting (hl-line-mode)): Document new 'modus-themes-hl-line' variable, which supersedes 'modus-themes-intense-hl-line'. (Option for active region): Document new possible values for 'modus-themes-region'. (Option for org-mode block styles): Cite variables that affect fontification. (Option for the headings' overall style): Include the option of a per-level nil value. (Remap face with local value (DIY)) (Override colors (DIY)): Add sections. (Full support for packages or face groups): Document newly supported packages (Note for dimmer.el) (Note for EWW and Elfeed fonts (SHR fonts)): Add notes. (Acknowledgements): Add names of new contributors. (GNU Free Documentation License): Add tags for html export. * etc/themes/modus-operandi-theme.el (File) * etc/themes/modus-vivendi-theme.el (File): Update to version 1.3.1 * etc/themes/modus-themes.el (modus-themes-operandi-colors) (modus-themes-vivendi-colors) (modus-theme-subtle-red) (modus-themes-subtle-red) (modus-theme-subtle-green) (modus-themes-subtle-green) (modus-theme-subtle-yellow) (modus-themes-subtle-yellow) (modus-theme-subtle-blue) (modus-themes-subtle-blue) (modus-theme-subtle-magenta) (modus-themes-subtle-magenta) (modus-theme-subtle-cyan) (modus-themes-subtle-cyan) (modus-theme-subtle-neutral) (modus-themes-subtle-neutral) (modus-theme-intense-red) (modus-themes-intense-red) (modus-theme-intense-green) (modus-themes-intense-green) (modus-theme-intense-yellow) (modus-themes-intense-yellow) (modus-theme-intense-blue) (modus-themes-intense-blue) (modus-theme-intense-magenta) (modus-themes-intense-magenta) (modus-theme-intense-cyan) (modus-themes-intense-cyan) (modus-theme-intense-neutral) (modus-themes-intense-neutral) (modus-theme-refine-red) (modus-themes-refine-red) (modus-theme-refine-green) (modus-themes-refine-green) (modus-theme-refine-yellow) (modus-themes-refine-yellow) (modus-theme-refine-blue) (modus-themes-refine-blue) (modus-theme-refine-magenta) (modus-themes-refine-magenta) (modus-theme-refine-cyan) (modus-themes-refine-cyan) (modus-theme-active-red) (modus-themes-active-red) (modus-theme-active-green) (modus-themes-active-green) (modus-theme-active-yellow) (modus-themes-active-yellow) (modus-theme-active-blue) (modus-themes-active-blue) (modus-theme-active-magenta) (modus-themes-active-magenta) (modus-theme-active-cyan) (modus-themes-active-cyan) (modus-theme-fringe-red) (modus-themes-fringe-red) (modus-theme-fringe-green) (modus-themes-fringe-green) (modus-theme-fringe-yellow) (modus-themes-fringe-yellow) (modus-theme-fringe-blue) (modus-themes-fringe-blue) (modus-theme-fringe-magenta) (modus-themes-fringe-magenta) (modus-theme-fringe-cyan) (modus-themes-fringe-cyan) (modus-theme-nuanced-red) (modus-theme-nuanced-green) (modus-theme-nuanced-yellow) (modus-theme-nuanced-blue) (modus-theme-nuanced-magenta) (modus-theme-nuanced-cyan) (modus-theme-special-cold) (modus-theme-special-mild) (modus-theme-special-warm) (modus-theme-special-calm) (modus-theme-diff-added) (modus-theme-diff-changed) (modus-theme-diff-removed) (modus-theme-diff-refine-added) (modus-theme-diff-refine-changed) (modus-theme-diff-refine-removed) (modus-theme-diff-focus-added) (modus-theme-diff-focus-changed) (modus-theme-diff-focus-removed) (modus-theme-diff-heading) (modus-theme-pseudo-header) (modus-theme-mark-alt) (modus-theme-mark-del) (modus-theme-mark-sel) (modus-theme-mark-symbol) (modus-theme-heading-1) (modus-theme-heading-2) (modus-theme-heading-3) (modus-theme-heading-4) (modus-theme-heading-5) (modus-theme-heading-6) (modus-theme-heading-7) (modus-theme-heading-8) (modus-theme-hl-line) (modus-theme-bold) (modus-theme-slant) (modus-theme-variable-pitch) (modus-theme-graph-red-0) (modus-theme-graph-red-1) (modus-theme-graph-green-0) (modus-theme-graph-green-1) (modus-theme-graph-yellow-0) (modus-theme-graph-yellow-1) (modus-theme-graph-blue-0) (modus-theme-graph-blue-1) (modus-theme-graph-magenta-0) (modus-theme-graph-magenta-1) (modus-theme-graph-cyan-0) (modus-theme-graph-cyan-1) (modus-theme-lang-note) (modus-theme-lang-warning) (modus-theme-lang-error): Rename all internal faces. (modus-themes-headings) (modus-themes-fringes) (modus-themes-lang-checkers) (modus-themes-org-blocks) (modus-themes-org-habit) (modus-themes-mode-line) (modus-themes-diffs) (modus-themes-completions) (modus-themes-prompts) (modus-themes-intense-hl-line) (modus-themes-hl-line) (modus-themes-paren-match) (modus-themes-syntax) (modus-themes-links) (modus-themes-region): Update defcustom. (modus-themes--fringe): (modus-themes--headings-choice): (modus-themes--prompt): (modus-themes--org-block-delim): (modus-themes--mode-line-attrs): (modus-themes--link): (modus-themes--region): (modus-themes--hl-line): Adjustments to internal functions. (modus-themes-faces): Update faces. (modus-themes-custom-variables): Update custom variables.
72 lines
2.6 KiB
EmacsLisp
72 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.3.2
|
||
;; 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
|