Taken from the Future of Web Design, San Francisco 2015 Conference. https://futureofwebdesign.com/san-francisco-2015/
In the last few years, we’ve seen an emergence of a modular way of thinking about code and design. We’ve seen the rise of SMACSS, BEM, and Atomic Design. This talk will look at those modular concepts and how they can streamline development for large and long-running projects. We’ll also look at how these approaches can ease responsive design and development. Lastly, we will look at where the modular approach is going in the future as Web Components slowly make their way into browsers and application frameworks.
18. • Describes how to approach site design and
development
• No GitHub repo, not a library, not a framework, no
tools
• Techniques can be applied to static CSS, Sass,
React, Web Components, etc.
88. // Creates a MediaObjectElement class
// that extends HTMLElement.
class MediaObjectElement extends HTMLElement {
createdCallback() {
var shadowRoot = this.createShadowRoot();
shadowRoot.innerHTML = 'Shadow DOM contents...';
}
}
// Registers the `<custom-element>` element for use.
document.registerElement('custom-element',
MediaObjectElement);
89. • Likely a year before all browsers support
everything.
• JavaScript Dependent
• Phillip Walton’s Talk on Modular CSS with Web
Components
http://snk.ms/27
90. • Think about standardized and modular design.
• Frameworks like React can help.
• Web Components are coming. (So is winter.)