Hello, I am looking to modify the background of a page for dark mode.
This is the current background styling:
$orangeLight:#FFA500!default;
$redLight:#FA8072!default;
$blueLight:#B0C4DE!default;
$greenLight:#90EE90!default;
$list2: $blueLight 0%,$blueLight 25%,$greenLight 25%,$greenLight 50%, $orangeLight 50%, $orangeLight 75%, $redLight 75%, $redLight 100%!default;
.three {
@include gradient(to top, $list2);
}
<ion-content [class.dark-theme]="dark" class="three">
some content
</ion-content>
I want to apply the "three" class to dark mode. My idea was to redefine the $list2 variable like this:
.dark-theme{
$orangeLight:#FF8C00;
$redLight:#8B0000;
$blueLight:#00008B;
$greenLight:#006400;
$list2: $blueLight 0%,$blueLight 25%,$greenLight 25%,$greenLight 50%, $orangeLight 50%, $orangeLight 75%, $redLight 75%, $redLight 100%;
ion.content{
background-image: $list2;
}
What are your thoughts on this approach?