Copying an Existing Theme's Files

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.

  1. Navigate to your theme’s root folder and run gulp kickstart.

    Figure 1: Run the gulp kickstart task to copy a themes files into your own theme.

    Figure 1: Run the `gulp kickstart` task to copy a theme's files into your own theme.

  2. 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.

    Figure 2: You can copy files from globally installed themes.

  3. 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.

« Changing Your Base ThemeListing Your Theme's Extensions »
この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています