Follow these steps to copy an existing theme’s files with the Kickstart task.
Unlike extending a base theme, which is a dynamic inheritance that applies your
src
files on top of the base theme on every build, the Kickstart task is a one
time inheritance.
Note that this task only works for themes that use the liferay JS Theme Toolkit, such as those created with the Liferay Theme Generator.
-
Navigate to your theme’s root folder and run
gulp kickstart
.Figure 1: Run the `gulp kickstart` task to copy a theme's files into your own theme.
-
Select where to search for the theme to copy. You can copy files from globally installed themes or themes published on the npm registry.
Figure 2: You can copy files from globally installed themes.
-
The theme’s files are copied into your own theme, jump starting development. Add your changes on top of these files.
Congrats! Now you have a head start to developing your theme.