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 Version||Liferay Theme Generator Version||Command|
|7.0||7.x.x or 8.x.x||Same as above or below|
|7.2||9.x.x||`npm install -g generator-liferay-theme|
The Liferay Theme Generator includes the sub-generators listed in the table below:
|Sub-generator||Command to run||Description|
|Layouts||Generate layout templates with an interactive VIM.|
|Themelets||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.