bootstrap-rubygem icon indicating copy to clipboard operation
bootstrap-rubygem copied to clipboard

Overriding bootstrap variables

Open veekram opened this issue 4 years ago • 3 comments

I was wondering if we have a neat way to override bootstrap variables? Any help is appreciated. Thank you

veekram avatar Mar 30 '21 07:03 veekram

Hi @veekram

I saw your question here at same time that was making a customisation for my project. If it helps, I will share how I'm doing:

Instead of copying all content from bootstrap default variables file and changing what is needed there, I'm just creating an import with only sass variables that I want to have changed @import "customize/variables";

application.scss

Screenshot 2021-04-20 at 17 22 25

customize/_variables.scss

Screenshot 2021-04-20 at 17 22 57

luccasmaso avatar Apr 20 '21 20:04 luccasmaso

@luccasmaso thank you very much 😊

veekram avatar Apr 21 '21 04:04 veekram

If it can helps, I had written an article hosted on Medium on how to do it on Rails 5 keeping Asset Pipeline profits

WilfriedPaillot avatar May 04 '22 01:05 WilfriedPaillot