Feature Request: Implementing Percentage (%) Prefix and @extend Support for Bootstrap Classes #38944
Unanswered
maikycourse
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use Bootstrap with SCSS, and many times, instead of applying all the classes to a tag like:
<p class="fs-5 fw-semibold text-secondary text-opacity-75">
I prefer to create my custom class
.text-subtitle
and use@extend
so that the HTML becomes less cluttered, and the .text-subtitle
class inherits the properties I want from Bootstrap classes.I would like Bootstrap to implement all the classes it has with
%
in addition to.
. For example:Then, after generating the CSS file and using PurgeCSS, it will be cleaner if I use:
instead of:
This change will make the CSS file smaller and more efficient, resulting in a better development experience.
Beta Was this translation helpful? Give feedback.
All reactions