January 2017
Intermediate to advanced
134 pages
2h 28m
English
A variables file should exist in each project that contains all variables relevant to the project.
PostCSS facilitates variables and mixins defined in either CSS files or as JavaScript objects. You can read more about the latter here (https://benfrain.com/creating-and-referencing-javascript-mixins-and-variables-with-postcss/).
If a situation arises where a pixel based value needs entering into the authoring style sheets, that isn't already defined in the variables this should serve as a red flag to you. This scenario is also covered above. In the case where a magic number needs entering in the authoring style sheets, ensure a comment is added on the line above to explain its relevance. ...
Read now
Unlock full access