Generate New Theme With Drush

Create a new theme with drush gen theme and follow the prompts.

Drush generate theme prompts

 Saying yes to Sass will set you up with package.json to install dependencies and compile sass.

Drush generate theme output

 Take note of the directory it is created in, you may prefer to keep it in themes/custom.

Customize the generated js or remove it and the entry in *.libraries.yml so that the default "it works!" doesn't appear in the console.

Topics