Skip to content

Styles

You can specify multiple styles by using the styles field in your template.json.

The setup, ignore, labels and prompts fields are merged with the root-level fields. When conflicting, the values from the chosen style will take priority and overwrite the root-level fields when applicable.

template.json

{
  "styles": {
    // The key of this map represents
    // the name of the style.
    "My Style": {
      // Source is the path to the
      // directory containing the files.
      //
      // This has to be relative to the `template.json`
      // file.
      //
      // (required)
      "source": "",

      // These fields are optional
      "setup": {},
      "ignore": [],
      "labels": [],
      "prompts": [],
    }
  }
}