feat: add Tritanopia

close: #17
This commit is contained in:
Vladimir Kidyaev 2022-11-19 14:26:38 +07:00
parent 69cfd0546b
commit 3c980f7f68

View file

@ -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 {