Skip to content

Commit 81ee75b

Browse files
committed
add tritanopia theme
1 parent 1e20fb5 commit 81ee75b

File tree

3 files changed

+38
-0
lines changed

3 files changed

+38
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
@import "./theme-gitea-light-tritanopia.css" (prefers-color-scheme: light);
2+
@import "./theme-gitea-dark-tritanopia.css" (prefers-color-scheme: dark);
3+
4+
gitea-theme-meta-info {
5+
--theme-display-name: "Auto";
6+
--theme-colorblind-type: "blue-yellow";
7+
--theme-color-scheme: "auto";
8+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@import "./theme-gitea-dark-protanopia-deuteranopia.css";
2+
3+
gitea-theme-meta-info {
4+
--theme-display-name: "Dark";
5+
--theme-colorblind-type: "blue-yellow";
6+
--theme-color-scheme: "dark";
7+
}
8+
9+
/* blue/yellow colorblind-friendly colors */
10+
/* from GitHub: blue yellow blindness is based on red green blindness, and --diffBlob-deletion-* restored to the normal theme color */
11+
:root {
12+
--color-diff-removed-linenum-bg: #482121;
13+
--color-diff-removed-row-bg: #301e1e;
14+
--color-diff-removed-word-bg: #6f3333;
15+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
@import "./theme-gitea-light-protanopia-deuteranopia.css";
2+
3+
gitea-theme-meta-info {
4+
--theme-display-name: "Light";
5+
--theme-colorblind-type: "blue-yellow";
6+
--theme-color-scheme: "light";
7+
}
8+
9+
/* blue/yellow colorblind-friendly colors */
10+
/* from GitHub: blue yellow blindness is based on red green blindness, and --diffBlob-deletion-* restored to the normal theme color */
11+
:root {
12+
--color-diff-removed-linenum-bg: #ffcecb;
13+
--color-diff-removed-row-bg: #ffeef0;
14+
--color-diff-removed-word-bg: #fdb8c0;
15+
}

0 commit comments

Comments
 (0)