The Great State of Design with CSS Grid Layout and Friends

149
Great THE Design STATE OF

Transcript of The Great State of Design with CSS Grid Layout and Friends

Page 1: The Great State of Design with CSS Grid Layout and Friends

Great THE

DesignSTATE OF

Page 2: The Great State of Design with CSS Grid Layout and Friends
Page 3: The Great State of Design with CSS Grid Layout and Friends
Page 4: The Great State of Design with CSS Grid Layout and Friends
Page 5: The Great State of Design with CSS Grid Layout and Friends

Steve Jobs

Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.

‘‘

Page 6: The Great State of Design with CSS Grid Layout and Friends

I’m excitedto start working on this project!

Page 7: The Great State of Design with CSS Grid Layout and Friends

Six moreprojects are also kicking off?

Page 8: The Great State of Design with CSS Grid Layout and Friends

How many revisions? For each screen sizein Photoshop?

Page 9: The Great State of Design with CSS Grid Layout and Friends

Wait, isn’t this out of scope?

Page 10: The Great State of Design with CSS Grid Layout and Friends

Did you just sayInternetExplorer 8?

Page 11: The Great State of Design with CSS Grid Layout and Friends

Ping! Ping!

Ping!

Ping!

Page 12: The Great State of Design with CSS Grid Layout and Friends

8 incomingmeeting requests?

Page 13: The Great State of Design with CSS Grid Layout and Friends

Time

Excitement

Page 14: The Great State of Design with CSS Grid Layout and Friends

Time

Excitement

Page 15: The Great State of Design with CSS Grid Layout and Friends

a feeling of being satisfied with how things are and not wanting

to try to make them better

noun | com·pla·cen·cy | \kəm-ˈplā-sən(t)-sē\

complacency

Page 16: The Great State of Design with CSS Grid Layout and Friends

‘‘Douglas Adams

I love the whooshing noise they make as they go by.

I love deadlines.

Page 17: The Great State of Design with CSS Grid Layout and Friends

Component Design

Page 18: The Great State of Design with CSS Grid Layout and Friends

Data-informedvover

analytics | usability testing | a/b testing

Page 19: The Great State of Design with CSS Grid Layout and Friends

If I had asked people what they wanted, they would have said

Henry Ford

faster horses.‘‘

Page 20: The Great State of Design with CSS Grid Layout and Friends

If I had asked people what they wanted, they would have said

Henry Ford

faster horses.‘‘

Page 21: The Great State of Design with CSS Grid Layout and Friends

Above the Fold

best practices?

Page 22: The Great State of Design with CSS Grid Layout and Friends

3-Click Rule

best practices?

Page 23: The Great State of Design with CSS Grid Layout and Friends

KLPA (Joshua Kulpa)

Andy Clarke, “Counting Stars: Creativity over Predictability”

‘‘I fear that we're creating a web the full of safe designs because we’re driven by the need in some of us for predictability, reliability and for repeatability …

Page 24: The Great State of Design with CSS Grid Layout and Friends
Page 25: The Great State of Design with CSS Grid Layout and Friends
Page 26: The Great State of Design with CSS Grid Layout and Friends
Page 27: The Great State of Design with CSS Grid Layout and Friends
Page 28: The Great State of Design with CSS Grid Layout and Friends
Page 29: The Great State of Design with CSS Grid Layout and Friends

shape-outside

Page 30: The Great State of Design with CSS Grid Layout and Friends
Page 31: The Great State of Design with CSS Grid Layout and Friends
Page 32: The Great State of Design with CSS Grid Layout and Friends
Page 33: The Great State of Design with CSS Grid Layout and Friends
Page 34: The Great State of Design with CSS Grid Layout and Friends
Page 35: The Great State of Design with CSS Grid Layout and Friends

?

Is web design asolved problem

Page 36: The Great State of Design with CSS Grid Layout and Friends
Page 37: The Great State of Design with CSS Grid Layout and Friends

Prague’s new coffee scene ◇ Making bikes with bamboo The enduring craft of screen printing ◇ Discover Riga Hand-made soap ◇ Manhattan’s fashion collaborators The sugar shacks of Quebec ◇ How to taste coffee

Digital Edition, Autumn 2016

