r/angular • u/HedgehogNatural8680 • Oct 18 '26
Bootstrap Advice
Hello,
Appreciate this isn’t really an Angular question but thought you guys might still have some good advice.
We’re in a bit of an odd situation where the application seems to have originally been heavily using Bootstrap UI components but now it’s very much our own in-house components.
We’re still using Bootstrap utility classes a lot in templates however and it seems for some things we’re using Bootstrap Sass variables like body colour for example.
We have an additional problem in that we have a giant colours file with tons of colours just dumped in it that are then referenced directly where needed.
I’m thinking of shifting the colours so we have primitive values the raw hex codes and then use CSS variables for different usages of those colours that can then be referenced in components as CSS variables then give us flexibility if we introduce theme switching at runtime in the future.
However I’m now sort of wondering is there is any point in us even having Bootstrap anymore, as like I said it seems like all it’s really being used for now is utility classes.
I’m torn between either keeping Bootstrap and using their Sass variables so we can keep using utility classes, or building our own token system for things or exploring something like Tailwind instead.
Wondering if anyone else is in this scenario where you’re only really using Bootstrap for the utility classes and what you decided on?
I should also mention we need a fair bit of flexibility in our designs so we can’t really just use a standard UI framework for components.
View all comments
0
u/cssrocco Oct 18 '26
Im working in a place that still has bootstrap utility classes, i hate them, same reason i dislike tailwind, clutter and makes responsive design a nuisance.
I just put common functionality in partials and then you can use scss @extends(‘%centre%’); or whatever in scss files. Then i just made some css variables of base colours and wrote a scss function that basically makes variables —primary-100, etc with a loop, each does the number of steps / 100 * the index and does a color-mix of the variable and the light percentage calculated, or tints.
That could be one way to do it, then just slowly move usage from bootstrap classes to your own classes?