Blogs
Liferay IDE 3.1 M1 has been released. Previously i explored Liferay 7 theme development using theme generator as expalined on page. Since than I was curious to do it through Liferay IDE that seems to more convenient for developers. In Liferay IDE 3.1 M1, I have noticed that theme project templates are added. Explaining steps so that it might be helpful for the community.
Follow the below steps to create themes in Liferay 7 using IDE 3.1 M1.
Step-1:-
Go to Liferay workspace and create Liferay Module Project as shown in below. Select Project Template for theme.
 
After creating theme module project. Project structure is created to develop custom theme.
 
At this point if you look at the project structure, there is no build folder generated.
Step-2:-
Now build theme using following Gradle Task.
 
It will generate theme files in the build folder as shown below.
 
This files are generated from classic styled theme, if you want to override files just place them in the first-theme/src/main/webapp folder.
Like if you want to override portal_normal.ftl, create folder templates in first-theme/src/main/webapp/ as follows and place portal_normal.ftl.
 
Step-3:- Build theme using following gradle task.
  
It will package theme in war in the first-theme/build/libs folder. Deploy this WAR file to see the custom changes.

