To provide a theme, you can create a theme json file, or respond theme as json.
In this example, we create a theme file named: theme.json in commandline demo plugin.
The content is as follows:
In this example, you need expose an endpoint /theme in your web server, we'll use post method to request you.
And you can refer our sample code in http demo plugin.
In this example we create a theme file named theme.json, and writing the following content:
In this example we create a theme file named theme.json, and writing the following content:
Add the following content to plugin-spec.yml:
themes:
- service: ./theme.json
name-bundle-id: Demo Themethemes:
- service: "{entry}/theme"
name-bundle-id: Demo Themethemes:
- service: ./theme.json
name-bundle-id: Demo Themethemes:
- service: ./theme.json
name-bundle-id: Demo ThemeRead theme explanation.