data-driven design systemsdrupalnights.org/sites/default/files/events/drupal... · design...

57
DATA-DRIVEN DESIGN SYSTEMS: HOW TO CREATE A LIVING STYLEGUIDE THAT DOESN’T LIE Dani Nordin & Salem Ghoweri | Pegasystems | December 2016

Upload: others

Post on 10-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

DATA-DRIVEN DESIGN SYSTEMS: HOW TO CREATE A LIVING STYLEGUIDE THAT DOESN’T LIEDani Nordin & Salem Ghoweri | Pegasystems | December 2016

Page 2: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

@danigrrl, @sghoweri | #DesignSystems

Shameless self-promotion

Page 3: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

@danigrrl, @sghoweri | #DesignSystems

There’s a few more in here

Page 4: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

HI, I’M DANI▸ Director of Digital

Experience

▸ Focused on helping the team create exceptional experiences at speed and scale

▸ Geeks out on process @danigrrl

Page 5: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

HI, I’M SALEM▸ Senior Front-end

Architect

▸ Focused on scalable Design Systems + Web Performance

▸ Really hates documentation @salem_ghoweri

Page 6: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

THE WAY WE USED TO DO THINGS

Page 7: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WE NEED TO REDUCE COSTS AND MAKE ALL THESE WEBSITES FEEL LIKE THEY’RE FROM THE SAME COMPANY. WHY CAN’T YOU JUST USE TEMPLATES?

OUR CEO

OUR DIRECTIVE

Page 8: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

OUR DIRECTIVE

THE OLD APPROACH

▸ Design components on pega.com are constantly evolving as marketing and brand evolves

▸ Other sites (PDN, SalesHub) “borrow” components from pega.com, often without accounting for content and audience needs

▸ Changing elements in one site leads to rework in others; look and feel across sites becomes inconsistent and out of date.

Page 9: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 10: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 11: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

THE TURNING POINT

Page 12: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 13: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 14: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 15: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 16: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

THE TURNING POINT

WHEN THINGS CAME TO A HEAD

▸ Stakeholders across the PDN felt their voices weren’t being heard

▸ Marketing-driven designs didn’t reflect the focus of the content or audience: technical documentation, support and training

▸ One single project (landing pages) took almost a year and a half to launch

Page 17: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

What to do?

Page 18: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

Atomic design, baby!

Page 19: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WHAT WE DID NEXT

BENEFITS OF A COMPONENT-DRIVEN DESIGN SYSTEM

▸ Consolidate front-end code, improving site performance

▸ Make design more efficient and consistent, while maintaining flexibility

▸ Make the transition from wireframe or sketch to HTML prototype faster

▸ Impress our coworkers and executives

▸ Win fabulous prizes

Page 20: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WHAT WE DID NEXT

START WITH THE BASICS

▸ Who creates things across the websites?

▸ What information do they need to do their job well?

▸ What tools do they use?

UX FRONT END

MARKETERS TECH WRITERS

VISUAL DESIGNERS

Page 21: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WHAT WE DID NEXT

ARE THERE ANY OTHER USE CASES TO CONSIDER?

▸ Visiting designers and contractors

▸ 3rd-party implementation partners

▸ Seasonal interns

▸ Remote team members

▸ Executives and external audiences

Page 22: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WHAT WE DID NEXT

ESTABLISH CLEAR PRINCIPLES AND STANDARDS

Establish clear design principles

Page 23: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

Document design standards

Page 24: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

EVERYONE NEEDS SOMETHING DIFFERENT

▸ Rules: dos and don'ts. Best practices. Coding standards.

▸ Facts: use this snippet of code. These color hexes are available. Here's our modular scale.

Page 25: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WHAT KIND OF DOCUMENTATION?

Page 26: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WHAT KIND OF DOCUMENTATION?

STYLEGUIDES. DESIGN SPECS. CONTENT SPECS.

Page 27: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

47 PAGES.

Page 28: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

47 PAGES. LAST-UPDATED: MARCH 2015

Page 29: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 30: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 31: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

Gray, Lightest

Blue, Base (Aka, “Blue”)

some

, sometimes.

some

Page 32: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

OH, DOCUMENTATION. I KNOW THAT.

Page 33: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

STATIC DOCUMENTATION:▸ Needs to be maintained, updated to keep up with the

evolution of your design system or pattern library

