Skip to content

kurowski/shila-drupal-theme

 
 

Repository files navigation

Shila theme for Drupal 8

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

Background

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.

Installing required dependencies

Component Libraries module

Install and enable the Component Libraries module. No configuration is needed.

Installing development dependencies

Prerequisites: npm installed.

In the Shila theme root directory run:

npm install

Integrating with Pattern Lab

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

About

An Atomic Design and Pattern Lab friendly starting point for new Drupal 8 themes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.4%
  • HTML 40.6%