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
105
7.1k
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
Lookerは可視化だけじゃない。UIコンポーネントもあるんだ!
ymd65536
1
130
「とりあえず動く」コードはよい、「読みやすい」コードはもっとよい / Code that 'just works' is good, but code that is 'readable' is even better.
mkmk884
6
1.4k
Alba: Why, How and What's So Interesting
okuramasafumi
0
200
BEエンジニアがFEの業務をできるようになるまでにやったこと
yoshida_ryushin
0
190
QA環境で誰でも自由自在に現在時刻を操って検証できるようにした話
kalibora
1
140
Beyond ORM
77web
11
1.6k
混沌とした例外処理とエラー監視に秩序をもたらす
morihirok
13
2.1k
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
1.7k
令和7年版 あなたが使ってよいフロントエンド機能とは
mugi_uno
10
5k
ある日突然あなたが管理しているサーバーにDDoSが来たらどうなるでしょう?知ってるようで何も知らなかったDDoS攻撃と対策 #phpcon.2024
akase244
2
7.7k
責務を分離するための例外設計 - PHPカンファレンス 2024
kajitack
9
2.3k
20年もののレガシープロダクトに 0からPHPStanを入れるまで / phpcon2024
hirobe1999
0
1k
Featured
See All Featured
A Tale of Four Properties
chriscoyier
157
23k
Producing Creativity
orderedlist
PRO
343
39k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
230
52k
Automating Front-end Workflow
addyosmani
1366
200k
BBQ
matthewcrist
85
9.4k
We Have a Design System, Now What?
morganepeng
51
7.3k
Become a Pro
speakerdeck
PRO
26
5.1k
RailsConf 2023
tenderlove
29
970
Agile that works and the tools we love
rasmusluckow
328
21k
Keith and Marios Guide to Fast Websites
keithpitt
410
22k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
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