Improve palette formatting for the embed case.