Skip to content

Commit 24ffe32

Browse files
committed
Add new border color variable for increased contrast
Signed-off-by: Christopher Ng <chrng8@gmail.com>
1 parent be0faca commit 24ffe32

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

apps/theming/css/default.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
--color-box-shadow: rgba(var(--color-box-shadow-rgb), 0.5);
3333
--color-border: #ededed;
3434
--color-border-dark: #dbdbdb;
35+
--color-border-maxcontrast: #949494;
3536
--font-face: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, sans-serif, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
3637
--default-font-size: 15px;
3738
--animation-quick: 100ms;

apps/theming/lib/Themes/DarkTheme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function getCSSVariables(): array {
9191

9292
'--color-border' => $this->util->lighten($colorMainBackground, 7),
9393
'--color-border-dark' => $this->util->lighten($colorMainBackground, 14),
94+
'--color-border-maxcontrast' => $this->util->lighten($colorMainBackground, 30),
9495

9596
'--background-invert-if-dark' => 'invert(100%)',
9697
'--background-invert-if-bright' => 'no',

apps/theming/lib/Themes/DefaultTheme.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public function getCSSVariables(): array {
157157

158158
'--color-border' => $this->util->darken($colorMainBackground, 7),
159159
'--color-border-dark' => $this->util->darken($colorMainBackground, 14),
160+
'--color-border-maxcontrast' => $this->util->darken($colorMainBackground, 42),
160161

161162
'--font-face' => "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, sans-serif, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'",
162163
'--default-font-size' => '15px',

0 commit comments

Comments
 (0)