Show Menu
Cheatography

Pattern Lab Cheat Sheet (DRAFT) by

Pattern Lab terminology

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Basics

Atoms
Basic Building Blocks, Most simple Components
Headings, Links, Colors, Buttons
Molecules
Combin­ation of Atoms
Breadcrumb Naviga­tion, Form Unit (e.g. Label + Textfield + Button)
Organisms
Combin­ation of different Molecules and/or Atoms
Header, Footer, Full Form
Templates
Raw Page: Full Layout, No Styling, "­Lorem ipsum" Content
Raw Product Overview Page
Pages
Full Page: Full Layout, Full Styling, Realistic Content
Product Overview Page with Realistic Content

Global Files

_data.json
Global Data Provider
_listI­tem­s.json
Like Global Data Provider, but for List of Items (up to 12 Items)
annota­tio­ns.json
Docume­ntation / Notes / Specif­ication

Data Provider

Global
_data.json
Overri­dable
Embeddable
Style Modifier
{{> atoms-­but­ton­:pr­imary }}
?
?
Inline Parameter
{{> atoms-­but­ton­("la­bel­": "­Click Me!")
Not Overri­dable
?
Pattern Specific
button.json
?
?
Pseudo Pattern
button­~pr­ima­ry.json
?
Not Embeddable
Global List Items
_listi­tem­s.json
Overri­dable
?
List Items
button.li­sti­tem­s.json
?
?

Template Syntax*

{{ label }}
Outputs value from data provider
{{{ label }}}
Outputs HTML value from data provider
{{ img.sq­uar­e.url }}
Outputs nested value from data provider
{{> atoms-­button }}
Includes given pattern
{{# showBu­ttons }} {{> atoms-­button }} {{/ showBu­ttons }}
Includes given pattern when condition is met
{{# listIt­em.five }} {{> atoms-­button }} {{/ listIt­ems.five }}
Includes given pattern five times, always with different data
*Pattern Lab uses Mustache syntax for it's templates.

States

Undefined
button­s.m­ustache
no dot
In Progress
buttons@inprogress.mustache
red dot
In Review
buttons@inreview.mustache
yellow dot
Complete
buttons@complete.mustache
green dot