From 3c980f7f68a7f1f9dddcb0ed91d2376c1eaeaa0d Mon Sep 17 00:00:00 2001 From: Vladimir Kidyaev Date: Sat, 19 Nov 2022 14:26:38 +0700 Subject: [PATCH] feat: add Tritanopia close: #17 --- theme.css | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/theme.css b/theme.css index 5b67c79..c086731 100644 --- a/theme.css +++ b/theme.css @@ -16,6 +16,11 @@ settings: title: Protanopia & Deuteranopia type: class-toggle default: off + - + id: colorblind_tritan + title: Tritanopia + type: class-toggle + default: off - # Callout Settings @@ -813,6 +818,29 @@ body.colorblind_protan-deutan.theme-light { --color-btn-primary-hover-bg: #0969da; } +body.colorblind_tritan.theme-dark { + --color-green-rgb: 165, 214, 255; + --color-green: #a5d6ff; + --color-orange: #ffa198; + + --text-highlight-bg: rgba(255, 0, 0, 0.4); + --text-highlight-bg-active: rgba(255, 50, 0, 0.4); + + --color-btn-primary-bg: #1f6feb; + --color-btn-primary-hover-bg: #388bfd; +} +body.colorblind_tritan.theme-light { + --color-green-rgb: 12, 181, 79; + --color-green: #218bff; + --color-orange: #fa4549; + + --text-highlight-bg: rgba(255, 0, 0, 0.4); + --text-highlight-bg-active: rgba(255, 50, 0, 0.4); + + --color-btn-primary-bg: #218bff; + --color-btn-primary-hover-bg: #0969da; +} + /* Tables */ .markdown-rendered td, .markdown-rendered th {