Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you change the colour of Twitter's Bootstrap CSS?

I've not used less before today.

I changed the colour in preboot.less to:

// Color Scheme
@baseColor:         @orange;                  // Set a base color

I then complied the less files. It all came out, but everything was still blue.

So I tried the js.less route. Still blue.

like image 981
speg Avatar asked Aug 22 '11 01:08

speg


2 Answers

Here's a bootstrap theme generator that works from a picture.... So you can just take a picture of your "old" website, upload it here, and it'll generate a theme that matches your old color scheme!

Note: This site appears to be offline at the moment. If you still want this feature, you can install the site from it's Github repo, and try it from there.

http://www.lavishbootstrap.com/

and of course Bootstrap itself allows you to customize the colors when you download it now, but that involves lots of cutting and pasting of color schemes.... The tool above figures it all out for you...

http://getbootstrap.com/customize/

like image 152
Brad Parks Avatar answered Nov 05 '22 14:11

Brad Parks


You might find the Bootstrap Generator useful - it lets you choose colours etc and generates a compiled Boostrap CSS file for you.

like image 22
Phil Gyford Avatar answered Nov 05 '22 14:11

Phil Gyford