craft & create

Artist Spotlight Shyama GoldenShyama Golden, 1 known for her huge,

humorous paintings, has transitioned from

being a graphic designer to an illustrator and,

more recently, from oil paints to the iPad.

interview Elliot Jay Stocks

artwork courtesy of Shyama Golden

D id you always want to be an illustrator?

Yes — I’ve been drawing ever since I was really

little, but I studied graphic design when I went to col-

lege, and pretty much worked solely on graphic design

for 10 years after that. However, the school I went to

was really focused on studio art; it was more traditional,

I think, than most schools. I did a lot of screen printing

too, which I love because it uses both the problem-

solving skills of a designer and the drawing skill of an

illustrator. I stuck with graphic design for a really long

time, but there was always a part of me that wanted to

draw more.

Recently I’ve transitioned into doing that: these days

I do branding and identity design as a part-time job, and

spend most of my time doing illustration. Even with

80

1. shyamagolden.com

95

With its origins seated deeply in the past, the process of screen printing continues to intrigue people, with the craft seeing a revival in modern times. Screen printer Jonny Akers walks us through screen printing’s origins and current incarnation.

craft & create

words Jonny Akersphotographs Elliot Jay Stocks

Enduring CraftsScreen Printing

craft & create E N D U R I N G C R A F T S

S creen printing in its basic form dates back over 2,000 years. Whether it be cutting shapes from banana leaves to make a stencil and forcing ink

made from natural pigments through them, or making frames stretched with human hair to form a mesh, people all over the world have been using screen printing to reproduce imagery for quite some time.

I encountered screen printing for the first time in 2004 while studying a fine art degree in Leeds. After a brief introduction to the printmaking facilities, I used screen printing on and off throughout my degree, but I never realised how involved I’d become with the process in the future.

Today I run a wedding stationery business called The Old Market Printing Co 1 with my wife Charlotte. With her hand-lettering, illustration, and contemp-

orary designs, we use heavyweight paper stock, and metallic and neon inks to make clean, modern, alter-native wedding stationery.

Making and printing by hand is something I’m passionate about, and one reason why I’ve never ventured into automatic printing machines. I feel that once you’re no longer pulling ink through the screen by hand, the process is too commercial and loses part of the magic of printmaking. While I’m printing by hand, I’m still in full control of the finished print, and it contains more of the experience and skill that I’ve obtained over the past 10 years.

And I’m not alone in my passion for screen printing by hand. Recently, there’s been a huge revival for all things artisanal, with screen printing included. Various websites have emerged, selling rudimentary

illustration Ed J Brown

1. theoldmarketprintingco.com

Page 38: The Great State of Design with CSS Grid Layout and Friends
Page 39: The Great State of Design with CSS Grid Layout and Friends
Page 40: The Great State of Design with CSS Grid Layout and Friends
Page 41: The Great State of Design with CSS Grid Layout and Friends

.intro::first-letter { initial-letter: 7; }initial-letter

::first-letter7

Page 43: The Great State of Design with CSS Grid Layout and Friends

@supports (property: value) { property: value; }

@supports ( property: value )

feature queries

Page 44: The Great State of Design with CSS Grid Layout and Friends

@supports (initial-letter: 7) { .intro::first-letter { initial-letter: 7; } }

initial letter

Page 45: The Great State of Design with CSS Grid Layout and Friends

@supports (initial-letter: 7) or (-webkit-initial-letter: 7) { .intro::first-letter { initial-letter: 7; -webkit-initial-letter: 7; } }

initial letter

Page 46: The Great State of Design with CSS Grid Layout and Friends

::initial-letter::initial-letter

Page 47: The Great State of Design with CSS Grid Layout and Friends

::initial-letter::initial-letter

Page 48: The Great State of Design with CSS Grid Layout and Friends
Page 50: The Great State of Design with CSS Grid Layout and Friends

CSS Shapes

Page 51: The Great State of Design with CSS Grid Layout and Friends
Page 52: The Great State of Design with CSS Grid Layout and Friends
Page 53: The Great State of Design with CSS Grid Layout and Friends
Page 54: The Great State of Design with CSS Grid Layout and Friends
Page 55: The Great State of Design with CSS Grid Layout and Friends

