Cleanup styles (works with both palette and stylesheet)