Skip to content

Not able to update variable in custom css  #7

Description

@rohitspawar2911

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions