studiometa / scss-toolkit

A small and configurable SCSS Toolkit to boost your project! 🚀
MIT License
5 stars 0 forks source link

Add verifications and warnings/errors for the configuration variables #40

Open titouanmathis opened 5 years ago

titouanmathis commented 5 years ago

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.