▸ Lacks contextual awareness

▸ Can’t accurately represent the “thing” being shipped—different medium means small details don’t always translate easily

Page 34: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

TECHNIQUES FOR MANAGING THE CHAOS

Page 35: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

SINGLE SOURCE OF TRUTH

Page 36: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

…is the practice of structuring information models and associated schemata such that every data element is stored exactly once

- wikipedia.org/wiki/single_source_of_truth

TEXT

Page 37: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

USE REAL DATA WHEN DOCUMENTING SPECIFICS▸ Use namespaced Sass Maps to store similar types of

design details in a single place (ex. colors, spacing, fonts)

▸ Export that data in a format that other systems can be wired up to consume, like JSON

▸ Work to find ways of incorporating that actual data into the artifacts that we regularly produce: pattern libraries, living styleguides, markdown documentation, Twig templates, Sketch comps, etc.

Page 38: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

TYPOGRAPHIC MODULAR SCALE

Page 39: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 40: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

https://github.com/modularscale/modularscale-sass

Page 41: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

MODULARIZE YOUR TYPOGRAPHY

https://patterns-dev.pega.com/patterns/06-docs-05-typography@inprogress/[email protected]#size-standards

$ms-base: 1rem;$ms-ratio: 1.2;@import 'modularscale-sass/stylesheets/modular-scale';

$modular-scale: ( 'font_sizes': ( xxxxlarge: ms(8) 4, // ~68.797px xxxlarge: ms(7) 4, // ~57.331px xxlarge: ms(6) 3, // ~47.776px xlarge: ms(4) 2.5, // ~33.178px large: ms(2) 1.8, // ~23.04px medium: ms(1) 1.6, // ~19.2px base: ms(0) 1.5, // ~16px small: ms(-1) 1.3, // ~14.222px xsmall: ms(-2) 1 // ~12.642px ));

Page 42: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

USE A MIXIN TO SIMPLIFY USING SASS MAP VALUES

@mixin font-size($font-size, $line-height: '') { @if ($line-height == '') { $line-height: nth(

map-get-deep($modular-scale, 'font_sizes', $size), 2);

} font-size: nth( map-get-deep($modular-scale, 'font_sizes', $size), 1); line-height: #{$line-height}rem;}

Page 43: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

USE A MIXIN TO SIMPLIFY USING SASS MAP VALUES

h1 { @include font-size(xlarge);}

Page 44: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

AUTO-GENERATE UTILITY CLASSES

h1 { @include font-size(xlarge);}

Page 45: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

MOBILE-FIRST, RESPONSIVE BREAKPOINTS

Page 46: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

MODULARIZE YOUR TYPOGRAPHY@import 'breakpoint-sass/stylesheets/_breakpoint';

$breakpoints: ( 'xsmall' '480px', 'small' '720px', 'medium' '1024px', 'large' '1200px') !default;

@each $breakpoint in $breakpoints { $alias: nth($breakpoint, 1); $condition: nth($breakpoint, 2); @include add-breakpoint(quote($alias), unquote($condition));}

Page 47: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

COLOR SWATCHES

Page 48: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

SPACING SCALE$spacing-scale: ( spacing: ( 'default': ( xlarge: 64px large: 32px, medium: 16px, small: 8px, xsmall: 4px, ), 'squished': ( large: 16px 32px,

medium: 9px 16px, …

Page 49: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

PROVIDE TOOLS TO MAKE REFERENCING YOUR DOCUMENTATION EASIER

Page 50: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

MAKE IT EASY TO FIND, DOWNLOAD ASSETS

Page 51: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites
Page 52: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

AUTOMATICALLY SHOW PATTERN VARIATIONS

Johnny Appleseed

Page 53: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

DISPLAY PATTERN-SPECIFIC DOCUMENTATION IN-CONTEXT

Page 54: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

PATTERN USAGE, LINEAGE

Page 55: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

INCLUDE ACTUAL EXAMPLES OF THE DEFAULT PATTERNS, INCLUDING VARIATIONS

Page 56: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

THE HOLY GRAIL:

TWIG.

Page 57: DATA-DRIVEN DESIGN SYSTEMSdrupalnights.org/sites/default/files/events/Drupal... · Design components on pega.com are constantly evolving as marketing and brand evolves Other sites

WHAT’S NEXT?