How do I get a list of twitter bootstrap 3 colors?

okysabeni picture okysabeni · Jan 11, 2014 · Viewed 30.6k times · Source

I'm using the twitter bootstrap sass 3.0.3.0 gem which should correspond to the latest twitter bootstrap 3.0.3. I was looking at the 'customize' section of the lESS variables but cannot find too many colors. How do I get a list of colors provided by bootstrap 3?

For example, searching for blue bootstrap 3 docs returns no result. Whereas searching for blue at bootsrap 2 docs shows the color blue.

Thanks!

Answer

erikrunia picture erikrunia · Jan 11, 2014

They no longer name their classes or variables that way, because they are trying in release 3 to be more semantic, ie naming stuff for what it does rather than what it looks like. So @Blue might have become @btn-default-color.

That is better in the long run because your implementation might make it green, so @blue does not adequately describe it anymore. Unfortunately unless you know color hex codes this makes it a little harder.

You can always (in a modern browser) right click the color you see and choose "inspect element", steal the color from the CSS code on the right hand side and then search for THAT color code in the docs.

http://getbootstrap.com/customize/#less-variables