The Liferay Theme Generator generates themes for Liferay DXP. It is just one of Liferay JS Theme Toolkit’s tools.
A couple versions of the Liferay Theme Generator are available. The version you must install depends on the version of Liferay DXP you’re developing on. The required versions are listed in the table below:
|Liferay Theme Generator Version
npm install -g generator-liferay-theme@^7.x.x
|7.x.x or 8.x.x
|Same as above or below
npm install -g generator-liferay-theme@^8.x.x
npm install -g generator-liferay-theme@^9.x.x
See Version Compatibility Matrix for more information.
The Liferay Theme Generator includes the sub-generators listed in the table below:
|Command to run
|Generate layout templates with an interactive VIM.
|Create small, reusable, pieces of CSS and HTML for your themes.
The Layouts sub-generator provides the controls to create a layout template that meets your needs. You can add and remove rows and columns on-the-fly as you require. See Generating Layout Templates for more information.
While you can create themes using the tools you prefer, the Liferay Theme Generator is designed with theme development for Liferay DXP in mind. Its toolset and features help streamline theme development.