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

Building a UI styleguide with Ember

Building a UI styleguide with Ember

How big should we make our buttons? What’s the colour code of our logo? How do we display error states on our forms?

Did you know that Ember-CLI’s powerful addon system can be used to build a kit of reusable UI components? In this talk, you will learn how to build your own styleguide addon and how to use it to keep your UI consistent across apps.

Frédéric Soumaré

March 19, 2019
Tweet

More Decks by Frédéric Soumaré

Other Decks in Programming

Transcript

  1. -Eric A. Meyer I envy “the kids”, the ones just

    starting to learn front end now. They’re likely never going to know the pain of float drop, or wrestling with inline blocks, or not being able to center along one axis.
  2. app/ & addon/ folders app/ addon/ app/ The Ember Addon

    The Ember App exports automagic
 “merge” manual
 imports
  3. • T Remember to add ember-cli-htmlbars to the addon’s packages

    deps https://github.com/ember-cli/ember-cli/issues/4436 #helpwanted
  4. Manage shared styles in your component kit my-ui-kit/addon/styles/mu-ui-kit.css Automatically include

    SCSS stylesheets from the addon my-ui-kit/app/styles/mu-ui-kit.css Manually include stylesheets from the addon