JavaScript CSS HTML Liquid
Switch branches/tags
v3.0.0-alpha.8 v3.0.0-alpha.7 v3.0.0-alpha.6 v3.0.0-alpha.5 v3.0.0-alpha.4 v3.0.0-alpha.3 v3.0.0-alpha.2 v3.0.0-alpha.1 v2.12.0 v2.11.1 v2.11.0 v2.10.0 v2.9.3 v2.9.2 v2.9.1 v2.9.0 v2.8.0 v2.7.2 v2.7.1 v2.7.1-alpha v2.7.0-alpha v2.6.2 v2.6.1 v2.6.0-alpha v2.5.1 v2.5.0 v2.4.4 v2.4.3 v2.4.2 v2.4.1 v2.4.0 v2.3.0 v2.2.1 v2.2.0 v2.1.1 v2.1.0 v2.0.1 v2.0.0 v2.0.0-alpha.3 v2.0.0-alpha.2 v2.0.0-alpha v1.3.0 v1.2.2 v1.2.1 v1.2.0 v1.1.3 v1.1.2 v1.1.1 v1.1.0 v1.0.0 v0.15.1 v0.15.0 v0.14.0 v0.13.1 v0.13.0 v0.12.0 v0.11.0 v0.10.1 v0.10.0 v0.9.1 v0.9.0 v0.8.1 v0.8.0 v0.1.7 v0.1.6 v0.1.5 v0.1.4 v0.1.3 v0.1.2 v0.1.1 v0.1.0 v0.0.5 v.0.0.3 v0.0.3 v.0.0.2 v0.0.1 @pattern-lab/uikit-workshop@1.0.0-alpha.7 @pattern-lab/uikit-workshop@1.0.0-alpha.6 @pattern-lab/uikit-workshop@1.0.0-alpha.4 @pattern-lab/uikit-workshop@1.0.0-alpha.3 @pattern-lab/uikit-workshop@1.0.0-alpha.2 @pattern-lab/plugin-tab@2.0.3-alpha.5 @pattern-lab/plugin-tab@2.0.3-alpha.4 @pattern-lab/plugin-tab@2.0.3-alpha.2 @pattern-lab/plugin-tab@2.0.3-alpha.1 @pattern-lab/plugin-tab@2.0.3-alpha.0 @pattern-lab/live-server@1.3.3-alpha.6 @pattern-lab/live-server@1.3.3-alpha.5 @pattern-lab/live-server@1.3.3-alpha.4 @pattern-lab/live-server@1.3.3-alpha.2 @pattern-lab/live-server@1.3.3-alpha.1 @pattern-lab/live-server@1.3.3-alpha.0 @pattern-lab/engine-underscore@2.0.0-alpha.7 @pattern-lab/engine-underscore@2.0.0-alpha.4 @pattern-lab/engine-underscore@2.0.0-alpha.3 @pattern-lab/engine-underscore@2.0.0-alpha.2 @pattern-lab/engine-twig@0.2.1-alpha.5 @pattern-lab/engine-twig@0.2.1-alpha.4 @pattern-lab/engine-twig@0.2.1-alpha.2 @pattern-lab/engine-twig@0.2.1-alpha.1
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Pattern Lab Logo

Pattern Lab

This monorepo contains the core of Pattern Lab / Node and all related engines, UI kits, plugins and utilities. Pattern Lab helps you and your team build thoughtful, pattern-driven user interfaces using atomic design principles.

If you'd like to see what a front-end project built with Pattern Lab looks like, check out this online demo of Pattern Lab output.

Build Status current release license Coverage Status code style: prettier node (scoped) Join the chat at Gitter

Using Pattern Lab

Refer to the core usage guidelines

Installation

As of Pattern Lab Node 3.0.0, installation of Editions is accomplished via the command line interface.

0 to 60mph

The below assume a new directory and project is required.

  1. Open a terminal window and following along below:
    mkdir new-project
    cd new-project
    npm init -y && npx @pattern-lab/cli -c patternlab init

    If you get an error stating that npx is not installed, ensure you are on npm 5.2.0 or later by running npm -v or install it globally with npm install -g npx. Learn more about npx.

  2. Follow the on-screen prompts to choose your Edition and a Starterkit should you want one.
  3. Run npm install one last time to ensure any transient packages from the CLI are installed.
  4. Open package.json and add the following to your scripts object
    "scripts": {
    + "patternlab": "patternlab"
    },
    This tells npm to look in the local node_modules/.bin directory for the patternlab CLI.
  5. In your terminal, run npm run patternlab <command>, where <command> is a documented method on the CLI, such as build, serve, or help.

Established npm projects

  1. Run the following command from a terminal:
    npm install @pattern-lab/cli --save-dev
  2. Open package.json and add the following to your scripts object
    "scripts": {
    + "patternlab": "patternlab"
    },
    This tells npm to look in the local node_modules/.bin directory for the patternlab CLI.
  3. In your terminal, run npm run patternlab init. Follow the on-screen prompts to choose your Edition and a Starterkit should you want one.

Ecosystem

Pattern Lab Ecosystem

Core, and Editions, are part of the Pattern Lab Ecosystem. With this architecture, we encourage people to write and maintain their own Editions, Starterkits, and even PatternEngines.

Changelog

Each package within this monorepo has its own changelog. Below are the main ones to watch:

Support for Pattern Lab

Pattern Lab / Node wouldn't be what it is today without the support of the community. It will always be free and open source. Continued development is made possible in part from the support of these wonderful project supporters. If you want to learn more about supporting the project, visit the Pattern Lab / Node Patreon page.

💯 Thanks for support from the following:

Contributing

Refer to the contribution guidelines.