That means there is something wrong with your approach of developing the theme. You need to review your approach and follow best practices for development of themes.
Read: Developing Discourse Themes & Theme Components
I’ve performed backup/restore across many discourse sites but have never had an instance where design was lost due to backup/restore.