Usage shows us that we often add too many sizes to the $spaces variables (more than 15). This leads to heavy CSS files with hundreds or event thousands of .space-... utility classes.
It would be helpful to add warning or error when configuration variables are not following the correct schema or the best pratices.
For example, when the $spaces variables contains more than 10 values, we could throw a @warn and when it contains more than 15 values, we'd throw an @error.
Usage shows us that we often add too many sizes to the
$spaces
variables (more than 15). This leads to heavy CSS files with hundreds or event thousands of.space-...
utility classes.It would be helpful to add warning or error when configuration variables are not following the correct schema or the best pratices.
For example, when the
$spaces
variables contains more than 10 values, we could throw a@warn
and when it contains more than 15 values, we'd throw an@error
.