Skip to content
The standard edition of Pattern Lab to be used with Drupal.
Branch: master
Clone or download
Latest commit 5517fc0 Jul 12, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
config prepping files for v2 May 22, 2016
core prepping files for v2 May 22, 2016
public First draft Apr 13, 2016
source adding url function after update Aug 11, 2016
.gitignore adding generated config files to gitignore May 25, 2016
LICENSE First draft Apr 13, 2016 Update Jul 12, 2017
composer.json Include config entry in composer.json and set process-timeout to 0. Jul 9, 2017

Build Status

Pattern Lab Twig Standard Edition for Drupal

The Standard Edition for Drupal gives developers and designers a clean and stable base from which to develop a Drupal compatible pattern library.


First Time Install

  1. Run composer create-project pattern-lab/edition-drupal-standard FOLDERNAME (Assuming you wanted it in a directory called FOLDERNAME).
  2. Select a starterkit from menu. If asked about replacing files, do it.
  3. Commit new files generated.

Using It

After installing and committing, others cloning the repo need to run composer install to install dependencies.

Helpful Commands

These are some helpful commands you can use on the command line for working with Pattern Lab.

One line start

This will compile PL and watch for changes while running the local server:

composer start

Generate Pattern Lab

To generate the front-end for Pattern Lab type:

php core/console --generate

Start a server to view Pattern Lab

You can use PHP's built-in web server to review your Pattern Lab project in a browser. In a separate window type:

php core/console --server

Then open http://localhost:8080 in your browser.

Install a StarterKit

To install a near-empty StarterKit as a starting point for your project type:

php core/console --starterkit --init

To install a specific StarterKit from GitHub type:

php core/console --starterkit --install <starterkit-vendor/starterkit-name>

Updating Pattern Lab

composer update

Other Documentation

These are crucial pieces that contains documentation that is good to understand:

You can’t perform that action at this time.