Slide 1

Slide 1 text

Responsive Typography https://flic.kr/p/2mjtwC Clarissa Peterson @clarissa

Slide 2

Slide 2 text

Communication https://flic.kr/p/6xyFnt

Slide 3

Slide 3 text

Default Font Size https://flic.kr/p/4r1D8w

Slide 4

Slide 4 text

body { font-size: 100%; }

Slide 5

Slide 5 text

https://flic.kr/p/8iNCNU

Slide 6

Slide 6 text

Scale https://flic.kr/p/dhufQk

Slide 7

Slide 7 text

http://skinnyties.com/

Slide 8

Slide 8 text

http://skinnyties.com/

Slide 9

Slide 9 text

http://www.linksture.com/

Slide 10

Slide 10 text

http://www.linksture.com/

Slide 11

Slide 11 text

http://www.brandaiddesignco.com

Slide 12

Slide 12 text

http://www.brandaiddesignco.com

Slide 13

Slide 13 text

http://www.tilde.io/

Slide 14

Slide 14 text

http://www.tilde.io/

Slide 15

Slide 15 text

http://www.oliverharvey.co.uk/

Slide 16

Slide 16 text

http://www.oliverharvey.co.uk/

Slide 17

Slide 17 text

https://flic.kr/p/eYEFGY Ems

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

1em = default

Slide 20

Slide 20 text

2em = twice as big 1em = default

Slide 21

Slide 21 text

2em = twice as big 1em = default .5em = half as big

Slide 22

Slide 22 text

h1 { font-size: 3em; } h2 { font-size: 2em; } h3 { font-size: 1.5em; } p { font-size: 1em; }

Slide 23

Slide 23 text

h1 { font-size: 3em; } h2 { font-size: 2em; } h3 { font-size: 1.5em; }

Slide 24

Slide 24 text

h1 { font-size: 3em; } h2 { font-size: 2em; } h3 { font-size: 1.5em; }

Slide 25

Slide 25 text

This is 1 em.

This is 2 ems (and 1.5 ems) .

Slide 26

Slide 26 text

This is 1 em.

This is 2 ems (and 1.5 ems) .
p { font-size: 1em; } div { font-size: 2em; } span { font-size: 1.5em; }

Slide 27

Slide 27 text

This is 1 em.

This is 2 ems (and 1.5 ems) .
p { font-size: 1em; } div { font-size: 2em; } span { font-size: 1.5em; }

Slide 28

Slide 28 text

Thoughtful CSS https://flic.kr/p/bUxzCm

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

div { font-size: 1.1em; }

Slide 31

Slide 31 text

div { font-size: 1.2em; }

Slide 32

Slide 32 text

https://flic.kr/p/5a4L3p Rems

Slide 33

Slide 33 text

html { font-size: 100%; }

Slide 34

Slide 34 text

Pixel Fallback https://flic.kr/p/GedyD

Slide 35

Slide 35 text

h1 { font-size: 32px; font-size: 2rem; }

Slide 36

Slide 36 text

Line Height (Leading) https://flic.kr/p/4EDFYF

Slide 37

Slide 37 text

p { line-height: 1; } p { line-height: 2; }

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

p { line-height: 1; }

Slide 41

Slide 41 text

p { line-height: 2; }

Slide 42

Slide 42 text

p { line-height: 1.4; }

Slide 43

Slide 43 text

p { line-height: 1.3 }

Slide 44

Slide 44 text

p { line-height: 1.3 } @media only screen and (min-width: 30em) { p { line-height: 1.4 } }

Slide 45

Slide 45 text

p { line-height: 1.3 } @media only screen and (min-width: 30em) { p { line-height: 1.4 } } @media only screen and (min-width: 60em) { p { line-height: 1.5 } }

Slide 46

Slide 46 text

Vertical Margins https://flic.kr/p/4qc5EB

Slide 47

Slide 47 text

p { line-height: 1.5; margin-top: 1.5em; margin-bottom: 1.5em; }

Slide 48

Slide 48 text

No content

Slide 49

Slide 49 text

Line Length (Measure) http://en.wikipedia.org/wiki/File:Metal_movable_type.jpg

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

45-75 Characters

Slide 53

Slide 53 text

65 58 65 73 68 67 66 74 72 69 69

Slide 54

Slide 54 text

No content

Slide 55

Slide 55 text

