3. Installing Volto Light Theme – Customizing Volto Light Theme

3. Installing Volto Light Theme#

Follow the steps below to install and configure VLT in your project. VLT provides a clean and modern design with ready-to-use blocks and components.

3.1. Step 1: Install Volto Light Theme#

To install VLT, navigate to the frontend/packages/volto-my-project folder and run the following command:

Note

For now we'll be using an alpha release, so we need to specify the correct version.

pnpm install @kitconcept/volto-light-theme@6.0.0-alpha.2

While in your project package folder, add VLT to the addons list in your package.json, as follows:

"addons": ["@kitconcept/volto-light-theme"],

3.2. Step 2: install block add-ons#

Volto Light Theme comes with several pre-configured add-ons that provide basic blocks for your website. If you'd like to include them, you can add them in the addons section in your package.json, but this is not required.

Here is the list of recommended addons to install, including VLT, which should be the last element:

"addons": [
  "@eeacms/volto-accordion-block",
  "@kitconcept/volto-button-block",
  "@kitconcept/volto-heading-block",
  "@kitconcept/volto-highlight-block",
  "@kitconcept/volto-introduction-block",
  "@kitconcept/volto-separator-block",
  "@kitconcept/volto-slider-block",
  "@kitconcept/volto-light-theme"
],

3.3. Step 3: configure Volto Light Theme as the theme provider#

To leverage a cohesive set of styles, components, and design patterns that align with Volto's best practices, you need to set VLT as your theme provider.

Open the volto.config.js file in your frontend folder, and modify it as shown below.

const addons = ['volto-project-title'];
const theme = '@kitconcept/volto-light-theme';

module.exports = {
  addons,
  theme
};

You'll need to restart your Plone frontend to see the changes.

That's it! Your project should now be using Volto Light Theme with its additional blocks and components.