/patterns-library

Please share, comment, make issues and work with us!

Primary LanguageJavaScript

Patterns Library v2

Build Status

Check out our Contribution File

Check out our Architecture File

Check out our Code of Conduct

We only export holistic and self contained WebComponents based on CustomElement, ShadowDom and HTML Templates.

We do not support Built-ins

Released Components

Alpha Released Components

Scaffolding

Simply, just run npm run new and follow on screen instructions

Layout and Reset CSS

Resetting CSS on the <body> or <html> is the responsibility of to the system that embeds the component. This is important for 100% width sized components like the Top content bar or the header.

Here an example on how it can look like:

<style>
  html, body, div, span, applet, object, iframe,
  h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  a, abbr, acronym, address, big, cite, code,
  del, dfn, em, img, ins, kbd, q, s, samp,
  small, strike, strong, sub, sup, tt, var,
  b, u, i, center,
  dl, dt, dd, ol, ul, li,
  fieldset, form, label, legend,
  table, caption, tbody, tfoot, thead, tr, th, td,
  article, aside, canvas, details, embed,
  figure, figcaption, footer, header, hgroup,
  menu, nav, output, ruby, section, summary,
  time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
  }
</style>

Polyfills

Please read here: Polyfills in the patterns library