An atomic design and Pattern Lab friendly, component-based, fairly unopinionated starting point for new Drupal 8 themes. Shila theme can be used stand-alone with Pattern Lab, and currently supports both Pattern Lab Node and Pattern Lab PHP.
For more information and documentation, see the project Wiki.
Prerequisites: npm and Composer installed.
In the Shila theme root directory run:
npm run setup
The default setup is for Pattern Lab Node. Follow these additional instructions if you want to use Pattern Lab PHP.
In the Shila theme root directory run:
npm run setup-pattern-lab-php
Then open gulp-config.yml
and uncomment the dir
line in the Pattern Lab section.
To generate the Pattern Lab website run:
gulp plGenerate
- Lots of warnings about pattern files greater than 3 levels deep will be displayed. This should not be a problem.
- An error about a missing
favicon.ico
file might be displayed. This should not be a problem. - There might be one or more errors similar to
request to http://127.0.0.1:32853/?type=renderFile failed, reason: connect ECONNRESET 127.0.0.1:32853
. Try generating the site again until there are no such errors.
Prerequisites: Component Libraries module installed and enabled.