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: Beginner's guide to developing Discourse Themes
I’ve performed backup/restore across many discourse sites but have never had an instance where design was lost due to backup/restore.