.testing { color: #f00; }

Slide 56

Slide 56 text

.testing { color: #f00; }

These stories are true. Although I have left the strict line of historical truth in many places, the animals in this book were all real characters.

Slide 57

Slide 57 text

.testing { color: #f00; }

These stories are true. Although I have left the strict line of historical truth in many places, the animals in this book were all real characters.

Slide 58

Slide 58 text

http://codepen.io/chriscoyier/pen/atebf

Slide 59

Slide 59 text

http://trentwalton.com

Slide 60

Slide 60 text

http://trentwalton.com

Slide 61

Slide 61 text

http://trentwalton.com

Slide 62

Slide 62 text

http://trentwalton.com

Slide 63

Slide 63 text

http://trentwalton.com

Slide 64

Slide 64 text

article p { line-height: 1.3; margin: 1.3em 0; } article { width: 94%; margin: auto; }

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

max-width https://flic.kr/p/7nCGk3

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

article { max-width: 28em; }

Slide 69

Slide 69 text

article { max-width: 28em; }

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

@media only screen and (min-width:48em) { article { font-size: 1.1em; } article p { line-height: 1.4; margin: 1.4em auto; } }

Slide 72

Slide 72 text

http://www.mqtest.io

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

@media only screen and (min-width:60em) { article { font-size: 1.2em; } article p { line-height: 1.5; margin: 1.5em auto; } }

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

Media Queries https://flic.kr/p/ajTNcB

Slide 78

Slide 78 text

https://flic.kr/p/8U1KwJ

Slide 79

Slide 79 text

Alignment & Hyphenation https://flic.kr/p/8veLPW

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

.hyphenate { -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }

Slide 82

Slide 82 text

@media only screen and (max-width: 40em) { .hyphenate { -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; } }

Slide 83

Slide 83 text

Easy to read https://flic.kr/p/8iCtLv

Slide 84

Slide 84 text

article p:first-of-type { font-size: 1.2em; }

Slide 85

Slide 85 text

Typeface https://flic.kr/p/5q1Qj1

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

#intro { font-size: 1em; font-family: Helvetica, sans-serif; }

Slide 89

Slide 89 text

#intro { font-size: 1em; font-family: Helvetica, sans-serif; } @media only screen and (min-width:30em) { #intro { font-size: 1.2em; font-family: Populaire, sans-serif; text-transform: uppercase; } }

Slide 90

Slide 90 text

Performance

Slide 91

Slide 91 text

Web Fonts https://flic.kr/p/51wXrK

Slide 92

Slide 92 text

@font-face { font-family: ExampleFont; src: url('ExampleFont.eot'); src: local('Example Font'), url('ExampleFont.eot?#iefix') format('embedded-opentype'), url('ExampleFont.woff') format('woff'), url('ExampleFont.ttf') format('truetype'), url('ExampleFont.svg') format('svg'); font-style: normal; font-weight: 400; }

Slide 93

Slide 93 text

@font-face { font-family: ExampleFont; src: url('ExampleFont.eot'); src: local('Example Font'), url('ExampleFont.eot?#iefix') format('embedded-opentype'), url('ExampleFont.woff') format('woff'), url('ExampleFont.ttf') format('truetype'), url('ExampleFont.svg') format('svg'); font-style: normal; font-weight: 400; }

Slide 94

Slide 94 text

@font-face { font-family: ExampleFont; src: url('ExampleFont.eot'); src: local('Example Font'), url('ExampleFont.eot?#iefix') format('embedded-opentype'), url('ExampleFont.woff') format('woff'), url('ExampleFont.ttf') format('truetype'), url('ExampleFont.svg') format('svg'); font-style: normal; font-weight: 400; }

Slide 95

Slide 95 text

Use fewer fonts

Slide 96

Slide 96 text

@font-face { font-family: ExampleFont; src: url('ExampleFont.eot'); }

Slide 97

Slide 97 text

@font-face { font-family: ExampleFont; src: url('ExampleFont.eot'); } p { font-family: Arial, sans-serif; }

Slide 98

Slide 98 text

@font-face { font-family: ExampleFont; src: url('ExampleFont.eot'); } p { font-family: Arial, sans-serif; } @media only screen and (min-width: 30em) { p { font-family: ExampleFont, Arial, sans-serif; } }

Slide 99

Slide 99 text

System Fonts https://flic.kr/p/eiyWiy

Slide 100

Slide 100 text

http://www.jordanm.co.uk/tinytype

Slide 101

Slide 101 text

http://www.jordanm.co.uk/tinytype h1 { font-family: Helvetica, Arial, 'Droid Sans', sans-serif; }

Slide 102

Slide 102 text

Slide 103

Slide 103 text

Communication https://flic.kr/p/6xyFnt

Slide 104

Slide 104 text

https://flic.kr/p/cdVB9h Clarissa Peterson Peterson/Kandy clarissapeterson.com @clarissa