Skip to main content

Errors and warnings

This is a complete list of errors and warnings thrown by the framework (NOT YET - IN PROGRESS ;).

Some of the errors can be (temporarily) silenced by using +mode('draft') (read more).

Others can be turned off by selective custom settings, which we don't recommend, because this is a departure from the SPOT CSS standard and every rule has a reason.

Example of error:

Error: SPOT CSS [component/simple-element-selector] - given selector is a simple element selector ('a') but the framework is currently set to not allow such selectors for components.
Read more at https://spotcss.io/errors/component/simple-element-selector
        on line 96 of src/_public.mixins.scss, in mixin `component`
        from line 3 of my-code/my-component/my-component.sass
>> s a simple element selector ('"+$selector+"') but the framework is currently
   ------------------------------------------^

Each error contains a unique code of that error (component/simple-element-selector) and also a link to this page for detailed information on that error.

Some of the errors are just warnings, and they don't stop the compilation of the SASS code, they just output an error to the console.

Desired result

The goal is to have no errors (because SASS code doesn't compile to CSS) and no warnings too when development is complete.