Shape-inside

Page 56: The Great State of Design with CSS Grid Layout and Friends
Page 57: The Great State of Design with CSS Grid Layout and Friends

CSS

Blen

d M

ode

Page 58: The Great State of Design with CSS Grid Layout and Friends

CSS

Blen

d M

ode

Page 59: The Great State of Design with CSS Grid Layout and Friends

Shape-inside

Page 60: The Great State of Design with CSS Grid Layout and Friends
Page 64: The Great State of Design with CSS Grid Layout and Friends

http://codepen.io/stacy/pen/86840fb6d32b941a73e5435f4f27d4e9?editors=1100

Page 65: The Great State of Design with CSS Grid Layout and Friends

bennettfeely.com/image-effects

layered backgrounds

Page 70: The Great State of Design with CSS Grid Layout and Friends
Page 71: The Great State of Design with CSS Grid Layout and Friends
Page 72: The Great State of Design with CSS Grid Layout and Friends
Page 73: The Great State of Design with CSS Grid Layout and Friends
Page 74: The Great State of Design with CSS Grid Layout and Friends
Page 75: The Great State of Design with CSS Grid Layout and Friends
Page 76: The Great State of Design with CSS Grid Layout and Friends
Page 77: The Great State of Design with CSS Grid Layout and Friends
Page 78: The Great State of Design with CSS Grid Layout and Friends
Page 79: The Great State of Design with CSS Grid Layout and Friends

css “layout” methods

history

tables flexboxfloats grid

Page 80: The Great State of Design with CSS Grid Layout and Friends

flexbox

or

Page 87: The Great State of Design with CSS Grid Layout and Friends

implicit explicit

Page 88: The Great State of Design with CSS Grid Layout and Friends

grid-template- columnsrows

size, size;

grid-template-columns: 1fr 2fr 1fr;

Page 89: The Great State of Design with CSS Grid Layout and Friends
Page 90: The Great State of Design with CSS Grid Layout and Friends
Page 91: The Great State of Design with CSS Grid Layout and Friends
Page 92: The Great State of Design with CSS Grid Layout and Friends
Page 93: The Great State of Design with CSS Grid Layout and Friends
Page 94: The Great State of Design with CSS Grid Layout and Friends
Page 95: The Great State of Design with CSS Grid Layout and Friends

repeat( number of repitions, size )

repeat

grid-template-columns: repeat(3, 1fr);

Page 96: The Great State of Design with CSS Grid Layout and Friends
Page 97: The Great State of Design with CSS Grid Layout and Friends

grid-column-start / grid-column-end | grid-column: value;

grid-column: 1 / 4;

grid-column

Page 98: The Great State of Design with CSS Grid Layout and Friends
Page 99: The Great State of Design with CSS Grid Layout and Friends
Page 100: The Great State of Design with CSS Grid Layout and Friends
Page 101: The Great State of Design with CSS Grid Layout and Friends
Page 102: The Great State of Design with CSS Grid Layout and Friends

spanspan number ;

grid-column: 1 / span 3;

Page 103: The Great State of Design with CSS Grid Layout and Friends
Page 104: The Great State of Design with CSS Grid Layout and Friends

-1

grid-column: 1 / -1;

-1 = value used to span the remaining row/column

Page 105: The Great State of Design with CSS Grid Layout and Friends

grid-row-start / grid-row-end | grid-row: value;

grid-row

grid-row: 1 / 4;

Page 106: The Great State of Design with CSS Grid Layout and Friends
Page 107: The Great State of Design with CSS Grid Layout and Friends
Page 108: The Great State of Design with CSS Grid Layout and Friends
Page 109: The Great State of Design with CSS Grid Layout and Friends
Page 110: The Great State of Design with CSS Grid Layout and Friends

grid-row-start / grid-column-start / grid-row-end / grid-column-end

grid-area

grid-area: 1/1/3/4;

Page 111: The Great State of Design with CSS Grid Layout and Friends
Page 112: The Great State of Design with CSS Grid Layout and Friends

[ line-name ] size [ line2-name another-name ] size

named lines

grid-column: line-name;

Page 113: The Great State of Design with CSS Grid Layout and Friends
Page 114: The Great State of Design with CSS Grid Layout and Friends

