Set palette and class hooks