-
-
Notifications
You must be signed in to change notification settings - Fork 79k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bootstrap should have a color pallet like implemented in Tailwind CSS out of the box #32236
Comments
personally no, not a fan of copying all this tailwind approach to "a class for every possible property and every possible value of that property" |
Its not copying but Bootstrap already has a color palette which should come implemented out of the box..:) |
just create on your own, like this
|
I mean, we could definitely do this, and encourage folks to use PurgeCSS on top of Bootstrap, but I feel like most folks wouldn't take that step. I've opened #32319 to document some kind of approach here. |
I got this post as result by searching on the web for colors tailwind bootstrap. Someone already implemented the idea in Bootstrap here: https://www.youtube.com/watch?v=0J_e_7QQ-uU. In the last months I played with Tailwind CSS and one thing I liked very much. I can do fast than ever all CSS stuff inside the HTML skeleton without using a separate CSS file (padding, margins). I created projects with Bootstrap since 2013 and my personal opinion is that the color pallet is limited. Tailwind understood this issue and added this feature. Of course we can create this pallet in a separate CSS but at that moment the idea of -primary -secondary is useless. Flexibility should be a prior in using colors for button, background, text and many more. |
good for you. however, this fundamentally goes against the feelings of many other folks who like to build things with a separation of concerns / maintainability... |
Thank you for your reply. My message was intended to draw attention to an issue discussed here and inform you there are solutions already out there. The fact I am using BS for almost 8 years says a lot about my loyalty to this project. |
For changing the color we should have classes like
red-100, red-200 till red-900 each class increasing the color strength .100 being the lightest red and 900 being the brightest
Similar color pallet must be developed for most colors included in bootstrap template out of the box and without any kind of sass or scss compilation.
https://v5.getbootstrap.com/docs/5.0/customize/color/
The text was updated successfully, but these errors were encountered: