mafisicoder avatar

Extending Bootstrap default look in a Rails project

mafisicoder

Published: 19 May 2018 › Updated: 19 May 2018Extending Bootstrap default look in a Rails project

Extending Bootstrap default look in a Rails project


There is a new way of customizing your styling in Bootstrap 4. You can import the particular Bootstrap component you would want to modify. I normally find myself modifying colors in most of my Rails Projects.

@import '/bootstrap/_variables.scss'   // The source of my Bootstrap
  // Colour Scheme
  $primary:   #1a284d  // My primary colour
  $secondary: #1eff23  // My Secondary colour 

Then I allow the bootstrap gem and sass-rail gem to make the compilation for me.

`Gem file`
...
  # Bootstrap Gem for my HTML framework
  gem 'bootstrap', '~> 4.1.1'
  # Use SCSS for stylesheets
  gem 'sass-rails', '~> 5.0'
...

Leave Extending Bootstrap default look in a Rails project to:

Written by

Just another guy that is crazy with new technology. And mad overheels with blockchain. You would see more of me.

Read more #utopian-io posts


Best Posts From mafisicoder

We have not curated any of mafisicoder's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From mafisicoder