Published: 19 May 2018 › Updated: 19 May 2018
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:
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
- Autocomplete for Python Coding in Sublime Text (ST3)
- Trying to Upload a video on Steemit- EASY
- Do you know: WHO KILLED SAMSON IN THE BIBLE?
- Video from the Open Data Day Event in Lagos
- Extending Bootstrap default look in a Rails project
- Open Data Meetup at Lagos
- I stumbled on a post that has Emoji from Steemit
- How we use git in our codebase on Github
- I do not know how to use STEEMAUTO
- How to use Subdomains to combine a Wordpress site and Rails app