Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
CSS – You’ve Been Doing It Wrong
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Harry Roberts
June 04, 2013
Design
3k
14
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSS – You’ve Been Doing It Wrong
CSS – You’ve Been Doing It Wrong, Hey!Stac, Leeds. June 2013.
Harry Roberts
June 04, 2013
More Decks by Harry Roberts
See All by Harry Roberts
Build for the Web, Build on the Web, Build With the Web
csswizardry
0
560
Site-Speed That Sticks
csswizardry
13
1.5k
How to Think Like a Performance Engineer
csswizardry
28
2.8k
cache rules everything
csswizardry
5
3.9k
My Website Is Slow! Where Do I Start?
csswizardry
5
600
Optimising Largest Contentful Paint
csswizardry
37
3.9k
Get Your Head Straight
csswizardry
15
21k
From Milliseconds to Millions: A Look at the Numbers Powering Web Performance
csswizardry
1
2.8k
More Than You Ever Wanted to Know About Resource Hints
csswizardry
6
11k
Other Decks in Design
See All in Design
PAMPHLET.pdf
mhand01
0
1.8k
1000人規模の組織でデザインハーネスを導入するための第一歩
pkshadeck
PRO
5
3.9k
Debiasing Your Software Design Decision-Making @ Flowcon '26
baasie
1
170
明日から真似できる、AIでデザインシステムを活用する方法
vivion
0
400
空間アプリ開発のフィードバックをCodexにするための抽象的なデザインツールの模索
karad
0
190
いいUIとは?初心者向けに事例をもとにUIデザインを分解
yuichi_hara7
11
6k
凡庸を落とすハーネス
hiromimaeo
2
830
なぜ、インサイトを貯めるのか?
tajima_kaho
3
2.7k
decksh object reference
ajstarks
2
1.8k
工房としてのAI ── デザイナー、作家、ビルダー
hiranotomoki
0
450
Rethinking IFUs: What Board Game Rulebooks Contribute to IFU Usability
deadlinepoet
0
370
20260309_3月ICTデザイン勉強会_地域創生2.0
a2k
0
180
Featured
See All Featured
Building the Perfect Custom Keyboard
takai
2
870
Building a Scalable Design System with Sketch
lauravandoore
464
34k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.8k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
Building Applications with DynamoDB
mza
96
7.2k
The SEO identity crisis: Don't let AI make you average
varn
0
550
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
680
Designing for humans not robots
tammielis
254
26k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
330
Into the Great Unknown - MozCon
thekraken
41
2.7k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
Transcript
CSS – You’ve Been Doing It Wrong
Harry Roberts @csswizardry @
None
CSS – You’ve Been Doing It Wrong
Should designers code?
Sure! But not as designers.
‘We all know developers shouldn’t design.’
1955: FORTRAN
1996: CSS
Programmers have had a 41 year head start!
We should listen to developers.
Abstractions
Object orientation
Performance first
DRY
Single Responsibility Principle
KISS
CSS != ‘Code’
DRYness
DRYness Robustness
DRYness Scalability Robustness
DRYness Scalability Robustness Performance
DRYness Scalability Maintainability Robustness Performance
DRYness Efficiency Scalability Maintainability Robustness Performance
DRYness Efficiency Scalability Maintainability Modularity Robustness Performance
DRYness Efficiency Scalability Maintainability Modularity Robustness Portability Performance
DRYness Efficiency Scalability Maintainability Readability Modularity Robustness Portability Performance
Over engineered
Complex
Spaghetti code
Developers have been listening to designers :(
<?= date("Y") ?>
‘No extra markup!’
‘Semantic classes!’
Prettiness
Hand crafting
Gold plating
Complexity
CSS is pretty poor…
…but you can write it better.
Write CSS with a developer’s mind.
CSS – You’ve Been Doing It Wrong
Harry Roberts @csswizardry @