modus-operandi-theme.el (2706B)
1 ;;; modus-operandi-theme.el --- Accessible light theme (WCAG AAA) -*- lexical-binding:t -*- 2 3 ;; Copyright (C) 2019-2021 Free Software Foundation, Inc. 4 5 ;; Author: Protesilaos Stavrou <info@protesilaos.com> 6 ;; URL: https://gitlab.com/protesilaos/modus-themes 7 ;; Version: 1.4.0 8 ;; Package-Requires: ((emacs "26.1")) 9 ;; Keywords: faces, theme, accessibility 10 11 ;; This file is part of GNU Emacs. 12 13 ;; This program is free software; you can redistribute it and/or modify 14 ;; it under the terms of the GNU General Public License as published by 15 ;; the Free Software Foundation, either version 3 of the License, or (at 16 ;; your option) any later version. 17 ;; 18 ;; This program is distributed in the hope that it will be useful, but 19 ;; WITHOUT ANY WARRANTY; without even the implied warranty of 20 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21 ;; General Public License for more details. 22 ;; 23 ;; You should have received a copy of the GNU General Public License 24 ;; along with this program. If not, see <https://www.gnu.org/licenses/>. 25 26 ;;; Commentary: 27 ;; 28 ;; Modus Operandi is the light variant of the Modus themes (Modus 29 ;; Vivendi is the dark one). The themes are designed for color-contrast 30 ;; accessibility. More specifically: 31 ;; 32 ;; 1. Provide a consistent minimum contrast ratio between background 33 ;; and foreground values of 7:1 or higher. This meets the highest 34 ;; such accessibility criterion per the guidelines of the Worldwide 35 ;; Web Consortium's Working Group on Accessibility (WCAG AAA 36 ;; standard). 37 ;; 38 ;; 2. Offer as close to full face coverage as possible. The list is 39 ;; already quite long, with more additions to follow as part of the 40 ;; ongoing development process. 41 ;; 42 ;; For a complete view of the project, also refer to the following files 43 ;; (should be distributed in the same repository/directory as the 44 ;; current item): 45 ;; 46 ;; - modus-themes.el (Main code shared between the themes) 47 ;; - modus-vivendi-theme.el (Dark theme) 48 49 ;;; Code: 50 51 52 53 (eval-and-compile 54 (unless (and (fboundp 'require-theme) 55 load-file-name 56 (equal (file-name-directory load-file-name) 57 (expand-file-name "themes/" data-directory)) 58 (require-theme 'modus-themes t)) 59 (require 'modus-themes))) 60 61 (deftheme modus-operandi 62 "Accessible and customizable light theme (WCAG AAA standard). 63 Conforms with the highest legibility standard for color contrast 64 between background and foreground in any given piece of text, 65 which corresponds to a minimum contrast in relative luminance of 66 7:1.") 67 68 (modus-themes-theme modus-operandi) 69 70 (provide-theme 'modus-operandi) 71 72 ;;; modus-operandi-theme.el ends here