$30 off During Our Annual Pro Sale. View Details »

Lessons From the Coupon Factory: Design Systems...

Lessons From the Coupon Factory: Design Systems at Scale

Slides from my University of Illinois Webcon talk on April 4, 2019.

Learn how we scaled our in-house CSS framework to a full fledged, cross-platform design system at Groupon. Everything from auditing the existing product to design tokens, documentation and implementation. A small team of designers and engineers worked together to create a robust, maintainable system that supports hundreds of product people across dozens of teams working across web, iOS and Android. You can apply these same lessons to your site or product, regardless of scale. We made plenty of mistakes so that you don't have to!

Mike Aparicio

April 04, 2019
Tweet

More Decks by Mike Aparicio

Other Decks in Design

Transcript

  1. LESSONS FROM THE COUPON FACTORY Design Systems at Scale Senior

    UI Engineer, Groupon @peruvianidol MIKE APARICIO ANY ^ image: chicagology.com
  2. DISCLAIMER • Our design system is still a work in

    progress. • A lot of what I’ll cover will be largely web-focused.
  3. CHALLENGES • Siloed teams working independently on similar problems •

    Design delivering static images for implementation
  4. CHALLENGES • Where does the framework end and the product

    begin? • Keeping our framework in sync with our design tools • More designers/developers = more deviations • Support for web only • OMG THREE DIFFERENT FRAMEWORKS • No full-time maintenance NEW
  5. PARTS OF A DESIGN SYSTEM • Design Principles • Visual

    Style Guidelines • UI Components • Content Guidelines (Voice & Tone) • Illustration Guidelines • Resources (Frameworks, Design Tools)
  6. Principles act as our design conscience. They are a guide

    to the rightness and wrongness of our designs and help us make a case for design decisions. - Groupon Design Principles
  7. WHAT IS OUR DESIGN SYSTEM? • Our Design System is

    the Sketch UI Kit! • Our Design System is the component library! • Our Design System is the style guide website! • We have a Design System?!?
  8. Desktop Web Design Decisions CSS Framework Marketing Site Mobile Web

    Sketch UI Kit iOS Android Design
 System
 Website Checkout Homepage Maps Search Product C Product B Product A
  9. Our Design System is a common language across design, engineering

    and product that describes how we create digital products. WHAT IS OUR DESIGN SYSTEM?
  10. Design tokens are the visual design atoms of the design

    system — specifically, they are named entities that store visual design attributes. We use them in place of hard-coded values (such as hex values for color or pixel values for spacing) in order to maintain a scalable and consistent visual system for UI development. - Salesforce Lightning Design System https://www.lightningdesignsystem.com/design-tokens/
  11. Desktop Web Design Decisions CSS Framework Marketing Site Mobile Web

    Sketch UI Kit iOS Android Design
 System
 Website Checkout Homepage Maps Search Product C Product B Product A
  12. iOS Tokens as
 Variables (Stylus) Web Design Decisions Token Data

    (JSON) Token Data (YAML) Android Token Data (XML) Sketch UI Kit
  13. VISUAL STYLE UI COMPONENTS • Color • Type • Spacing/Grid

    • Icons • Borders • Layers • Opacity • Shadows • Animation (CSS) (HTML/JS) • Buttons • Links • Form Inputs • Headers • Navigation • Alerts • Cards • Modals • Badges, etc.
  14. COLOR • 41 unique text colors • 40 unique background

    colors • One-off colors not in our palette • Inconsistent naming • Mix of hex values and CSS variables • HSLa/RGBa used for transparency
  15. COLOR • Adjusted contrast ratios • 050 to 600 for

    color names • 600 - text • 050 - backgrounds • 400/200/100 - specific uses • Added transparent colors
  16. TYPE • 60 unique font size declarations • em, rem,

    px, %, vw, inherit • 7px … 8em (128px!)
  17. TYPE • 60 sizes > 7 sizes • Separate type

    scale from weight/color • Reset H1…H6 styles to avoid using for 
 visual vs. semantic value
  18. SPACE Content
 Dictated by width/height - (border + padding)
 and/or

    line-height Padding Space within element Border Visual divider around element Margin Space between elements The Box Model WIDTH HEIGHT
  19. SPACE Inset
 Equal space (padding) around an element Squished Inset

    More space on sides than top/bottom Inline Margin between horizontal elements Stack Margin between vertical elements image: Nathan Curtis
  20. L/R: 32px T/B: 8px Line Height: 22.4px L/R: 16px T/B:

    7px, 6px Line Height: 13px L/R: 15px, 14px T/B: 0 Line Height: 40px L/R: 35px, 10px T/B: 0 Line Height: 35px L/R: 24px T/B: 18px L/R: 8px T/B: 0 Line Height: 18px L/R: 62px/12px T/B: 12px/10px L/R: 20px T/B: 8px/0 L/R: 0 (100% width) T/B: 0 Line Height: 13px L/R: 20px/0 T/B: 0 Line Height: 45px L/R: 35px T/B: 8px/20px
  21. SPACE • Define specific space values • Let content/padding dictate

    height rather than setting
 fixed pixel dimensions • Apply bottom margins only
  22. GRID • Eliminate the generic 12-column grid • Provide common

    CSS Grid-based layouts • Use grid/flexbox/floats at the component level
  23. common.png
 61k places-profile-icons.png
 2k checkout.png
 39k heartx.png
 5k map-pointers.png
 2k


    personalization.png 8k share-sprite.png
 2k bg-refer_cta_sprite.png
 1k star-rating.gif
 2k gift-wizard-calendar-icon.png
 1k ICONS
  24. ICONS • Move from icon font to SVG • Define

    a specific set of sizes/colors for icons • Make a distinction between UI and illustrative icons • Create a more diverse palette for illustrative icons
  25. CHALLENGES • Building consensus around design decisions • Advocating for

    and evangelizing the system • Implementing design tokens across web/iOS/Android • Keeping our design tools in sync with the system • Keeping our frameworks in sync with the system EVEN MORE
  26. • Creates a common language across platforms, disciplines • Less

    fidelity lost between concept and production • Saves developers time struggling with CSS • Saves designers time marking comps with values, QA’ing • Reduces time to production, code bloat • Provides consistency between multiple projects/teams • Allows rapid scaling, less re-inventing the wheel • Great tool for on-boarding new employees • Enables rapid, high-fidelity prototyping - ideal for user testing • Provides users with a consistent experience BENEFITS OF A DESIGN SYSTEM
  27. A design system isn’t a project. It is a product,

    serving products. - Nathan Curtis https://medium.com/eightshapes-llc/a-design-system-isn-t-a-project-it-s-a-product-serving-products-74dcfffef935
  28. VISUAL STYLE UI COMPONENTS • Color • Type • Spacing/Grid

    • Icons • Borders • Layers • Opacity • Shadows • Animation • Buttons • Links • Form Inputs • Headers • Navigation • Alerts • Cards • Modals • Badges, etc. • Color • Type • Spacing/Grid • Icons • Borders • Layers • Opacity • Shadows • Animation • Buttons • Links • Form Inputs • Headers • Navigation • Alerts • Cards • Modals • Badges, etc.
  29. SOME FINAL LESSONS • Systems are about process and people,

    not tech • Make a system that solves the problems you have (now) • It’s easier to ask forgiveness than get permission • Sell the results, not the system
  30. STAND ON THE SHOULDERS OF GIANTS Rachel Andrew
 @rachelandrew Jina

    Anne
 @jina Chris Coyier
 @chriscoyier Josh Clark
 @bigmediumjosh Nathan Curtis
 @nathanacurtis Sara Drasner
 @sarah_edo Derek Featherstone @feather Brad Frost @brad_frost Val Head @vlh Alla Kholmatova @craftui Una Kravets @una Zach Leatherman @zachleat Dan Mall @danmall Ethan Marcotte @beep Mina Markham @minamarkham Eric Meyer @meyerweb Diana Mounter @brocollini Yesenia Perez-Cruz @yeseniaa Robin Rendle @robinrendle Dave Rupert @davatron5000 Jen Simmons @jensimmons Jonathan Snook @snookca Sara Soueidan @sarasoueidan Luke Wroblewski @lukew