typography and responsive grids in the world of mobile development

119
Webinale Hands-on · Munich 12/2013 Typography and Responsive Grids in the World of Mobile Development

Upload: tiago-pedras

Post on 17-Aug-2014

504 views

Category:

Design


2 download

DESCRIPTION

To designers and art directors, responsive web design poses a challenge. Responsive grids and patterns and, above all, the behavior of typographic design need to be taken into consideration across mobile platforms, since mobile devices are particularly restricted in terms of readability. Although typographic design may look nice on a smartphone or tablet, what about usability? This workshop will provide an answer to this question, and it will analyze the influence of typographic design on the user experience. It will be held in German and English. Video links: Slide 16: http://www.youtube.com/watch?v=WNIrs8FgYKU Slide 28: http://www.youtube.com/watch?v=KI_tuYlVg-I Slide 114: http://www.kickstarter.com/projects/207474036/iconic-advanced-icons-for-the-modern-web Slide 116: http://simplefocus.com/flowtype/

TRANSCRIPT

Page 1: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Typography and Responsive Grids

in the World of Mobile Development

Page 2: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Hi!and welcome!

Page 3: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Hallo!und herzlich willkommen!

Page 4: Typography and Responsive Grids in the World of Mobile Development
Page 5: Typography and Responsive Grids in the World of Mobile Development
Page 6: Typography and Responsive Grids in the World of Mobile Development
Page 7: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Questions?

Yo u c a n c o n t a c t m e l i ke t h i s : t i a g o @ t p w d . p t @ t i a g o p e d ra s

Page 8: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Part 1/4

State of the artThe usage paradigm shift

Page 9: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Mobile VS DesktopPart 1/4 - State of the art

Page 10: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o fMorgan Stanley Research, 2010

Global mobile VS desktop internet usage projectionIn

tern

et u

sers

(MM

)

0

500

1000

1500

2000

2007 2008 2009 2010 2011 2012 2013 2014 2015

Desktop Mobile

Page 11: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o fhttp://www.heise.de/newsticker/meldung/Consumermarkt-Erstmals-mehr-Tablets-als-Notebooks-verkauft-1938179.html

Sales figures for PCs, Notebooks and Tablets

0

450 000

900 000

1 350 000

1 800 000

Q1-2012 Q2-2012 Q3-2012 Q4-2012 Q1-2013 Q2-2013

Desktops Notebooks Tablets

Page 12: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o fAdobe.com, July 2013

Page 13: Typography and Responsive Grids in the World of Mobile Development

–Me (just now)

We should start consideringtablet users a lot more.

Page 14: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Problems arisingPart 1/4 - State of the art

Page 15: Typography and Responsive Grids in the World of Mobile Development

http://www.gomez.com/engaging-the-tablet-user/

“When a problem happens, nearly half of tablet users says they will only try to reload the

page once or twice.”

Page 16: Typography and Responsive Grids in the World of Mobile Development
Page 17: Typography and Responsive Grids in the World of Mobile Development

!!

Common issues for tablets

Slow load times are the most frequently cited (66% on enquires)

Site crashes or problems with some site functions (44%)

Formatting or display issues (42%)

Page 18: Typography and Responsive Grids in the World of Mobile Development

–Guy Podjarny, guypo.com

“Today, smartphone browsers often get redirected to mobile websites which tend to

be significantly lighter than their desktop counterparts.”

Page 19: Typography and Responsive Grids in the World of Mobile Development

–Guy Podjarny, guypo.com

“Responsive websites, however, don’t follow this pattern.”

Page 20: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

347responsive websites

320×480

to1600×1200

86%of the

websites weighed the

same

Weight test

Page 21: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Part 2/4

User ExperienceWas it good for you?

Page 22: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Look

Usability

Feel

User Experience

Joy o f use In te rac t ion Reac t ion

Pred ic tab i l i t y Func t iona l i t y

I n tu i t i v i t y

Trus t C red ib i l i t y

Ha r mony

Page 23: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Look

Usability

Feel

User Experience

Joy o f use In te rac t ion Reac t io

P red ic tab i l i t y Func t iona l i t y

I n tu i t i v i t y

Trus t C red ib i l i t y

Ha r mony

Page 24: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Look

Usability

Feel

User Experience

Joy o f use In te rac t ion Reac t io

P red ic tab i l i t y Func t iona l i t y

I n tu i t i v i t y

Trus t C red ib i l i t y

Ha r mony

Page 25: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Good experiencesPart 2/4 - User Experience

Page 26: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

So what is a good experience?

Page 27: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Cares about context

Page 28: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 29: Typography and Responsive Grids in the World of Mobile Development

Website by TPWD (http://2bepro.com)

Page 30: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Consistent

Page 31: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 32: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Size independent

Page 33: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 34: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Orientation independent

Page 35: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 36: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Adapts to the platform’s patterns

Page 37: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 38: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 39: Typography and Responsive Grids in the World of Mobile Development
Page 40: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Bad experiencesPart 2/4 - User Experience

Page 41: Typography and Responsive Grids in the World of Mobile Development

–Joshua Porter, 2007

“When a logo works, it makes you think certain things. Makes you think about the company,

their influence, their reach. It’s all about branding…”

Page 42: Typography and Responsive Grids in the World of Mobile Development

“… When a web site works, on the other hand, you’re using it to do something, interacting with it.

You are inputting information, asking questions, getting answers.”

–Joshua Porter, 2007

Page 43: Typography and Responsive Grids in the World of Mobile Development
Page 44: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 45: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 46: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 47: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Page 48: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Usage contextPart 2/4 - User Experience

Page 49: Typography and Responsive Grids in the World of Mobile Development

–G.M. O’Connell, creator of the first web banner

“People read newspapers, listen to the radio, and watch TV, but they go to the Web

to GET THINGS DONE.”

Page 50: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Un-pre-dic-ta-bi-li-ty

Page 51: Typography and Responsive Grids in the World of Mobile Development
Page 52: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Mobil

Öffentlicher Raum

Arbeitsplatz

Privat

NutzungsmodusUmfeld

Situation

Hands-onModus

Unterwegs

Portrait Landscape

Nach vorne lehnen

Zurücklehnen

Stationär

Page 53: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o fhttp://techcrunch.com/2012/10/22/google-research-shows-tablets-are-for-games-and-email-mostly-used-on-couch-in-bed/

Page 54: Typography and Responsive Grids in the World of Mobile Development

!!

Where are people using mobile devices?

84% at home

80% during miscellaneous downtime throughout the day

76% waiting in lines of waiting for appointments

69% while shopping

64% at work

62% while watching TV (alt. study claims 84%)

47% during commute in to work

Stats by Luke Wroblewski, http://www.lukew.com/ff/entry.asp?1263

Page 55: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Screen size

Page 56: Typography and Responsive Grids in the World of Mobile Development

http://gs.statcounter.com/press/screen-resolution-alert-for-web-developers

“1024x768 has fallen from 41.8% in March 2009 to 18.6% in March 2012.

Over the same period 1366x768 has grown from 0.68% to 19.28%.”

Page 57: Typography and Responsive Grids in the World of Mobile Development
Page 58: Typography and Responsive Grids in the World of Mobile Development

Screen sizes, shown in a non-flexible medium. (Photo and work: Aram Bartholl)

Page 59: Typography and Responsive Grids in the World of Mobile Development

!!

Orientation

Don’t force your design to every possible size/orientation. Sometimes it’s better that you adjust to a particular context

People tend to use tablets more on landscape mode

You should get some insights on each situation

Amount of content needs to be considered and reviewed

Page 60: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Performance

Page 61: Typography and Responsive Grids in the World of Mobile Development

!!

Size and speed

HTML! 36! 4%!CSS! 30! 3%!Images!451! 51%!Javascript! 170! 19%!Fonts! 200! 23%

Weight (Kb) Percentage

HTML 36 4%

CSS 30 3%

Images 451 51%

Javascript 170 19%

Fonts 197 22%

Total 884 100%

Page 62: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Other issues

Page 63: Typography and Responsive Grids in the World of Mobile Development

!!

Other technical issues

Legacy browsers (of course…)

Connection speed

Pixel density

Viewport and zoom

Retina images

Page 64: Typography and Responsive Grids in the World of Mobile Development

!!

Other usability issues

We have big fingers!

Elements position distance to edge

Typography size

User’s distance to screen

Page 65: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Part 3/4

Grids and MediaIntroduction and DIY guide

Page 66: Typography and Responsive Grids in the World of Mobile Development

Cour tesy o f

Look

Usability

Feel

User Experience

Joy o f use In te rac t ion Reac t io

P red ic tab i l i t y Func t iona l i t y

I n tu i t i v i t y

Trus t C red ib i l i t y

Ha r mony

Page 67: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Grid and framework options

Part 1/2 - Grids and Media

Page 68: Typography and Responsive Grids in the World of Mobile Development

GridsThey come in two flavours

Page 69: Typography and Responsive Grids in the World of Mobile Development

GridsFluid grids. Easier to adapt to any screen size.

Page 70: Typography and Responsive Grids in the World of Mobile Development

GridsFluid grids. Easier to adapt to any screen size.

Page 71: Typography and Responsive Grids in the World of Mobile Development

GridsFluid grids. Easier to adapt to any screen size.

Page 72: Typography and Responsive Grids in the World of Mobile Development

GridsFluid grids. Easier to adapt to any screen size.

Page 73: Typography and Responsive Grids in the World of Mobile Development

GridsFixed grids. More rigid but easier to control.

Page 74: Typography and Responsive Grids in the World of Mobile Development

GridsFixed grids. More rigid but easier to control.

Page 75: Typography and Responsive Grids in the World of Mobile Development

GridsFixed grids. More rigid but easier to control.

Page 76: Typography and Responsive Grids in the World of Mobile Development

GridsFixed grids. More rigid but easier to control.

Page 77: Typography and Responsive Grids in the World of Mobile Development

Starting points: frameworks

Bootstrap

Foundation

Less Framework

Skeleton

Page 78: Typography and Responsive Grids in the World of Mobile Development

Frameworks include more than just a grid. They have typography settings, input styles,

entire modules… and also a lot of JS.

Page 79: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Advantages and disadvantages

Part 1/2 - Grids and Media

Page 80: Typography and Responsive Grids in the World of Mobile Development

Advantages and disadvantages

Allows you to quickly build up a structure with little effort

Helps to keep most of the elements aligned, making a cohesive composition

Easy way to move from a wireframe directly to the browser

Facilitates mobile layouts in certain pre-determined adaptations

Page 81: Typography and Responsive Grids in the World of Mobile Development

Advantages and disadvantages

They won’t work for every website (specially if you have fewer content)

Might limit your information architecture and may look too rigid

Might injure visual rhythm and create a monotonous effect

Should never, EVER, get in your way while designing or coding the layout

Page 82: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Examples

Page 83: Typography and Responsive Grids in the World of Mobile Development
Page 84: Typography and Responsive Grids in the World of Mobile Development
Page 85: Typography and Responsive Grids in the World of Mobile Development
Page 86: Typography and Responsive Grids in the World of Mobile Development
Page 87: Typography and Responsive Grids in the World of Mobile Development
Page 88: Typography and Responsive Grids in the World of Mobile Development
Page 89: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Live coding:building a custom grid

Part 1/2 - Grids and Media

Page 90: Typography and Responsive Grids in the World of Mobile Development

–Jeremy Keith, in the foreword of “Responsive Web Design” by Ethan Marcotte

“The technologies existed already: fluid grids, flexible images, and media queries.”

Page 91: Typography and Responsive Grids in the World of Mobile Development

Building a custom grid

Fluid grid (using percentages) of 12 columns. Responsive but not mobile first(better/easier starting point)

Flexible images

Break points (media queries)

Page 92: Typography and Responsive Grids in the World of Mobile Development

– Joni Korpi, author of the Less Framework

If you think of Mobile First as progressive enhancement, these grids examples will feel

more like graceful degradation

Page 93: Typography and Responsive Grids in the World of Mobile Development

Building a custom grid

It’s good practice to include one of these complimentary base styles:

Reset

Normalize

Boilerplate

Page 94: Typography and Responsive Grids in the World of Mobile Development

“My recipe”

Convert a regular grid (e. g. 12 columns) to percentages

Chose a clearfix method

Change the total width to max-width

Make every image adjustable in size

Create first media query for smartphone

Then add extra breaking points

Page 95: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

(live coding)

Page 96: Typography and Responsive Grids in the World of Mobile Development

Extra tips

For extra easiness and performance add the following:

Box sizing(search for “Paul Irish box sizing”)

Responsive images(using Scott Jehl’s polyfills the <picture> tag)

Concatenating asset files(scripts, stylesheets and images)

Minifying asset files(CodeKit app is great for scripts and stylesheets)

Page 97: Typography and Responsive Grids in the World of Mobile Development

Polyfills and helpers

Media Queries: Respond.jshttps://github.com/scottjehl/Respond

Responsive Images: Picture Fill https://github.com/scottjehl/picturefill

HTML5 tags and others: Modernizr http://modernizr.com/

CSS3 selectors: Selectivizr http://selectivizr.com/

Load JS with to MediaQueries: MatchMediahttps://github.com/paulirish/matchMedia.js/

Page 98: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Part 2/2

Web TypographyCommon caveats and needs

Page 99: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

How we used to set typography

Part 2/2 - Typography

Page 100: Typography and Responsive Grids in the World of Mobile Development

How we used to set typography

In the beginning there were no Web Fonts, only Web Safe Fonts. Choosing a font was easier

Now choosing/using a font is not merely a stylistic issue. It’s worth knowing the role of the technological side in all of this

We would place some/all the content

We would set a font size base for the body

Define the width of the website accordingly to the number of words per line

Page 101: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Problems of responsive typography

Part 2/2 - Typography

Page 102: Typography and Responsive Grids in the World of Mobile Development

Problems of responsive typography

Fluid grids create lot’s of type layout and content control problems

Is it big enough to be read on a mobile device?

Each browser and OS maker uses a different text rendering engine so we need to test… a lot!

Anti-aliasing in legacy browsers! :(

Page 103: Typography and Responsive Grids in the World of Mobile Development

Problems of responsive typography

Hintings are a must-have on Windows

Is the font loading time fast enough?

Performance issues (weight of files and unnecessary versions of the same font)

FOUT (Flash Of Unstyled Text)

Context: what is an average distance for a user to hold a device? Can he read your text?

Page 104: Typography and Responsive Grids in the World of Mobile Development

– Trent Walton

“I’m realising that the predictability & control we’ve had over web type is becoming a thing

of the past.”

Page 105: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Basic type settingPart 2/2 - Typography

Page 106: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Test > Iterate > Test > Iterate > Test > Iterate > Test > Iterate >

Page 107: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Test > Iterate > Test > Iterate > Test > Iterate > Test > Iterate >

Page 108: Typography and Responsive Grids in the World of Mobile Development

“My recipe”Choose one or two fonts that are both readable and fit the branding

Set a basic size for the body text of your default version

If using a fixed grid with adaptative layouts, test and adjust size in all of them

If using a fluid grid, try to define an average size between breakpoints

45-75 characters per line is generally accepted as safe for comfortable reading

Create the remaining styles for titles, labels and highlight paragraphs (use EMs or REMs)

Page 109: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

(live coding)

Page 110: Typography and Responsive Grids in the World of Mobile Development

Font servicesFrom a service provider or CDN

Typekit

Google Fonts

Fonts.com

Cloud Typography by H&FJ

Or as Web fonts files

Font Squirrel 

MyFonts

Page 111: Typography and Responsive Grids in the World of Mobile Development

CostsFrom a service provider or CDN

Typekit (starting at €)

Google Fonts (free)

Fonts.com (starting at €)

Cloud Typography by H&FJ (€)

Or as Web fonts files

Font Squirrel (mostly free)

MyFonts (pay per font, starting at 40€)

Page 112: Typography and Responsive Grids in the World of Mobile Development

Icons and specials

Entypohttp://entypo.com/

Chartwellhttps://www.fontfont.com/how-to-use-ff-chartwell

Page 113: Typography and Responsive Grids in the World of Mobile Development
Page 114: Typography and Responsive Grids in the World of Mobile Development

http://www.kickstarter.com/projects/207474036/iconic-advanced-icons-for-the-modern-web

Page 115: Typography and Responsive Grids in the World of Mobile Development

Tools and helpers

Try text-rendering: optimizeLegibility;http://www.usabilitypost.com/2012/11/06/optimize-legibility/

FlowTypehttp://simplefocus.com/flowtype/

FitTexthttp://fittextjs.com/

TypeCasthttp://typecast.com/

Page 116: Typography and Responsive Grids in the World of Mobile Development
Page 117: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Final referencesIn case you want to know more

Page 118: Typography and Responsive Grids in the World of Mobile Development

Links

Performance implicationshttp://www.guypo.com/mobile/performance-implications-of-responsive-design-book-contribution

A Closer look at Font Renderinghttp://www.smashingmagazine.com/2012/04/24/a-closer-look-at-font-rendering/

Responsive Typographyhttp://ia.net/blog/responsive-typography-the-basics/

Page 119: Typography and Responsive Grids in the World of Mobile Development

Webina le Hands -on · Mun ich 12/2013

Thank you!

Yo u c a n c o n t a c t m e l i ke t h i s : t i a g o @ t p w d . p t @ t i a g o p e d ra s