Theme Generator is a tool that allows you to generate custom color themes that can be reused in an app. With this extension, you can instantly visualize how changes made to the app are reflected on its UI.
To create a new theme, from the Project view, click CREATE NEW > Theme and give it a name, for example, t1. The theme is created and can be found in the Theme folder of the Project tab:
Using Theme Generator is easy: you just need to select the main colors one by one and configure them using the color picker tool until you get the UI you would like your app to show on the screen:
When ready, you can check how your app UI will look like on both the Android:
and the iOS views:
You can create as many themes as you need:
Exporting Themes as Private Plug-ins
You are also free to add custom colors to your app. This can be done under the Custom colors section using the color picker:
Now, when modifying some component's UI, you can select from the predefined value types for the Button Color property (accessed from the Styles tab) or enter your custom color name (manually) to apply it to the page UI:
In the Rewrite Colors section, you can overwrite any color or add any scss variable.
In the Extra SCSS section, you can add any additional scss for your theme. You can use
$_THEME_NAME instead of the actual theme name.
If you scroll down, you will also be able to open the theme code preview.
You can use the preview option to see how some particular app page will look like with the selected theme (works in the editor preview only):
- Get current theme snippet:
- Set theme snippet:
If you select the second option, you will need to provide the theme name in the code:
After the needed action(s) have been defined for the page (and its components), its updated UI can be tested in work.
Updated 12 months ago