More control over theme colors in components
Prerequisites
- [X] I have searched for duplicate or closed feature requests
- [X] I have read the contributing guidelines
Proposal
It would ne nice to have intermediate variables in components that use theme colors. Such as $btn-theme-colors, $alert-theme-colors,... Their value would be set to $theme-colors by default.
Motivation and context
The fact is, most of the time, we don't need all theme colors in all components. In my case, I don't need success, warning, danger and info for buttons, and I don't need primary for alerts. The interest is mainly for performance. It would reduce CSS file size. For now, there are ways to achieve that but a built-in way would be nicer.
If no one has taken up this issue, I would like to pick it up
@Ananyatiwari19 Unfortunately we'll probably have to wait for this one. It might be not possible to tackle it in v5 by respecting the Semver, and the v6 hasn't started yet. Moreover, we have to study if it can be possible, and how to integrate it in the overall refactoring planned for the v6. However, ideas can still be shared within this issue for later on :)
@julien-deramond it seems to me it can be integrated easily without breaking change in V5... Can you tell me where I can see the planned refactoring for V6 ? I have many feedback and suggestions to make.
it seems to me it can be integrated easily without breaking change in V5...
Let's see if this can be done without impacting the current version before V6. I can't guarantee that I'll have the time to check this myself before V6, but if anyone has precise specifications or ideas on implementation, please share them in the comments of this issue. 🙏
Can you tell me where I can see the planned refactoring for V6 ? I have many feedback and suggestions to make.
There isn't a centralized issue or discussion yet. We have numerous ideas that have been accumulating over months and years; some are already referenced in PRs, issues, while others are still in our heads. If you have feedback and suggestions, you can create a discussion here. The primary challenge for us is always finding enough time, especially spare time.
I'm 50/50 on this—I don't know how much variable and Sass map reassignment I want to do. However, with the variable splitting I intend to do in v6, this could dovetail nicely too.