[ line-name ] size [ line2-name another-name ] size

grid-area: row-main / col-large / row-gallery / col-small;

grid-area

Page 115: The Great State of Design with CSS Grid Layout and Friends

“header” “byline” “content” “aside” “footer”;

grid-template-area

Page 116: The Great State of Design with CSS Grid Layout and Friends

grid-template-area: “header header header” “content content byline” “………………… aside ………………” “footer footer footer”;

grid-template-area

Page 117: The Great State of Design with CSS Grid Layout and Friends

header { grid-area: header; }

grid-areaname

Page 118: The Great State of Design with CSS Grid Layout and Friends
Page 120: The Great State of Design with CSS Grid Layout and Friends
Page 121: The Great State of Design with CSS Grid Layout and Friends
Page 122: The Great State of Design with CSS Grid Layout and Friends

size

grid-auto-rows: 20vh;

grid-auto-columnsrows

Page 123: The Great State of Design with CSS Grid Layout and Friends

dense - fill in holes earlier in the grid if smaller items come up later

sparse | dense & row | column

grid-auto-flow

Page 125: The Great State of Design with CSS Grid Layout and Friends

minmaxminmax( min size, max size )

grid-auto-rows: minmax(100px, 30vh);

Page 126: The Great State of Design with CSS Grid Layout and Friends

auto-fillrepeat( auto-fill, size )

grid-template-columns: repeat(auto-fill, 1fr);

Page 127: The Great State of Design with CSS Grid Layout and Friends

all together nowrepeat( auto-fill, minmax( min size, max size ) )

grid-template-rows: repeat(auto-fill, minmax(300px, 1fr));

Page 128: The Great State of Design with CSS Grid Layout and Friends

grid-gapgrid-column-gap | grid-row-gap: size

grid-gap:30px; px, rem, em

Page 129: The Great State of Design with CSS Grid Layout and Friends
Page 130: The Great State of Design with CSS Grid Layout and Friends

start | end | center | stretch | space-around | space-between | space-evenly

justify-content: start;

justify-content

Page 131: The Great State of Design with CSS Grid Layout and Friends

justify-itemsstart | end | center | stretch

justify-items: start;

Page 132: The Great State of Design with CSS Grid Layout and Friends

justify-selfstart | end | center | stretch

justify-self: start;

Page 133: The Great State of Design with CSS Grid Layout and Friends

align-contentstart | end | center | stretch | space-around | space-between | space-evenly

align-content: start;

Page 134: The Great State of Design with CSS Grid Layout and Friends

align-itemsstart | end | center | stretch

align-self: start;

Page 135: The Great State of Design with CSS Grid Layout and Friends

align-selfstart | end | center | stretch

align-self: start;

Page 136: The Great State of Design with CSS Grid Layout and Friends
Page 137: The Great State of Design with CSS Grid Layout and Friends

.gallery { display: grid; grid-gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: minmax(30vh, 190px); }

Page 138: The Great State of Design with CSS Grid Layout and Friends

display: grid;

Page 139: The Great State of Design with CSS Grid Layout and Friends

grid-gap: 1rem;

Page 140: The Great State of Design with CSS Grid Layout and Friends

grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

Page 141: The Great State of Design with CSS Grid Layout and Friends

grid-auto-rows: minmax(26vh, 190px);

Page 145: The Great State of Design with CSS Grid Layout and Friends

by Rachel Smith, then Miriam, and definitely Stacy

Page 146: The Great State of Design with CSS Grid Layout and Friends

igalia.github.io/css-grid-layout/gridbyexample.com

labs.jensimmons.com

codepen.io/stacy

resources

css-tricks guide to grid

drafts.csswg.org/css-grid/

codepen.io/collection/XbwVGL

Page 147: The Great State of Design with CSS Grid Layout and Friends

wishlistCSS Regions and Exclusions

Page 148: The Great State of Design with CSS Grid Layout and Friends

Wilson Miner “When We Build”

‘‘We’re actually in the process of building an environment where we’ll spend most of our time for the rest of our lives …

Page 149: The Great State of Design with CSS Grid Layout and Friends

Stacy Kvernmo@StacyKvernmo

Great THE

DesignSTATE OF