]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Increase contrast in dark-mode (#38525)
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 23 Jun 2023 10:11:30 +0000 (12:11 +0200)
committerMark Otto <markdotto@gmail.com>
Sun, 25 Jun 2023 21:44:38 +0000 (14:44 -0700)
This increases the default brightness for the body text-color in dark
mode, which inceases readability a bit.

It was also suggested to darken the background a bit, but we
unfortunately don't have a darker gray in our color palette. So for now,
let's increase the text-color by two notches, and leave the background
color as-is instead.

scss/_variables-dark.scss

index 494eefac23edeed2fb0d7b8639681c9d85551643..79f29a305853db0deb74109e3538be59dcc86c49 100644 (file)
@@ -40,7 +40,7 @@ $light-border-subtle-dark:          $gray-700 !default;
 $dark-border-subtle-dark:           $gray-800 !default;
 // scss-docs-end theme-border-subtle-dark-variables
 
-$body-color-dark:                   $gray-500 !default;
+$body-color-dark:                   $gray-300 !default;
 $body-bg-dark:                      $gray-900 !default;
 $body-secondary-color-dark:         rgba($body-color-dark, .75) !default;
 $body-secondary-bg-dark:            $gray-800 !default;