Would you ever consider including CSS or Sass files that contain just the minimum amount of styling for JavaScript components?
Currently you can conditionally include Sass files per component, but often when I'm working off an existing design I need to implement, I would have to override all those styles somehow, which includes borders, shadows, etc. If I could include just the bare minimum, I may save some time.
I went ahead and created minimal versions for each component, just to see what it would look like:
alert.js: https://codepen.io/DannyJoris/pen/NvLGJW/button.js: https://codepen.io/DannyJoris/pen/mMGeNvcarousel.js: https://codepen.io/DannyJoris/pen/rzZxxzcollapse.js: https://codepen.io/DannyJoris/pen/yoxoagdropdown.js: https://codepen.io/DannyJoris/pen/jLvbzOmodal.js: https://codepen.io/DannyJoris/pen/YxOYNBpopover.js: https://codepen.io/DannyJoris/pen/JyapdVscrollspy.js: https://codepen.io/DannyJoris/pen/ZJwdbv (can be stripped down more)tab.js: https://codepen.io/DannyJoris/pen/brxKPKtooltip.js: https://codepen.io/DannyJoris/pen/RZYyrvLet me know what you think.
Bootstrap allow a lot of customisation with including _custom.scss file, so you'll be able to create a custom theme with the minimal css you need
That's fair. I guess I was just looking at Bootstrap to "enhance" parts of custom projects. I'll look into it further.
@Johann-S ??
$minimal-styling: false !default;
@mixin alert {
@if ($minimal-styling) {
/**
* Minimal Styling here
*/
} @else {
/**
* Regular Styling here
*/
}
}
That's can be a solution @IamManchanda :+1:
It is a solution!
Best of luck guys for this PR :+1:
Super cool, but not something I see us putting into Bootstrap right now :).
@iamandrewluca - surely just override the $theme-colors array and remove the colours you don't need?