Skip to content

Commit

Permalink
feat: add Tritanopia
Browse files Browse the repository at this point in the history
close: #17
  • Loading branch information
krios2146 committed Nov 19, 2022
1 parent 69cfd05 commit 3c980f7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 3c980f7

Please sign in to comment.