Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Say Hello to Octicons
Search
Jon Rohan
July 21, 2012
Programming
104
7k
Say Hello to Octicons
Cameron McEfee and Jon Rohan talk about GitHub's icons.
Jon Rohan
July 21, 2012
Tweet
Share
More Decks by Jon Rohan
See All by Jon Rohan
GitHub's CSS Performance
jonrohan
1030
460k
Other Decks in Programming
See All in Programming
GitHub Actionsのキャッシュと手を挙げることの大切さとそれに必要なこと
satoshi256kbyte
5
430
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
Ethereum_.pdf
nekomatu
0
460
エンジニアとして関わる要件と仕様(公開用)
murabayashi
0
280
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
WebフロントエンドにおけるGraphQL(あるいはバックエンドのAPI)との向き合い方 / #241106_plk_frontend
izumin5210
4
1.4k
AWS Lambdaから始まった Serverlessの「熱」とキャリアパス / It started with AWS Lambda Serverless “fever” and career path
seike460
PRO
1
260
詳細解説! ArrayListの仕組みと実装
yujisoftware
0
580
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
100
Realtime API 入門
riofujimon
0
150
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
CSC509 Lecture 12
javiergs
PRO
0
160
Featured
See All Featured
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
860
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Designing for humans not robots
tammielis
250
25k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
What's in a price? How to price your products and services
michaelherold
243
12k
GraphQLとの向き合い方2022年版
quramy
43
13k
Designing the Hi-DPI Web
ddemaree
280
34k
For a Future-Friendly Web
brad_frost
175
9.4k
A designer walks into a library…
pauljervisheath
203
24k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Gamification - CAS2011
davidbonilla
80
5k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
Transcript
Cam & Rohan Making Icons @JONROHAN @CAMERONMCEFEE Saturday, July 21,
12
OCTICONS Say Hello To Saturday, July 21, 12
FAMFAMFAM Say Goodbye To Saturday, July 21, 12
ZOOMED Saturday, July 21, 12
Saturday, July 21, 12
Saturday, July 21, 12
Saturday, July 21, 12
SOME FACTS Saturday, July 21, 12
11% 22% 67% BROWSERS Chrome Firefox Safari Saturday, July 21,
12
SCREENS Saturday, July 21, 12
SCREENS 2000px 6% 1600px 42% 1440px 14% 1280px 30% Saturday,
July 21, 12
6 MILLION PAGE VIEWS Saturday, July 21, 12
1,469MS PAGE LOAD TIMES Saturday, July 21, 12
30+ HTTP REQUESTS Saturday, July 21, 12
MOSTLY ICONS Saturday, July 21, 12
ICON METHODS Saturday, July 21, 12
Images ICON METHODS Saturday, July 21, 12
Image Sprites Images ICON METHODS Saturday, July 21, 12
Image Sprites Images SVG ICON METHODS Saturday, July 21, 12
WHY CUSTOM ICONS? Saturday, July 21, 12
UNIQUE METAPHORS • Octocat • Repo • Issue • Fork
• Commit • Pull Request • Push • Submodule • Gist • Etc. Saturday, July 21, 12
OLD METAPHORS • Octocat • Repo • Issue • Fork
• Commit • Pull Request • Push • Submodule • Gist • Etc. Saturday, July 21, 12
NEW METAPHORS • Octocat • Repo • Issue • Fork
• Commit • Pull Request • Push • Submodule • Gist • Etc. Saturday, July 21, 12
CONSISTENCY Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES Saturday, July 21, 12
SPRITES SPRITE HELL Saturday, July 21, 12
Saturday, July 21, 12
Octicons
Saturday, July 21, 12
LET’S GET TECHNICAL Saturday, July 21, 12
STRATEGY Saturday, July 21, 12
METAPHORS Saturday, July 21, 12
METAPHORS Saturday, July 21, 12
FLEXIBLE SIZES Saturday, July 21, 12
FLEXIBLE SIZES 16px 32px Saturday, July 21, 12
FLEXIBLE SIZES • 16px: Optimized for 16px. Never scaled •
32px: Optimized for n*32px. Scaled when necessary. Saturday, July 21, 12
CRISPNESS Saturday, July 21, 12
CRISPNESS IS KEY Helve cons Pictos Oc cons Saturday, July
21, 12
CRISPNESS IS KEY Saturday, July 21, 12
RESIZING = BAD Saturday, July 21, 12
RESIZING = BAD Redesigned Scaled Saturday, July 21, 12
DESIGN > Saturday, July 21, 12
PHOTOSHOP TRICKS Saturday, July 21, 12
PHOTOSHOP TRICKS ILLUSIONS Saturday, July 21, 12
2-UP VIEW Saturday, July 21, 12
2-UP VIEW • Window > Application Frame • Window >
Arrange > New Window for …psd • Window > Arrange > 2-Up Vertical Saturday, July 21, 12
PIXEL GRID View > Show > Pixel Grid Saturday, July
21, 12
PIXEL SNAPPING Saturday, July 21, 12
BOXED ICONS Saturday, July 21, 12
SOURCE FILE Saturday, July 21, 12
GLYPHS PRIMER Saturday, July 21, 12
SKIPPING AHEAD Saturday, July 21, 12
THE BASICS Mx Cap-height X-height M-width Saturday, July 21, 12
MATH 32 16 = 2 32 32 = 1 Saturday,
July 21, 12
OUR “LOGICAL” SETUP 32 points 32 points Saturday, July 21,
12
THE MAGIC 2048 2048 16 = 128 2048 32 =
56 Saturday, July 21, 12
BASICALLY THE SAME width Saturday, July 21, 12
BASICALLY THE SAME height Saturday, July 21, 12
BASICALLY THE SAME resolu on (sort of) Saturday, July 21,
12
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
OUR FINAL FILE • Cap-height/x-height = 2048 points • Units
per em = 2048 points • Grid spacing = 32 Saturday, July 21, 12
MAKE THE FONT Saturday, July 21, 12
ALIGNMENT IS HARD Saturday, July 21, 12
ALIGNMENT IS HARD Saturday, July 21, 12
THE GRID (0,0) Glyphs Illustrator (0,X) (X,0) (0,-X) (0,0) (X,0)
Saturday, July 21, 12
STAGE IT (0,0) 2 grid square baseline shift 2048pts 256pts
Saturday, July 21, 12
STAGE IT paste at 16pts Saturday, July 21, 12
STAGE IT Saturday, July 21, 12
STAGE IT delete this copy this Saturday, July 21, 12
IT’S A FONT Saturday, July 21, 12
IT’S A FONT Saturday, July 21, 12
TO THE CLOUD Saturday, July 21, 12
OPENTYPE Saturday, July 21, 12
OTF > WEB FONT FONT QUIR L .otf .eot .svg
.ttf .woff Saturday, July 21, 12
PRIVATE USE UNICODE Saturday, July 21, 12
SUBSET FOR VICTORY Saturday, July 21, 12
@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
CSS CLASSES <span class="mini-icon search"></span> .mini-icon { ... -webkit-font-smoothing: antialiased;
} .mini-icon.search:before { content: "\f02e"; } Saturday, July 21, 12
CSS ANTI-ALIASING Subpixel Saturday, July 21, 12
CSS ANTI-ALIASING Subpixel None An -aliased Saturday, July 21, 12
ANTI-ALIASING Without With Saturday, July 21, 12
Saturday, July 21, 12
WHAT WORKED Saturday, July 21, 12
ALL THE COLORS Saturday, July 21, 12
ALL THE COLORS Saturday, July 21, 12
ANY SIZE Saturday, July 21, 12
ANY SIZE Saturday, July 21, 12
Saturday, July 21, 12
Retina Timing Saturday, July 21, 12
Saturday, July 21, 12
Saturday, July 21, 12
WHAT DIDN’T WORK Saturday, July 21, 12
TOO COMPLEX Saturday, July 21, 12
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
GLYPHS IS LIMITED Saturday, July 21, 12
CLEAR TYPE Saturday, July 21, 12
ACCESSIBILITY Saturday, July 21, 12
@FONT-FACE DISABLED Saturday, July 21, 12
MAKING THINGS BETTER Saturday, July 21, 12
GRAPHIC CHANGES Saturday, July 21, 12
CSS PERFORMANCE .mini-icon { font-icon: stuff; } .mini-icon.private-repo { font:
unicode; } Saturday, July 21, 12
20K+ CSS MATCHES PER PAGE Saturday, July 21, 12
BREAK UP data-icon=”f023” .mini-icon:before { content: attr(“data-icon”); } Saturday, July
21, 12
BREAK UP .mini-icon { font-icon: stuff; } .mini-icon-private-repo { font:
unicode; } Saturday, July 21, 12
THANKS @JONROHAN @CAMERONMCEFEE Saturday, July 21, 12
THANKS @JONROHAN @CAMERONMCEFEE
Saturday, July 21, 12