Are there alternatives to overwriting Bootstrap's _variables.scss file and e.g. _alert.scss? #1295
-
First of all thank you so much for open-sourcing this. I have been searching for a month for code examples of how to brand Bootstrap efficiently and this is the answer. If my question is not specific enough to your product - not "orange enough" :-) I apologize in advance - veuillez m'excuser! I understand that in branding Bootstrap to Orange, overwriting the Bootstrap files makes total sense. If one wanted to keep the source Boostrap or source Boosted files intact, would the approach be to simply clone everything and make the customization on the clones? We have started to do this and it seems to work - cloning _variables to _overrides, cloning _alert.scss, _tables.scss etc. But this is a lot of cloning. In your experience is there a more efficient way. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Mic1 :) I'll try to answer by explaining what we are doing at Orange. In Boosted, we cherry-pick Bootstrap's commits and modify them in order to be compliant with our design guidelines. We act like a fork. The other way would be to Customize Bootstrap (JS and/or CSS). We have another design system dedicated to one country at Orange which uses Boosted and customize it so I have some information about that that could help you as well. @vprothais If you have more details to share regarding the customization don't hesitate. |
Beta Was this translation helpful? Give feedback.
Hey @Mic1 :)
I'll try to answer by explaining what we are doing at Orange.
In Boosted, we cherry-pick Bootstrap's commits and modify them in order to be compliant with our design guidelines. We act like a fork.
I wasn't there at the beginning of the project to have a lot of details to share with you regarding this decision but what I can observe right now is that it allows us more freedom to tweak some components and styles, and to keep the contact with Bootstrap by contributing a lot because of our common code base.
There are some cons with this way of doing things. The project must be maintained very actively because you can have hundreds of commits coming from Bootstrap in a month on t…