Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Scaling Skyscanner's design system

Scaling Skyscanner's design system

Talk given at the React Edinburgh meetup on 5th April 2017.

Image credits on second last slide.

Tim von Oldenburg

April 05, 2017
Tweet

More Decks by Tim von Oldenburg

Other Decks in Technology

Transcript

  1. What we’re going to talk about —Design systems —Practices we

    apply —Obstacles we encounter(ed) —Lego 3
  2. Design systems “Backpack is a collection of design resources, reusable

    components and guidelines for creating Skyscanner products.” 4
  3. 6

  4. 7

  5. 8

  6. Encapsulation Every component in its own NPM package. bpk-component-button bpk-component-datepicker

    bpk-component-input … Each contains: —Markup —JavaScript —Styles 11
  7. Choice Leave details to the consumer Most of our components

    are stateless. But we ship stateful containers for common use cases, too. Accordion ‏ AccordionContainer Calendar ‏ Datepicker 14
  8. Composition Composing common patterns Button + Icon + Spinner <Button

    disabled={this.state.isLoading}> Search { this.state.isLoading ? <Spinner fill="grey" /> : <SearchIcon fill="white" /> } </Button> 15
  9. Composition (contd.) Composing common patterns Button + Icon + Spinner

    = Loading button <LoadingButton loading={this.state.isLoading}> Search </LoadingButton> 16
  10. 17

  11. Obstacles Teams use all kinds of technology stacks: Angular, Backbone,

    Coffeescript. —No prioritisation from Product Owners —The design system does not provide everything needed —Rewrites are too expensive —Risky investment at scale 19
  12. Upgrade paths: Sass Provide easy-to-adopt Sass mixins and variables ➡

    Achieve visual consistency fast and cheap. 20
  13. 21

  14. Upgrade paths: Other libraries/frameworks But what about molecules? ➡ Embed

    individual (complex) components using ReactDOM. - Angular? ngReact, react2angular - Anything else? This amazing PR 22
  15. Provide common tools For consistency and to get started: —ESLint

    config —Stylelint config —Webpack config ➡ create-react-app template create-react-app my-app --scripts-version=backpack-react-scripts 23
  16. Get your hands dirty Take your time to dig into

    product teams’ code bases and find ways to help them transition easily. 24
  17. 26

  18. Thanks! Oh btw, we’re hiring a Senior Front End Engineer

    to help us build the Backpack design system ! ➡ Get in touch! 27
  19. Images: —Tiny toy Lego plane: Sebastian Wahl —Design systems diagram:

    Stu Robson —Detailed Lego planes: Flickr —Colorful Lego plane: Flickr —Lego “Just Right”: Reddit 28
  20. Further links: —Backpack Design System —Atomic Design principles by Brad

    Frost —Ryan Florence - Don't Rewrite, React! 29