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.
The theme includes a gulpfile.js
with some useful tasks. However, using Gulp and these tasks is completely optional.
The default task compiles any Sass files, generates Pattern Lab, launches a Browsersync server at http://localhost:3000
and then keeps watching for any changes made to Sass, Twig and other files.
For the default task, in the Shila theme root directory run
gulp
To list all available tasks with short descriptions, in the Shila theme root directory run
gulp --tasks
- 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.