From 4d8bca52b25ba2ae4a5adfdbefcb655f50e3f1f1 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Wed, 25 Jan 2023 10:57:43 +0200 Subject: [PATCH] Native: fix contrast ratio to meet WCAG AA guidelines --- pygments/styles/native.py | 2 +- 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 fa4687c71f..ee4671d21b 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 a69d73ff5c..7c62441ea0 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,