Created by: Synchro
If you change bootstrap's background color from light to dark, many things become unreadable, and there are lots of color values that need updating manually in order to make things usable. There's no reason this can't be done automatically since we've got all kinds of color processing functions on hand in less. This commit makes some attempt at doing this using less' contrast
function (which I wrote specifically for this purpose!). It's not a complete translation, but if you think this is a good idea, I'll persevere.
This shows an example page with the default bootstrap styles after changing only @body-background
to #000
:
and this is how it looks with this change applied:
It strikes me that much of the inverse navbar could be achieved using a similar mechanism and far less markup.