Naming Your Theme and Theme Variations
Naming Your Theme
The basic details of the Cornerstone theme are outlined in the theme’s configuration file, config.json. You can update the Cornerstone’s config.json file to reflect your theme’s values such as name, version number and documentation URL.
Below is an example of the first key-value sets in Cornerstone’s config.json:
The next example shows you how to change Cornerstone’s configurations to reflect your own theme’s name, version number, price on the Marketplace, and documentation URL.
Creating and naming a new theme variation
Variations are defined in your theme’s config.json file. See the example below from Cornerstone light definition from Cornerstone’s config.json.
When you insert your custom variation into the variations object in Cornerstone’s config.json it might look something like you see below.
NOTE:
Using Stencil CLI to change variations
To locally test/debug a specific variation of your theme, launch it by invoking the Stencil CLI’s stencil start -v switch. Enter the following code into the terminal, replacing variation-name with your theme’s variation name as listed in config.json:
stencil start -v variation-name