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
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
620
Site-Speed That Sticks
csswizardry
13
1.6k
How to Think Like a Performance Engineer
csswizardry
28
2.9k
cache rules everything
csswizardry
5
3.9k
My Website Is Slow! Where Do I Start?
csswizardry
5
610
Optimising Largest Contentful Paint
csswizardry
37
4k
Get Your Head Straight
csswizardry
15
22k
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
Agentic Design Workflowを育てる 「三層デザインハーネス」の現在地
sayadesign2
0
730
Look Dev Meetup #50
baku89
1
520
HeartLanguage - DesignProcess
heartlanguage
0
190
1000人規模の組織でデザインハーネスを導入するための第一歩
pkshadeck
PRO
5
4.3k
デザイナーの判断をAIにつなぐ ── 審美眼をハーネスする試み
kotasaito_cnt
0
1.2k
LP制作のための熱量ハーネス -人の熱量を、AIとの制作につなぐ-
niccy
0
1.7k
Rondo 1 Minute Short Storyboard
rezaline
0
100
Design_Harness_and_Loop.pdf
nagatsu
0
110
工房としてのAI ── デザイナー、作家、ビルダー
hiranotomoki
0
530
東京都市大学 都市生活学部×一般社団法人オープン企画イベント 「誰もがデザイナーである」とはどういうことか? 【エツィオ・マンズィーニ氏 特別来日・基調講演】
a2k
1
140
富山デザイン勉強会_生成AIを使ったデザイン制作2026最新版.pdf
keita_yoshikawa
0
150
デザインツールを開く前に その画面は誰に何と言わせたい?受託UIデザイナーが顧客解像度を高める 「打ち合わせの場での確かめ方」
garyuten
1
260
Featured
See All Featured
Design in an AI World
tapps
1
350
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
610
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
2
400
The Pragmatic Product Professional
lauravandoore
37
7.5k
Paper Plane
katiecoart
PRO
4
54k
Typedesign – Prime Four
hannesfritz
42
3.2k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
Designing for humans not robots
tammielis
254
26k
The SEO Collaboration Effect
kristinabergwall1
1
590
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
370
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
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 @