Refactors css parsing for spriteset and compiler