/simple_theme

A Simple Drupal Theme to demo Pattern Lab integration

Primary LanguagePHP

Simple Theme for Drupal with Pattern Lab

Prerequisites

  • Node v6+
  • Php v5.4+
  • composer installed

Setup

npm install

Please ensure the Drupal module Component Libraries is installed.

Commands

Compile everything, kick off file watches, and then a local server:

npm start

Compile everything:

npm run compile

Test everything:

npm test

Note: tests must be enabled, and most are off by default

Orientation

  • pattern-lab/
    • source/
      • _patterns/ - Everything shown in Pattern Lab: contains Atoms, Molecules, etc folders.
      • _data/ - Global data available to Pattern Lab
  • templates/ - Drupal template files that can include stuff from the above _patterns/ folder