r/bootstrap•
one_p

Looking for dark theme (color swap only)

Just wondering if there is a bootstrap variable file that is basically a color swap of the current light colors of bootstrap? Googling leads me to bootstrap builds that do more than color swaps I just want a more "purist" approach.

Posted Jul 29, 2018, 2:09 PM UTC

33
woodentaint•

yes there is, you can assign variables for things like body color after importing the bootstrap base.

https://getbootstrap.com/docs/4.0/getting-started/theming/

1
one_pOP•

Yes I'm aware of modifying variables myself and I have tried... it's just that I don't have the design skills to carry this out by myself. Every time I attempt it looks like trash. Particulars such as dropdown lists, modals I find particularly hard to style into a dark theme without any color theory knowledge. Just hoping some other programmers experience my frustration and solved this problem too.

1
iatek•

There isn't one variable that's going to invert the colors. To create a dark theme you have to set all the appropriate variable in SASS.

1