Bootstrap Sass screenshot

Bootstrap Sass

Author Avatar Theme by Twbs
Updated: 5 Jun 2023
12567 Stars

Official Sass port of Bootstrap 2 and 3.

Categories

Overview:

Bootstrap-sass is a Sass-powered version of Bootstrap 3 designed to seamlessly integrate into Sass powered applications. It offers all the functionalities of Bootstrap 3 but in a Sass format, making it easy to customize and work with in various environments like Ruby on Rails, Bower, npm/Node.js.

Features:

  • Sass-powered: Built with Sass to allow for easy customization and integration with Sass applications.
  • Easy installation: Detailed installation guides provided for Ruby on Rails, Bower, and npm/Node.js environments.
  • jQuery dependency: Bootstrap JavaScript requires jQuery for functionality.
  • Compatibility: Compatible with various environments such as Ruby on Rails, Bower, and npm/Node.js.
  • Version compatibility: Specific version recommendations for Rails 4.x, Rails 3.2.x, and Bower usage.

Installation:

Ruby on Rails:

  1. Add bootstrap-sass gem to your Gemfile.
    gem 'bootstrap-sass'
    
  2. Ensure sass-rails gem is present in your Gemfile.
  3. Run bundle install and restart your server.
  4. Import Bootstrap styles in application.scss:
    // application.scss
    @import "bootstrap-sprockets";
    @import "bootstrap";
    

Bower:

  1. Install bootstrap-sass Bower package with node-sass 3.2.0+ compatibility.
  2. Configure assets in config/application.rb.
  3. Adjust import statements in application.scss and application.js to reflect Bower package usage.

npm / Node.js:

  1. Import Bootstrap components explicitly or import all of Bootstrap.
  2. Customize components by copying _bootstrap.scss into your assets as _bootstrap-custom.scss and comment out unnecessary components.

Summary:

Bootstrap-sass is a versatile tool for developers looking to utilize Bootstrap 3 in their Sass-powered applications. With easy installation instructions for various environments and compatibility guidelines for different versions, users can seamlessly integrate and customize Bootstrap components in their projects. Whether using Ruby on Rails, Bower, or npm/Node.js, Bootstrap-sass provides a convenient solution for incorporating Bootstrap styling with Sass flexibility.