2017
Founder @
Co- Founder @
Vladyslav Moyseenko, a.k.a vlad.dancer
&
COMPOSITION
ОО Design
BEM, Atomic Design, Astrum, Fractal..
what is it?
├── slider
├── slider.{vendor}
├── slider.scss
├── slider.js
├── slider.{json|yml}
└── slider.md
web
component
🛠 TWIG
🛠 Power-ups
🛠 Base themes
personal
🛠
reuse tags
🛠
{% source %}
{% include %} {% extends %} {% embed %}
{% import "@namespace/template.twig %}
{{ content.title|default('awesome') }}{% extends [
'component-slider.twig',
'component.twig',
'component.twig'
]%} usefull stuff
🛠 SassDoc
🛠 Styleguides styleguides.io, пример http://ux.mailchimp.com/patterns
🔮 ?
for your team
🛠 Common Components Library
🛠
PostCSS postcss.parts
pump up your css after scss
Stylus / Sass
OOP for your css'ing
🛠
Gulp
put your tasks on "rails"
Browser Sync
command center for your browsers
⚡️
☀️
⚡️☀️
alternatives
Fractal, Fabricator, Astrum, Mountain View...
an instance of Atomic Design
(PL)
is...
only PL
⚡️☀️
PL
⚡️☀️
source/
├── _data/ (global dummy data)
├── _patterns/ (your components)
├── 00-base/ (NS: @base)
├── 01-atoms/ (NS: @atoms)
├── 02-molecules (NS: @molecules)
├── 03-organisms (NS: @organisms)
├── 04-templates (NS: @templates)
└── 05-pages (NS: @pages)
└── _meta/ (header and footer templates for PL; include your 3rd party libraries here)
└── pattern-lab/
├── config/config.yml (PL's config)
├── public/ (PL's compiled HTML)
└── composer.json (PL's depth)
^ base theme
<-- another one
Mumbo-Jumbo Stuff
(PLS)
⚡️☀️
PLS
MOLECULES
ORGANISMS
PAGES
⚡️☀️
case for
PLS
topline-heading
session-card
MOLECULES
issues:
⚡️☀️
PLS
slider
ORGANISM
issues:
BONUS
aleksip/plugin-data-transform
⚡️☀️
PLS
promo-homepage
PAGE
issues:
⚡️☀️
PLS
⚡️☀️
PLS + Drupal
⚡️☀️
PLS + Drupal
issues:
promo-homepage
PAGE
Bricks
->ECK / Paragraphs
-> UI Patterns Layouts
-> Components
css classes, view modes
data provider for your components
map data and component
namespaces registry for your components
Show: Rendered Entity with view mode
Use: UI Patterns Layouts
Show: Fields
Use: UI Patterns Views
Views + UI Patterns
out of Drupal example
HTML -> Sketch
Sketch -> HTML
Issue: components discussion
Article: Component-based Drupal 8 theming