This commit with the !important rules on the color mixins make the color utility classes unusable, because CSS styles can not be cascaded into more specific element in the page.
Without them, one could use .bg-dark on body, and .bg-light on cards or some other repeating element for example.
A library like this should never use !important, IMHO.
Another thing is that using background instead of background-color prevents using background images.
CSS specificity rules can help in avoiding too specific style declarations:
This commit with the
!important
rules on the color mixins make the color utility classes unusable, because CSS styles can not be cascaded into more specific element in the page.Without them, one could use
.bg-dark
onbody
, and.bg-light
on cards or some other repeating element for example. A library like this should never use!important
, IMHO.Another thing is that using
background
instead ofbackground-color
prevents using background images.CSS specificity rules can help in avoiding too specific style declarations: