Base code for new themes