Last Updated:
September 27, 2021
by
Muskan Purohit
| Version: 9
| 2,291 views
| 0 followers
members are following updates on this item.
This article will walk the developer through deploying a custom theme to their Theme Library. This theme is just based upon one of our basic themes that are included in the free version of the product.
Tip: Managing CSS files offline makes more sense, and serving them from a cloud repository is maintenance-friendly.
Create a project directory in your development environment:
#!/bin/sh
# This command creates a project directory for the sample Igloo theme
mkdir mytheme && cd mytheme
Install ig-deploy in the newly created project directory. Check out the ig-deploy KB article for more information about the deployment tool itself.
#!/bin/sh
# This will install the ig-deploy tool in your project directory
npm install --save @igloosoftware/ig-deploy
Download an official Igloo sample theme project file from one of the following links, and extract it into your project directory:
Platform | File Name | Size |
---|---|---|
Windows | ig-deploy-sample-theme.zip | 29kb |
OS X/Linux | ig-deploy-sample-theme.tar | 188kb |
After extracting the sample theme into the project directory, please verify the contents are as follows:
credentials.json
deploy.js
LICENSE.md
node_modules
package.json
theme
undeploy.js
validate.js
(Fig. 3.1) The Igloo sample theme deployment project directory.
Open credentials.json and follow the steps in the igDeploy article to enter the credentials of your Igloo-provided Azure instance.
Warning: Azure credentials are required to work with the Theme Library.
Run the following command to deploy the custom CSS theme to your Igloo-provided Azure instance:
#!/bin/sh
# This command runs deploy.js- which deploys the custom CSS theme to Azure
node deploy.js
Inside your Theme Library the custom CSS theme will be viewable by it’s thumbnail. Click on it and press Apply to apply the sample theme (Fig 5.1)
(Fig. 5.1) ig-deploy-sample-theme is hosted from your Igloo-provided Azure instance.