metaskills/less-rails-bootstrap — Issue #16: How to customize bootstrap values?
Author: EngineerGio
Created: 2011-11-25 19:15:10+00:00
State: open

Hello there. First of all thanks for the gem, it's lifesaver!
My question may seem stupid, but... How can I customize the twitter variables?

I can't find the file anywhere in the project.
Obviously if I override them after the @import 'twitter/bootstrap' all the other rules have already been defined so they will not get the new values.
Same thing if I do the redeclaration before the import, because those values will be changed by the bootstrap files.

Are the bootstrap files hidden somewhere or have I to do some hack like a custom stylesheet where I import first the original version and then my custom values of each bootstrap .less files?

Example
/* custom-twitter-bootstrap.css.less */
@import 'twitter/bootstrap/reset';

@import 'twitter/bootstrap/variables'
@import 'custom-twitter-bootstrap-variables'

@import 'twitter/bootstrap/mixins'
// Override just the @radius default value
.border-radius(@radius: 3px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
}

Please forgive me if this seems stupid by I am really new with rails.