PHP Classes

File: theme/contrast.json

Recommend this page to a friend!
  Packages of Boss Ibrahim Mussa   Caelrik   theme/contrast.json   Download  
File: theme/contrast.json
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Caelrik
Build Web user interface from PHP components
Author: By
Last change:
Date: 8 days ago
Size: 1,440 bytes
 

 

Contents

Class file image Download
{ "description": "Color pairs every theme palette must meet, in light and dark mode. Used by the PHP Contrast class, the ThemeBuilder and the tests.", "pairs": [ { "foreground": "bodyColor", "background": "bodyBg", "minimum": 4.5, "label": "Body text", "wcag": "1.4.3" }, { "foreground": "muted", "background": "bodyBg", "minimum": 4.5, "label": "Muted text (help, captions)", "wcag": "1.4.3" }, { "foreground": "bodyColor", "background": "surface", "minimum": 4.5, "label": "Text on surfaces (grid header, upload area)", "wcag": "1.4.3" }, { "foreground": "muted", "background": "surface", "minimum": 4.5, "label": "Muted text on surfaces", "wcag": "1.4.3" }, { "foreground": "primary", "background": "bodyBg", "minimum": 4.5, "label": "Links and outline buttons", "wcag": "1.4.3" }, { "foreground": "primaryHover", "background": "bodyBg", "minimum": 4.5, "label": "Hovered links", "wcag": "1.4.3" }, { "foreground": "onPrimary", "background": "primary", "minimum": 4.5, "label": "Primary button label", "wcag": "1.4.3" }, { "foreground": "onPrimary", "background": "primaryHover", "minimum": 4.5, "label": "Hovered primary button label", "wcag": "1.4.3" }, { "foreground": "danger", "background": "bodyBg", "minimum": 4.5, "label": "Error messages", "wcag": "1.4.3" }, { "foreground": "inputBorder", "background": "bodyBg", "minimum": 3, "label": "Form field borders", "wcag": "1.4.11" } ] }