Theme's custom CSS or design tokens disappeared after saving Appearance

What you are seeing

My theme's custom CSS or design tokens disappeared after saving Appearance.


#Why it happens

The theme is replaced wholesale on save; any client that sends a partial theme wipes the fields it omits.


#What to do

When writing the theme through the API, always send the complete theme object, not just the fields you are changing.



Found it? Good.