spur-template
spur-template copied to clipboard
separate bootstrap.css and spur.css
Mixing and editing bootstrap is bad practice, it’s better that they are separated and the styles overlap the original
Bad practice? Would you source or reason this claim?
Editing Bootstrap the way I'm doing it is documented here: https://getbootstrap.com/docs/4.2/getting-started/theming/
I'm simply adding the spur stuff afterwards so I can use the variables and mixins in spur as well without much fuss. I'm not sure what benefit splitting up the customized Bootstrap and the Spur styles would bring. Spur relies on Bootstrap 100%.
If you abandon the project, it will be hard to upgrade to the new bootstrap version. here for example https://stackoverflow.com/questions/20721248/how-can-i-override-bootstrap-css-styles
That is indeed a drawback but I don't see a way around it.
Overwriting all the Bootstrap styles manually just doesn't make sense if Bootstrap has this powerful theming infrastructure where you set one variable and then all the buttons look differently.
For other projects doing bootstrap.css
and custom.css
as in the StackOverflow thread is great, but that threat is also from 2013 when Bootstrap didn't have such a good customization setup.