Legacy Knowledge Base
Published Jun. 30, 2025

Installing the Liferay Theme Generator for Liferay DXP 7.0

Written By

Koustuv Dhani

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

How can we install the Liferay Theme Generator for creating themes in Liferay DXP 7.0?

Environment

Liferay DXP 7.0

Resolution

The Liferay Theme Generator allows developers to quickly set up, develop, and deploy themes with ease by leveraging popular libraries like Gulp and Yeoman. To get started, follow these steps:
1. Ensure that Node.js is installed on your system. The recommended version for Liferay Portal 7.0 is v10.24.1. If you don't have Node.js installed, you can download it from here.
2. Next, you'll need to install the Gulp and Yeoman libraries, which are key dependencies for the Liferay Theme Generator. For compatibility with Liferay Portal 7.0, install the following versions:
Gulp version 3.9.1
Yeoman version 3.1.1
3. Install the Liferay Theme Generator version 8.0.2 using the command:
npm install -g generator-liferay-theme@8.0.2
4. Once the dependencies are installed, navigate to the directory where you want to create your theme. Use the following command to generate the theme:
yo liferay-theme
5. After your theme is ready, you can deploy it to your configured Liferay DXP instance with a single command:
gulp deploy


Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base