I'm using Bootstrap in my project and I would like to change the body-bg variable based on the user's system color preferences.
It's the initial value:
$body-bg: #fff;
I am trying to change with using this media query:
@media (prefers-color-scheme: dark) {
$body-bg: #000;
}
But it doesn't work. Is there any way to change this variable?