I am building a website using Bootstrap and am getting the files through BootstrapCDN. What is the best way to go about modifying the color scheme when using BootstrapCDN. Am I better off to not use the CDN? For example - I want to change the color of the links. To do this I did a{color:#000000}
- but want to know if there is a better way. Thanks!
Asked
Active
Viewed 6,193 times
6

pilsetnieks
- 10,330
- 12
- 48
- 60

broccolifarmer
- 465
- 7
- 15
2 Answers
5
Most simplest way. There's no harm in using bootstrap CDN.
<link href="bootstrap.min.css" rel="stylesheet">
<link href="bootstrap-responsive.min.css" rel="stylesheet">
<link href="css/custom-bootstrap-override.css" rel="stylesheet">

Community
- 1
- 1

Rajender Joshi
- 4,155
- 1
- 23
- 39
-
1So this would just be overriding the css, right? Do you know of a way to more or less change all blue colors to a red color? Meaning - everywhere a blue color is used - use the red instead. That probably has to be done by using less? – broccolifarmer Apr 25 '13 at 13:14
-
2@user1453561: Yes, There is it http://twitter.github.io/bootstrap/customize.html#variables You won't be able to use CDN then. – Rajender Joshi Apr 25 '13 at 13:15
1
If you want to use BootstrapCDN then you will need to override the css declarations that you want to change in another css file and host that file yourself.
If you have the inclination though you could edit the bootstrap .less files and then compile your own Bootstrap, or use http://twitter.github.io/bootstrap/customize.html to create your own version to download - of course then you would either have to host them all yourself or use another CDN.

John
- 486
- 5
- 15