COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research...

54
COMPONENT BASED DESIGN AND DEVELOPMENT

Transcript of COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research...

Page 1: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

COMPONENT BASEDDESIGN AND DEVELOPMENT

Page 2: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

CRISTINA CHUMILLAS / @chumillas ckrina

Designer and frontend developer at Ymbra

Page 3: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

WHAT ARE WE GOING TO TALKABOUT

ComponentsCSS MethodologiesDesign SystemsStyles GuidesIn Drupal

Page 4: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

WEB PROJECTS

Page 5: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 6: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 7: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 8: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

COMPONENTS

Page 9: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 10: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 11: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 12: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 13: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 14: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

CSS METHODOLOGIES

Page 15: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

BEM(Block Element Modifier)

.site-search {} /* Block */ .site-search__field {} /* Element */ .site-search--full {} /* Modifier */

Page 16: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

BEM(Block Element Modifier)

<div class="block-name__wrapper"> <div class="block-name"> <h2 class="block-name__title">Block title</h2> <p class="block-name__text">Block text</p> </div> </div>

Page 17: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

BEM(Block Element Modifier)

<div class="block-name--big"> <h2 class="block-name__title">Block title</h2> <p class="block-name__text">Block text</p> </div>

Page 18: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

SMACSSBaseLayoutModule (Components)StateTheme

Page 19: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

SMACSS

Page 20: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

DESIGN SYSTEMS

Page 21: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

Everything that makes up your product.

--Mark Otto, FOWA 2013

Everything.Typography, layouts and grids, colors, icons, components, coding conventions

Page 22: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

“We’re not designing pages, we’redesigning systems of components.”

--Stephen Hay

Page 23: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 24: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 25: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

WHY DESIGN SYSTEMS?Reusable work - COMPONENTS

More efficient projects

Large-scale ready code

Everybody knows how everything works

Integrates multi-disciplinary workflow

Page 26: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

CARD DESIGN

Page 27: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 28: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

ATOMIC DESIGN

Page 30: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 31: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 32: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 33: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 34: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 35: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

WHEN?

Page 36: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

WIREFRAMESStatic wireframes vs HTML Wireframes

Page 37: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

STATIC WIREFRAMESThey’re abstractionsThey’re full of assumptionsThey’re verboseThey’re a crutch

Page 38: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

HTML WIREFRAMESThey get into the browser quickerThey reinforce the notion that you’re creating a websiteThey’re interactiveThey allow for living, breathing annotationsThey lay the foundation for the final product

Page 39: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

DESIGNING IN THE BROWSERPSD/ for early planning/research phasesThe composition in the browserMake decisions in the browserReusable work

Page 40: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

STYLE GUIDESDocumentation of a Design System

Page 41: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 42: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

WHY?Improve User ExperienceEasy onboarding of new team membersEfficient Design and DevelopmentMakes Testing easier

Page 43: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 44: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.
Page 45: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

STYLEGUIDE DRIVENDEVELOPMENT(SDD)

Style guides that are generated directly from the styledefinition sources

Page 46: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

STYLE GUIDESDrupal Style Guide module

KSS (Knyle Style Sheets) (Zen 6)

Pattern Lab

Page 47: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

STYLE GUIDES - RESOURCESstyleguides.io

Articles, Books, Podcasts, Talks, Tools, Examples, etc.

Page 48: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

IN DRUPAL

Page 49: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

ADAPT TO AGNOSTIC STYLE GUIDES1. Wrapping components2. Changing default markup

Page 50: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

UI COMPONENTS TO DRUPAL COMPONENTS

CODINGField formatterhook_alterProcess and preprocess functions...

Page 51: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

UI COMPONENTS TO DRUPAL COMPONENTS

DISPLAY SUITEView modes

Page 52: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

UI COMPONENTS TO DRUPAL COMPONENTS

DISPLAY SUITEField templates

Page 53: COMPONENT BASED - 2015.drupalcamp.es · DESIGNING IN THE BROWSER PSD/ for early planning/research phases The composition in the browser Make decisions in the browser Reusable work.

UI COMPONENTS TO DRUPAL COMPONENTS

PANELSCustom PanesMini PanelsContext