ForEvolve / bootstrap-dark

Bootstrap 4 dark theme that supports togging dark/light themes as well. There is no fluff, it changes the color of Bootstrap and that's it, no new thing to learn or unlearn, just Bootstrap, but Dark!
MIT License
298 stars 44 forks source link

Retrieve current theme variables #26

Closed HighSoftWare96 closed 4 years ago

HighSoftWare96 commented 4 years ago

Hi, I'm using this library in Angular, I'm having an hard time trying to get some variables from the current applied theme in one of my components. I was wondering:

Carl-Hugo commented 4 years ago

Hi,

Since the theme toggling is done based on a class on the body, to achieve what you want to do, you could:

If you find a clever solution or create a reusable component, feel free to share that here.

I'll close this issue since there is nothing that I can do from a bootstrap-dark perspective.

Good luck