Say Hello to Octicons

Say Hello to Octicons

Cameron McEfee and Jon Rohan talk about GitHub's icons.

64827b31aef81498662e8af4bd6d5157?s=128

Jon Rohan

July 21, 2012
Tweet

Transcript

  1. Cam & Rohan Making Icons @JONROHAN @CAMERONMCEFEE Saturday, July 21,

    12
  2. OCTICONS Say Hello To  Saturday, July 21, 12

  3. FAMFAMFAM Say Goodbye To Saturday, July 21, 12

  4. ZOOMED Saturday, July 21, 12

  5. Saturday, July 21, 12

  6. Saturday, July 21, 12

  7. Saturday, July 21, 12

  8. SOME FACTS Saturday, July 21, 12

  9. 11% 22% 67% BROWSERS Chrome Firefox Safari Saturday, July 21,

    12
  10. SCREENS Saturday, July 21, 12

  11. SCREENS 2000px 6% 1600px 42% 1440px 14% 1280px 30% Saturday,

    July 21, 12
  12. 6 MILLION PAGE VIEWS Saturday, July 21, 12

  13. 1,469MS PAGE LOAD TIMES Saturday, July 21, 12

  14. 30+ HTTP REQUESTS Saturday, July 21, 12

  15. MOSTLY ICONS Saturday, July 21, 12

  16. ICON METHODS Saturday, July 21, 12

  17. Images ICON METHODS Saturday, July 21, 12

  18. Image Sprites Images ICON METHODS Saturday, July 21, 12

  19. Image Sprites Images SVG ICON METHODS Saturday, July 21, 12

  20. WHY CUSTOM ICONS? Saturday, July 21, 12

  21. UNIQUE METAPHORS • Octocat • Repo • Issue • Fork

    • Commit • Pull Request • Push • Submodule • Gist • Etc. Saturday, July 21, 12
  22. OLD METAPHORS • Octocat • Repo • Issue • Fork

    • Commit • Pull Request • Push • Submodule • Gist • Etc. Saturday, July 21, 12
  23. NEW METAPHORS • Octocat • Repo • Issue • Fork

    • Commit • Pull Request • Push • Submodule • Gist • Etc.           Saturday, July 21, 12
  24. CONSISTENCY Saturday, July 21, 12

  25. SPRITES Saturday, July 21, 12

  26. SPRITES Saturday, July 21, 12

  27. SPRITES Saturday, July 21, 12

  28. SPRITES Saturday, July 21, 12

  29. SPRITES Saturday, July 21, 12

  30. SPRITES Saturday, July 21, 12

  31. SPRITES Saturday, July 21, 12

  32. SPRITES Saturday, July 21, 12

  33. SPRITES Saturday, July 21, 12

  34. SPRITES Saturday, July 21, 12

  35. SPRITES Saturday, July 21, 12

  36. SPRITES Saturday, July 21, 12

  37. SPRITES Saturday, July 21, 12

  38. SPRITES Saturday, July 21, 12

  39. SPRITES Saturday, July 21, 12

  40. SPRITES Saturday, July 21, 12

  41. SPRITES Saturday, July 21, 12

  42. SPRITES SPRITE HELL Saturday, July 21, 12

  43. Saturday, July 21, 12

  44. Octicons         

                               Saturday, July 21, 12
  45. LET’S GET TECHNICAL Saturday, July 21, 12

  46. STRATEGY Saturday, July 21, 12

  47. METAPHORS Saturday, July 21, 12

  48. METAPHORS Saturday, July 21, 12

  49. FLEXIBLE SIZES Saturday, July 21, 12

  50. FLEXIBLE SIZES 16px 32px Saturday, July 21, 12

  51. FLEXIBLE SIZES • 16px: Optimized for 16px. Never scaled •

    32px: Optimized for n*32px. Scaled when necessary. Saturday, July 21, 12
  52. CRISPNESS Saturday, July 21, 12

  53. CRISPNESS IS KEY Helve cons Pictos Oc cons Saturday, July

    21, 12
  54. CRISPNESS IS KEY Saturday, July 21, 12

  55. RESIZING = BAD Saturday, July 21, 12

  56. RESIZING = BAD Redesigned Scaled Saturday, July 21, 12

  57. DESIGN > Saturday, July 21, 12

  58. PHOTOSHOP TRICKS Saturday, July 21, 12

  59. PHOTOSHOP TRICKS ILLUSIONS Saturday, July 21, 12

  60. 2-UP VIEW Saturday, July 21, 12

  61. 2-UP VIEW • Window > Application Frame • Window >

    Arrange > New Window for …psd • Window > Arrange > 2-Up Vertical Saturday, July 21, 12
  62. PIXEL GRID View > Show > Pixel Grid Saturday, July

    21, 12
  63. PIXEL SNAPPING Saturday, July 21, 12

  64. BOXED ICONS Saturday, July 21, 12

  65. SOURCE FILE Saturday, July 21, 12

  66. GLYPHS PRIMER Saturday, July 21, 12

  67. SKIPPING AHEAD Saturday, July 21, 12

  68. THE BASICS Mx Cap-height X-height M-width Saturday, July 21, 12

  69. MATH 32 16 = 2 32 32 = 1 Saturday,

    July 21, 12
  70. OUR “LOGICAL” SETUP 32 points 32 points Saturday, July 21,

    12
  71. THE MAGIC 2048 2048 16 = 128 2048 32 =

    56 Saturday, July 21, 12
  72. BASICALLY THE SAME width Saturday, July 21, 12

  73. BASICALLY THE SAME height Saturday, July 21, 12

  74. BASICALLY THE SAME resolu on (sort of) Saturday, July 21,

    12
  75. FILE SIZE IS WEIRD Size Grid Quality File Size (kb)

    512 4 Meh 28 512 8 Meh 27 1024 0 Good 37 1024 32 Meh 29 1024 64 Bad 2048 32 Good 33 2048 64 Good 33 2048 128 Good 33 Saturday, July 21, 12
  76. OUR FINAL FILE • Cap-height/x-height = 2048 points • Units

    per em = 2048 points • Grid spacing = 32 Saturday, July 21, 12
  77. MAKE THE FONT Saturday, July 21, 12

  78. ALIGNMENT IS HARD Saturday, July 21, 12

  79. ALIGNMENT IS HARD Saturday, July 21, 12

  80. THE GRID (0,0) Glyphs Illustrator (0,X) (X,0) (0,-X) (0,0) (X,0)

    Saturday, July 21, 12
  81. STAGE IT (0,0) 2 grid square baseline shift 2048pts 256pts

    Saturday, July 21, 12
  82. STAGE IT paste at 16pts Saturday, July 21, 12

  83. STAGE IT Saturday, July 21, 12

  84. STAGE IT delete this copy this Saturday, July 21, 12

  85. IT’S A FONT Saturday, July 21, 12

  86. IT’S A FONT Saturday, July 21, 12

  87. TO THE CLOUD Saturday, July 21, 12

  88. OPENTYPE Saturday, July 21, 12

  89. OTF > WEB FONT FONT QUIR L .otf .eot .svg

    .ttf .woff Saturday, July 21, 12
  90. PRIVATE USE UNICODE Saturday, July 21, 12

  91. SUBSET FOR VICTORY Saturday, July 21, 12

  92. @font-face { font-family: 'Octicons Regular'; src: font-url('octicons.eot'); src: font-url('octicons.eot#iefix') format('embedded-opentype'),

    font-url('octicons.woff') format('woff'), font-url('octicons.ttf') format('truetype'), font-url('octicons.svg#newFontRegular') format('svg'); font-weight: normal; font-style: normal; } @FONT-FACE Saturday, July 21, 12
  93. CSS CLASSES <span class="mini-icon search"></span> .mini-icon { ... -webkit-font-smoothing: antialiased;

    } .mini-icon.search:before { content: "\f02e"; } Saturday, July 21, 12
  94. CSS ANTI-ALIASING Subpixel Saturday, July 21, 12

  95. CSS ANTI-ALIASING Subpixel None An -aliased Saturday, July 21, 12

  96. ANTI-ALIASING Without With Saturday, July 21, 12

  97. Saturday, July 21, 12

  98. WHAT WORKED Saturday, July 21, 12

  99. ALL THE COLORS Saturday, July 21, 12

  100.          

                                                                  ALL THE COLORS Saturday, July 21, 12
  101. ANY SIZE Saturday, July 21, 12

  102. ANY SIZE    Saturday, July 21, 12

  103. Saturday, July 21, 12

  104. Retina Timing Saturday, July 21, 12

  105. Saturday, July 21, 12

  106. Saturday, July 21, 12

  107. WHAT DIDN’T WORK Saturday, July 21, 12

  108. TOO COMPLEX Saturday, July 21, 12

  109. UPDATES ARE TEDIOUS 1.Icon concept 2.Draw 2 icons 3.Copy into

    Illustrator 4.Copy into Glyphs 5.Export font 6.Convert font 7.Update font 8.Deploy GitHub Saturday, July 21, 12
  110. GLYPHS IS LIMITED Saturday, July 21, 12

  111. CLEAR TYPE Saturday, July 21, 12

  112. ACCESSIBILITY Saturday, July 21, 12

  113. @FONT-FACE DISABLED Saturday, July 21, 12

  114. MAKING THINGS BETTER Saturday, July 21, 12

  115. GRAPHIC CHANGES     Saturday, July 21, 12

  116. CSS PERFORMANCE .mini-icon { font-icon: stuff; } .mini-icon.private-repo { font:

    unicode; } Saturday, July 21, 12
  117. 20K+ CSS MATCHES PER PAGE Saturday, July 21, 12

  118. BREAK UP data-icon=”f023” .mini-icon:before { content: attr(“data-icon”); } Saturday, July

    21, 12
  119. BREAK UP .mini-icon { font-icon: stuff; } .mini-icon-private-repo { font:

    unicode; } Saturday, July 21, 12
  120. THANKS @JONROHAN @CAMERONMCEFEE Saturday, July 21, 12

  121. THANKS @JONROHAN @CAMERONMCEFEE       

                           Saturday, July 21, 12