Skip to content

Commit

Permalink
Declare color-scheme property in theme
Browse files Browse the repository at this point in the history
  • Loading branch information
aidewoode committed Feb 28, 2024
1 parent f787387 commit ee22757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/assets/stylesheets/settings/_dark_theme.scss
Expand Up @@ -10,6 +10,8 @@
$player-bg-color: $black;
$badge-color: $primary-color;

color-scheme: dark;

--link-active-color: #{$primary-color};
--gradient-bg-color: linear-gradient(#{$black}, #{color.change($black, $alpha: 0.75)}), linear-gradient(#{$primary-color}, #{$primary-color});
--primary-bg-color: #{$grey-800};
Expand Down
2 changes: 2 additions & 0 deletions app/assets/stylesheets/settings/_light_theme.scss
Expand Up @@ -10,6 +10,8 @@
$player-bg-color: $grey-200;
$badge-color: $primary-color;

color-scheme: light;

--link-active-color: #{$primary-color};
--gradient-bg-color: linear-gradient(#{color.change($white, $alpha: 0.85)}, #{color.change($white, $alpha: 0.65)}), linear-gradient(#{$primary-color}, #{$primary-color});
--primary-bg-color: #{$white};
Expand Down

0 comments on commit ee22757

Please sign in to comment.