80
Web Unleashed — September 16, 2015 The Future is in pieces

The Future is in Pieces

  • Upload
    fitc

  • View
    315

  • Download
    4

Embed Size (px)

Citation preview

Page 1: The Future is in Pieces

Web Unleashed — September 16, 2015

The Future is in pieces

Page 2: The Future is in Pieces
Page 3: The Future is in Pieces
Page 4: The Future is in Pieces

Wired Redesign (2002)

Page 5: The Future is in Pieces

Simple Blog Designs

Page 6: The Future is in Pieces

Coding like it’s 2003#header h1, #header h2 { font-size:13px; font-weigh… }#header h1 { color: #680; float:right; padding-b…}#header h2 { float:left; padding:18px 20px; posi…}#header h2 img { position:absolute; left:0; top:0; }#header h2 a { text-decoration:none; color:#333; }

#main h2 {text-transform:uppercase; font-weight:…}#main h2 a {text-decoration:none; color:#444;}#main h2 a:hover {color:#680;}

#main .article.inside h1 { text-transform:uppercase;…}#comments .comment .meta .authorname { text-transfo… }#comments .comment .meta .commentnumber a { float: … }

Page 7: The Future is in Pieces

Wait what?#comments .comment .meta .authorname { }#comments .comment .meta .commentnumber a { }

Page 8: The Future is in Pieces

Wait what?#comments .comment .meta .authorname { }#comments .comment .meta .commentnumber a { }

Page 9: The Future is in Pieces
Page 10: The Future is in Pieces
Page 11: The Future is in Pieces
Page 12: The Future is in Pieces
Page 13: The Future is in Pieces
Page 14: The Future is in Pieces
Page 15: The Future is in Pieces
Page 16: The Future is in Pieces
Page 17: The Future is in Pieces

Patterns

Page 18: The Future is in Pieces
Page 19: The Future is in Pieces
Page 20: The Future is in Pieces
Page 21: The Future is in Pieces
Page 22: The Future is in Pieces
Page 23: The Future is in Pieces
Page 24: The Future is in Pieces
Page 25: The Future is in Pieces

Identify and Document Patterns

Page 26: The Future is in Pieces
Page 27: The Future is in Pieces

<div>

Page 28: The Future is in Pieces

<div>

Page 29: The Future is in Pieces

? { }

Page 30: The Future is in Pieces

Categorization

Page 31: The Future is in Pieces

Categorization

Base

Layout

ModuleState

Theme

Page 32: The Future is in Pieces
Page 33: The Future is in Pieces

Sidebar Content

Header

Page 34: The Future is in Pieces

<div class="layout-header">

Page 35: The Future is in Pieces

Customized List

Button

Tabs

Page 36: The Future is in Pieces

<ul class="tabs">

Page 37: The Future is in Pieces

Large

Search

Dark

Small

Page 38: The Future is in Pieces

<button class="button button-dark">

Page 39: The Future is in Pieces
Page 40: The Future is in Pieces

<div class=“modal”> <div class=“modal--header”></div> <div class=“modal--body”></div> <div class=“modal--footer”></div></div>

Page 41: The Future is in Pieces

Naming Convention

❖ .btn❖ .btn-variation❖ .btn--component

❖ .btn❖ .btn--variation❖ .btn__component

Page 42: The Future is in Pieces
Page 43: The Future is in Pieces

.modal > .btn

Page 44: The Future is in Pieces

.modal > .btn

Page 45: The Future is in Pieces

.btn-slim

Page 46: The Future is in Pieces

All the things// Modules // --------------------------------------- @import "btn"; @import "img"; @import "layout"; @import "nav"; @import "tables"; @import "forms"; @import "section"; @import "fluid_container"; @import "table_filter"; @import "modal"; @import "dropdown"; @import "flags"; @import "progress"; @import "arrows"; @import "box";

Page 47: The Future is in Pieces

All the thingsbtn.mu img.mu layout.mu nav.mu table.mu forms.mu section.mu fluid_container.mu table_filter.mu modal.mu dropdown.mu flags.mu progress.mu arrows.mu box.mu

Page 48: The Future is in Pieces

All the things<!-- btn.mu -->

<button class="btn">{{button}}</button>

Page 49: The Future is in Pieces

Components

JSON

CSSTemplate

HTML

JavaScriptl11n

Page 50: The Future is in Pieces

React ComponentsReact.render( <Video onError={ onError } videoId={ videoId } /> );

Page 51: The Future is in Pieces

React Components<div class='vimeo'> <div class='vimeo-loading'> <svg>...</svg> </div> <div class='vimeo-image'> <button type='button' class='vimeo-play-button'> <svg>...</svg> </button> </div> <div class='video-embed'> <iframe>...</iframe> </div> </div>

Page 52: The Future is in Pieces

Web Components<gold-cc-cvc-input card-type="amex"> </gold-cc-cvc-input>

Page 53: The Future is in Pieces

Web Components <style> :host { display: block; } iron-icon { margin-left: 10px; } </style>

<template> <paper-input-container id="container" disabled$="[[disabled]]" no-label-float="[[noLabelFloat]]" always-float-label="[[_computeAlwaysFloatLabel(alwaysFloatLabel,placeholder)]]" invalid="[[invalid]]"> <label hidden$=“[[!label]]">[[label]]</label> </template>

Page 54: The Future is in Pieces

“I’m so alone.”

Page 55: The Future is in Pieces

Give a hoot.

Page 56: The Future is in Pieces

* + *

Page 57: The Future is in Pieces

Give a hoot.Don’t pollute

…the global namespace.

Page 58: The Future is in Pieces

.btn + .btn.card + .card.input + .input

Page 59: The Future is in Pieces

.input + .btn ?

Page 60: The Future is in Pieces

Helpers

Page 61: The Future is in Pieces

.layout-spacer {}.m5 / .m10 / .mi6

Page 62: The Future is in Pieces

Media queries killed the modular star

Page 63: The Future is in Pieces
Page 64: The Future is in Pieces

If Module A in Module B in Layout C Then I’m fucked.

Page 65: The Future is in Pieces

If I have this much room, do this.

Page 66: The Future is in Pieces

Element Queries

Page 67: The Future is in Pieces

Element Queries

Page 68: The Future is in Pieces

“Element Query” declarations in JavaScript or in HTML, not in CSS

Page 69: The Future is in Pieces
Page 70: The Future is in Pieces

❖ I honestly didn't think you could even USE emoji in variable names. Or that there were so many different crying ones.

Page 71: The Future is in Pieces

<div class="😭">help me</div>.😭 { color: red; font-size: 100px; }

Page 72: The Future is in Pieces

Create Standards For Your CSS

Page 73: The Future is in Pieces

Code Review Your CSS

Page 74: The Future is in Pieces

Styleguides.io

Page 75: The Future is in Pieces

Patternlab.io

Page 76: The Future is in Pieces

Shopify Style Guide

Page 77: The Future is in Pieces
Page 78: The Future is in Pieces

Patterns

❖ Create a conversation around what exceptions should or should not exist

❖ Create a conversation around what components should or should not exist

Page 79: The Future is in Pieces

The Future is in Pieces

❖ Move towards composable UIs

❖ Ensure your modules are self-contained

❖ Frameworks like React are making this easier

❖ Communicate!

Page 80: The Future is in Pieces