Build styles before attributes so that we have all the information we need before we try to create the attributes
Back-color is now written out