Hello
I have used this theme switcher and it's working. But the issue is when I have to write a custom CSS class and want to use Bootstrap variable its not reflecting.
ex:
In custom.scss
body{
background: $primary;
}
dark.scss
$primary: #000000;
light.scss
$primary: #ff0000;
CSS after compilation:
For Both Theme:
custom.css
body{
background:#007bff; // Bootstrap default Variable
}
If Dark Theme
bootstrap.css
body{
background:#00000;
}
If light theme:
body{
background:#ff0000;
}
Can you please help me to solve this issue?
Thanks
Hello
I have used this theme switcher and it's working. But the issue is when I have to write a custom CSS class and want to use Bootstrap variable its not reflecting.
ex:
In custom.scss
body{
background: $primary;
}
dark.scss
$primary: #000000;
light.scss
$primary: #ff0000;
CSS after compilation:
For Both Theme:
custom.css
body{
background:#007bff; // Bootstrap default Variable
}
If Dark Theme
bootstrap.css
body{
background:#00000;
}
If light theme:
body{
background:#ff0000;
}
Can you please help me to solve this issue?
Thanks