Refactoring css functions out of css, and linting.