diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-02 21:15:11 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-02 21:20:03 +0100 |
commit | b4c63595da6bdc45e33853f0ded028a66738ce28 (patch) | |
tree | 1dc24c10344f686c37ea429755268b542761d322 /pygments/styles | |
parent | 4f676c75e96d94671d7554f6a895dde0d12b3506 (diff) | |
download | pygments-git-b4c63595da6bdc45e33853f0ded028a66738ce28.tar.gz |
Make default style meet WCAG AA
Accessibility by default is important.
The colors with a too low contrast were adjusted just
so much that they match the required contrast of 4.5.
Part of #1718.
Diffstat (limited to 'pygments/styles')
-rw-r--r-- | pygments/styles/default.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/pygments/styles/default.py b/pygments/styles/default.py index 414de2f0..c69325f4 100644 --- a/pygments/styles/default.py +++ b/pygments/styles/default.py @@ -23,8 +23,8 @@ class DefaultStyle(Style): styles = { Whitespace: "#bbbbbb", - Comment: "italic #408080", - Comment.Preproc: "noitalic #BC7A00", + Comment: "italic #3D7B7B", + Comment.Preproc: "noitalic #9C6500", #Keyword: "bold #AA22FF", Keyword: "bold #008000", @@ -38,20 +38,20 @@ class DefaultStyle(Style): Name.Function: "#0000FF", Name.Class: "bold #0000FF", Name.Namespace: "bold #0000FF", - Name.Exception: "bold #D2413A", + Name.Exception: "bold #CB3F38", Name.Variable: "#19177C", Name.Constant: "#880000", - Name.Label: "#A0A000", - Name.Entity: "bold #999999", - Name.Attribute: "#7D9029", + Name.Label: "#767600", + Name.Entity: "bold #717171", + Name.Attribute: "#687822", Name.Tag: "bold #008000", Name.Decorator: "#AA22FF", String: "#BA2121", String.Doc: "italic", - String.Interpol: "bold #BB6688", - String.Escape: "bold #BB6622", - String.Regex: "#BB6688", + String.Interpol: "bold #A45A77", + String.Escape: "bold #AA5D1F", + String.Regex: "#A45A77", #String.Symbol: "#B8860B", String.Symbol: "#19177C", String.Other: "#008000", @@ -60,12 +60,12 @@ class DefaultStyle(Style): Generic.Heading: "bold #000080", Generic.Subheading: "bold #800080", Generic.Deleted: "#A00000", - Generic.Inserted: "#00A000", - Generic.Error: "#FF0000", + Generic.Inserted: "#008400", + Generic.Error: "#E40000", Generic.Emph: "italic", Generic.Strong: "bold", Generic.Prompt: "bold #000080", - Generic.Output: "#888", + Generic.Output: "#717171", Generic.Traceback: "#04D", Error: "border:#FF0000" |