3 ms·
I moved away from “utility-first” CSS in favor of heavy usage of SASS mixins. If you can modularize your CSS to the degree shown in Tailwind, then you can get t
by Rumudiez 8y ago
I moved away from “utility-first” CSS in favor of heavy usage of SASS mixins. If you can modularize your CSS to the degree shown in Tailwind, then you can get the best of both worlds by keeping your class names in BEM while the underlying SASS is primarily composed mixins.
Referencing the OP’s example in short:
#m-5 {
margin: 20px;
}
.card {
@extend #m-5;
/* custom styles */
}
Edit: formatting