Skip to content

Commit

Permalink
Fix color distortion in dark theme
Browse files Browse the repository at this point in the history
Adds a hue-rotate of 180 degrees to the top-level theme element to counteract the false colors caused by the invert function.
  • Loading branch information
dmchurch authored Nov 14, 2023
1 parent 5008c4a commit 4172458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ input[type="number"] {
/* dark theme */

.t-dark {
filter: invert(1);
filter: invert(1) hue-rotate(180deg);
background: #111;
color: #222;
}
Expand Down Expand Up @@ -856,4 +856,4 @@ select.bold {
font-size: 16px;
font-family: Arial, Helvetica, serif;
padding: 0;
}
}

0 comments on commit 4172458

Please sign in to comment.