diff options
| author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2023-01-25 10:57:43 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2023-01-29 17:50:42 +0100 |
| commit | 4d8bca52b25ba2ae4a5adfdbefcb655f50e3f1f1 (patch) | |
| tree | 523b1e33ea9cbcd63afb30eb23cb23927eedbda3 | |
| parent | 6d2bb1bb7b862e4aa6feb828f760c6568fefda7e (diff) | |
| download | pygments-git-4d8bca52b25ba2ae4a5adfdbefcb655f50e3f1f1.tar.gz | |
Native: fix contrast ratio to meet WCAG AA guidelines
| -rw-r--r-- | pygments/styles/native.py | 2 | ||||
| -rw-r--r-- | tests/contrast/min_contrasts.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pygments/styles/native.py b/pygments/styles/native.py index fa4687c7..ee4671d2 100644 --- a/pygments/styles/native.py +++ b/pygments/styles/native.py @@ -27,7 +27,7 @@ class NativeStyle(Style): Whitespace: '#666666', Comment: 'italic #ababab', - Comment.Preproc: 'noitalic bold #cd2828', + Comment.Preproc: 'noitalic bold #ff3a3a', Comment.Special: 'noitalic bold #e50808 bg:#520000', Keyword: 'bold #6ebf26', diff --git a/tests/contrast/min_contrasts.json b/tests/contrast/min_contrasts.json index a69d73ff..7c62441e 100644 --- a/tests/contrast/min_contrasts.json +++ b/tests/contrast/min_contrasts.json @@ -13,7 +13,7 @@ "pastie": 2.5, "borland": 2.3, "trac": 2.3, - "native": 3.0, + "native": 3.1, "fruity": 1.6, "bw": 21.0, "vim": 1.3, |
