An Atomic Design and Pattern Lab friendly starting point for new Drupal 8 themes.
A Pattern Lab generated style guide can be found here (online style guide might not be up to date).
This theme is not meant to be usable as is. It is meant to be a starting point for development of new themes.
This theme is also meant to demonstrate Drupal template compatibility and Pattern Lab integration made possible by the Drupal Edition of Pattern Lab and Data Transform Plugin. For this reason many templates in the theme are actually unmodified Drupal Stable base theme templates.
Install and enable the Component Libraries module. No configuration is needed.
Prerequisites: npm installed.
In the Shila theme root directory run:
npm install
Prerequisites: git and Composer installed.
In the Shila theme root directory run:
git clone https://github.com/pattern-lab/edition-php-drupal-standard pattern-lab
In the pattern-lab
directory run:
composer install
In the file pattern-lab/config/config.yml
change sourceDir
and twigAutoescape
like so:
sourceDir: ../dist
twigAutoescape: false
If everything went well you should now be able to generate the static Pattern Lab site. In the pattern-lab
directory run:
php core/console --generate