Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to SASS from LESS #870

Open
Extrapolator214 opened this issue Aug 9, 2015 · 3 comments
Open

Switch to SASS from LESS #870

Extrapolator214 opened this issue Aug 9, 2015 · 3 comments

Comments

@Extrapolator214
Copy link

I don't know if this was addressed before, but is there any possibility to switch to SASS from LESS?
There is an official port to SASS: https://github.com/twbs/bootstrap-sass
I would really like to have access to the amazing generators and helpers of 'twitter-bootstrap-rails' while working with SASS.
SASS is the default Rails CSS pre-processor, it would be logical to use it.

I'll appreciate any suggestions how to combine this gem with SASS.

@Extrapolator214
Copy link
Author

Actually I've just found a way:

# Gemfile
gem "twitter-bootstrap-rails"
gem 'sass-rails'
gem 'bootstrap-sass'

I simply didn't run 'rails generate bootstrap:install' from "twitter-bootstrap-rails"
Instead I followed the installation from https://github.com/twbs/bootstrap-sass#a-ruby-on-rails

Basically the CSS/JS part is done with 'bootstrap-sass' while the themed generators and helpers are available from 'twitter-bootstrap-rails'.

@whartonn
Copy link

whartonn commented Sep 8, 2015

Solutions will become important for the future - as the Bootstrap team has announced that Bootstrap v4 will move from using LESS to SASS: http://blog.getbootstrap.com/2015/08/19/bootstrap-4-alpha/
Thank you for this project!

@bdewater
Copy link

bdewater commented Nov 8, 2015

The Bootstrap team will package v4 as a gem, so this gem could provide the Rails integration? See twbs/bootstrap-rubygem#6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants