successful web typography - the developer's ampersandwich

126

Upload: jenn-lukas

Post on 21-Nov-2014

181 views

Category:

Technology


1 download

DESCRIPTION

Ever spent countless hours crafting a totally awesome type system for your beautiful design, only to have it lost in translation when it goes to development? Examine type and icon fonts through a developer lens, and learn how designers and front-end developers can work together to get everyone on the same (elegantly designed) page! How to utilize web fonts and icon fonts within your projects How icon fonts can help your site performance Tools for crafting an efficient type system on the web

TRANSCRIPT

Page 1: Successful Web Typography - The Developer's Ampersandwich
Page 2: Successful Web Typography - The Developer's Ampersandwich
Page 3: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li> vegetarianschmitter.com

Page 4: Successful Web Typography - The Developer's Ampersandwich
Page 5: Successful Web Typography - The Developer's Ampersandwich

Designers and developers working together make for a sturdy project foundation

Page 6: Successful Web Typography - The Developer's Ampersandwich

Help developers understand

DESIGN INTENTIONS

Page 7: Successful Web Typography - The Developer's Ampersandwich

Developers love

FORMULAS

Page 8: Successful Web Typography - The Developer's Ampersandwich

Type options for the web

Web safe fontsImage replacement

sIFRCufón

@font-face

Page 9: Successful Web Typography - The Developer's Ampersandwich

Formulas for typography

Web safe fonts Web font trends

Page 10: Successful Web Typography - The Developer's Ampersandwich

google.com/fonts

Page 11: Successful Web Typography - The Developer's Ampersandwich

Google Fonts most popular fonts

1. Open Sans2. Roboto3. Oswald4. Droid Sans5. Lato6. PT Sans7. Open Sans Condensed8. Droid Serif9. Ubuntu10. Source Sans Pro

Page 12: Successful Web Typography - The Developer's Ampersandwich

blog.fonts.com

Page 13: Successful Web Typography - The Developer's Ampersandwich

Fonts.com top fonts

1. Trade Gothic2. Neue Helvetica3. Avenir Next4. Univers5. Avenir6. Proxima Nova7. Helvetica8. Frutiger9. Gill Sans10. Futura

Page 14: Successful Web Typography - The Developer's Ampersandwich

typekit.com

Page 15: Successful Web Typography - The Developer's Ampersandwich

Typekit favorite fonts

1. Proxima Nova2. Futura PT 3. Museo Sans4. Museo Slab5. Adelle6. Brandon Grotesque7. Nimbus Sans8. Myriad Pro9. Freight Sans Pro10. FF Tisa Pro

Page 16: Successful Web Typography - The Developer's Ampersandwich

alistapart.com/blog/post/web-font-trends

Page 17: Successful Web Typography - The Developer's Ampersandwich

Typekit most viewed fonts (Jan 2014)

1. Proxima Nova 2. Myriad Pro3. Futura PT4. Nimbus Sans5. Adelle Sans

Page 18: Successful Web Typography - The Developer's Ampersandwich

WhatFont

Page 19: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ When designers and developers collaborate together it creates a sturdy project foundation

‣ Formulas based on fonts available and web font trends can help inform type system decisions

‣ Visit web font services to stay educated on their statistics and follow industry patterns

SUCCESSFUL TYPOGRAPHY IN OUR PROJECTS

Page 20: Successful Web Typography - The Developer's Ampersandwich
Page 21: Successful Web Typography - The Developer's Ampersandwich

Use style guides, pattern libraries,

and general styles to create a

harmonious system

Page 22: Successful Web Typography - The Developer's Ampersandwich
Page 23: Successful Web Typography - The Developer's Ampersandwich
Page 24: Successful Web Typography - The Developer's Ampersandwich

github.com/Jenn/starter-files

Page 25: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ The general styles make sure no element goes un-styled

‣ Created with a separate document containing every HTML element to define base type styles for those elements (h1, p, ul, etc.)

‣ Smaller, manageable version of a style guide

GENERAL STYLES

Page 26: Successful Web Typography - The Developer's Ampersandwich
Page 27: Successful Web Typography - The Developer's Ampersandwich

BewareCROSS-BROWSERdifferences

Page 28: Successful Web Typography - The Developer's Ampersandwich
Page 29: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

Set aside the

TIMEand

BUDGETfor thorough QA testing

Page 30: Successful Web Typography - The Developer's Ampersandwich

Make sure your fonts will work for your audience before design approval

Page 31: Successful Web Typography - The Developer's Ampersandwich

Test and share font-family browser samples

Page 32: Successful Web Typography - The Developer's Ampersandwich
Page 33: Successful Web Typography - The Developer's Ampersandwich

Use

-webkit-font-smoothing: antialiased;cautiously

Page 34: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

Sometimes

“FIXING”a problem in one browser is a

POOR SOLUTIONin others

Page 36: Successful Web Typography - The Developer's Ampersandwich

dowebsitesneedtolookexactlythesameineverybrowser.com

Page 38: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

Test in your

LEAST FAVORITEbrowser

Page 39: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

Monitor how fonts affect your

PAGE SPEED

Page 40: Successful Web Typography - The Developer's Ampersandwich

Just because I can do something,

SHOULD I?

Page 41: Successful Web Typography - The Developer's Ampersandwich
Page 42: Successful Web Typography - The Developer's Ampersandwich
Page 43: Successful Web Typography - The Developer's Ampersandwich
Page 44: Successful Web Typography - The Developer's Ampersandwich

blog.typekit.com/2013/04/17/fallback-fonts-on-mobile-devices

Page 45: Successful Web Typography - The Developer's Ampersandwich

codepen.io/davatron5000/pen/nrfGA

Page 46: Successful Web Typography - The Developer's Ampersandwich
Page 47: Successful Web Typography - The Developer's Ampersandwich

ffffallback.com

Page 48: Successful Web Typography - The Developer's Ampersandwich

jordanm.co.uk/tinytype

Page 49: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

Will the cost

BE APPROVED?

Page 50: Successful Web Typography - The Developer's Ampersandwich

IT’S OUR JOBto help our clients learn to love web fonts

Page 51: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li> FREE FONTS

have come a long way

Page 59: Successful Web Typography - The Developer's Ampersandwich

hellohappy.org/beautiful-web-type

Page 60: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ Add much needed variety to type systems on the web

‣ Set aside time to thoroughly QA in different browsers and devices

‣ Test in your least favorite browser‣ Beware of the page weight fonts can add to your

site‣ Don’t use ALL THE FONTS

WEB FONTS

Page 61: Successful Web Typography - The Developer's Ampersandwich
Page 64: Successful Web Typography - The Developer's Ampersandwich
Page 65: Successful Web Typography - The Developer's Ampersandwich
Page 66: Successful Web Typography - The Developer's Ampersandwich
Page 68: Successful Web Typography - The Developer's Ampersandwich

Research the customer support before you buy

Page 69: Successful Web Typography - The Developer's Ampersandwich
Page 70: Successful Web Typography - The Developer's Ampersandwich

Icon fonts mean no more

IMAGE SPRITES

Page 71: Successful Web Typography - The Developer's Ampersandwich

http://zurb.com/playground/foundation-icons

Page 72: Successful Web Typography - The Developer's Ampersandwich

Icon fonts are ideal for RETINA DISPLAYS

Page 73: Successful Web Typography - The Developer's Ampersandwich

You can make your own icon fonts

Page 76: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ A plethora of icon fonts to choose from

‣ Support for older IE can be poor

‣ Easily customizable with CSS

‣ Crisp vector shapes are great for retina display

‣ Can create your own icon fonts

‣ Simpler alternative to SVG icons

ICON FONTS

Page 77: Successful Web Typography - The Developer's Ampersandwich
Page 78: Successful Web Typography - The Developer's Ampersandwich

Use

ARIA ROLESwith icon fonts

Page 79: Successful Web Typography - The Developer's Ampersandwich
Page 80: Successful Web Typography - The Developer's Ampersandwich
Page 81: Successful Web Typography - The Developer's Ampersandwich

yatil.net/the-best-way-to-use-icon-fonts

Page 83: Successful Web Typography - The Developer's Ampersandwich

yatil.net/the-best-way-to-use-icon-fonts

Page 84: Successful Web Typography - The Developer's Ampersandwich

scottkellum.com/2013/10/25/the-new-kellum-method.html

Page 85: Successful Web Typography - The Developer's Ampersandwich

Contrast should be 4.5:1

Page 86: Successful Web Typography - The Developer's Ampersandwich

webaim.org/resources/contrastchecker

Page 87: Successful Web Typography - The Developer's Ampersandwich
Page 88: Successful Web Typography - The Developer's Ampersandwich
Page 89: Successful Web Typography - The Developer's Ampersandwich

Use ems/rems for sizes

Page 90: Successful Web Typography - The Developer's Ampersandwich

snook.ca/archives/html_and_css/font-size-with-rem

Page 92: Successful Web Typography - The Developer's Ampersandwich

Anything from 45 to 75 characters is widely regarded as a satisfactory length of line for a single-column page set in a serifed text face in a text size. The 66-character line (counting both letters and spaces) is widely regarded as ideal. For multiple column work, a better average is 40 to 50 characters.

Page 94: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ Use ems/rems instead of px for font sizing

‣ Make sure color contrast meets the 4.5:1 WCAG requirement

‣ Use ARIA roles with icon fonts

‣ Aim for a 66 character line length; 40-50 for mulit-column layouts

TYPE ACCESSIBILITY

Page 95: Successful Web Typography - The Developer's Ampersandwich
Page 98: Successful Web Typography - The Developer's Ampersandwich

You can ship early and often while keeping nice type

Page 99: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ Great for setting up type systems out of Photoshop

‣ Can be used to tweak established font styles or create completely new systems

‣ Allows design and development to come together more quickly through an easily shared interface

TYPECAST

Page 100: Successful Web Typography - The Developer's Ampersandwich
Page 101: Successful Web Typography - The Developer's Ampersandwich

Identify pain points for your team to overcome them

Page 102: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

Plan your designs and text for

VARIABLE CONTENT

Page 103: Successful Web Typography - The Developer's Ampersandwich
Page 104: Successful Web Typography - The Developer's Ampersandwich

Choose a product with a good track record

Page 105: Successful Web Typography - The Developer's Ampersandwich

Limit your font sizes.Create a system.

Page 107: Successful Web Typography - The Developer's Ampersandwich

Create your own kit

Page 108: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ Plan designs for variable content

‣ Choose web and icon font services with good track records, especially if money is involved

‣ Limit your font sizes and styles

AVOID COMMON ROADBLOCKS

Page 109: Successful Web Typography - The Developer's Ampersandwich
Page 110: Successful Web Typography - The Developer's Ampersandwich

Text masking and clips are super rad

Page 111: Successful Web Typography - The Developer's Ampersandwich
Page 112: Successful Web Typography - The Developer's Ampersandwich

Text rotation

Page 113: Successful Web Typography - The Developer's Ampersandwich
Page 114: Successful Web Typography - The Developer's Ampersandwich
Page 115: Successful Web Typography - The Developer's Ampersandwich

Face tracking for text size

Page 116: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ CSS properties allow us many different customization options beyond size and color

‣ Try seeing how far you can take properties like text rotation, combine shadows, take advantage of background clip and masking on text

UTILIZE ADVANCEMENTS FOR TYPE

Page 117: Successful Web Typography - The Developer's Ampersandwich
Page 118: Successful Web Typography - The Developer's Ampersandwich
Page 119: Successful Web Typography - The Developer's Ampersandwich

Schedule internal design reviews with your WHOLE TEAM.

Page 120: Successful Web Typography - The Developer's Ampersandwich

CSS Preprocessors/Variables Are Your Friend

Page 121: Successful Web Typography - The Developer's Ampersandwich

QA, don’t design, in browser

Page 122: Successful Web Typography - The Developer's Ampersandwich
Page 123: Successful Web Typography - The Developer's Ampersandwich
Page 124: Successful Web Typography - The Developer's Ampersandwich

davatron5000.github.io/fitWeird/

Page 125: Successful Web Typography - The Developer's Ampersandwich

<li class="category1"> <a href="#">

<div class="grid-info"> <h2><span>Must Follow</span><br /><span>Artist on

Twitter</span></h2> <div class="grid-reveal">

<p>For those of you with more than three tattoos of the same band, we salute you.</p>

<p class="grid-sponsor">Sponsored by <img src="http://placekitten.com/80/20" width="80" height="20" alt="Loreal

Paris" /></p> </div> </div> </a></li>

‣ Check in often with the whole team to identify pain points and brainstorm creative solutions

‣ QA and tweak, don’t design, in browser

‣ Encourage collaboration between designers and developers by using variables in preprocessors like LESS and Sass

Quality Assurance

Page 126: Successful Web Typography - The Developer's Ampersandwich

cookinsidethebox.comthenerdary.net