Skip to content

An atomic design and Pattern Lab friendly, component-based, fairly unopinionated starting point for new Drupal 8 themes

License

Notifications You must be signed in to change notification settings

Binbiriz/shila-drupal-theme

 
 

Repository files navigation

Shila theme for Drupal 8 🐕

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.

Setup

Prerequisites: npm and Composer installed.

In the Shila theme root directory run:

npm run setup

Additional setup for Pattern Lab PHP

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.

Generating the Pattern Lab website

To generate the Pattern Lab website run:

gulp plGenerate

Known issues with Pattern Lab Node

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

Integrating with Drupal

Prerequisites: Component Libraries module installed and enabled.

About

An atomic design and Pattern Lab friendly, component-based, fairly unopinionated starting point for new Drupal 8 themes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 63.5%
  • HTML 35.1%
  • JavaScript 1.1%
  • PHP 0.3%