Install#

@kitconcept/volto-light-theme is a Volto add-on. It should be installed as any other add-on using the dependencies key in your project's add-on file packages/<name_of_your_project_addon>/package.json.

You should also configure @kitconcept/volto-light-theme as a Volto add-on using the addons key in your project add-on file packages/<name_of_your_project_addon>/package.json.

"addons": [
  // other add-ons installed above the declaration of VLT
  // VLT _must_ be the last one declared
  // Your project add-on will still be the last applied
  // if it's defined in `volto.config.js`
  "@kitconcept/volto-light-theme",
],

Since @kitconcept/volto-light-theme is also a theme add-on, you should declare it in your project's volto.config.js.

const addons = ['<name_of_your_project_addon>'];
const theme = '@kitconcept/volto-light-theme';

module.exports = {
  addons,
  theme,
};

Added in version 18.29.1.

Added in version 19.0.0-alpha.10.

You can declare the @kitconcept/volto-light-theme as a theme add-on in the package.json file of your add-on for either of the respective major version lines in Volto:

  • 18.29.1 or later

  • 19.0.0-alpha.10 or later

The following snippet shows example configuration.

packages/<name_of_addon>/package.json#
{
  "addons": [
    // other add-ons installed above the declaration of VLT
    // VLT _must_ be the last one declared
    "@kitconcept/volto-light-theme",
  ],
  "theme": "@kitconcept/volto-light-theme",
  //... other configuration ...
}