When adding themes, themes must be in a zip file. For example, if the name of the theme is MiniTheme then the zip file's name should be MiniTheme.zip containing a folder named MiniTheme.
Structure for MiniTheme.zip
\MiniTheme
\MiniTheme\MainStyle.xaml