Submit Search
Upload
An Introduction to Object Oriented CSS
•
5 likes
•
1,436 views
Nati Devalle
Follow
Talk I gave for the Design team at MercadoLibre.
Read less
Read more
Design
Technology
Report
Share
Report
Share
1 of 79
Download now
Download to read offline
Recommended
DRY CSS
DRY CSS
Nati Devalle
An introduction to Object Oriented CSS
An introduction to Object Oriented CSS
Kelley Howell
Object Oriented CSS for rapid, scalable and maintainable development
Object Oriented CSS for rapid, scalable and maintainable development
Graeme Blackwood
OOCSS for Javascript pirates at jQueryPgh meetup
OOCSS for Javascript pirates at jQueryPgh meetup
Brian Cavalier
Rock Solid CSS Architecture
Rock Solid CSS Architecture
John Need
What is Modular CSS?
What is Modular CSS?
Scott Vandehey
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and more
Russ Weakley
The Future State of Layout
The Future State of Layout
Stephen Hay
Recommended
DRY CSS
DRY CSS
Nati Devalle
An introduction to Object Oriented CSS
An introduction to Object Oriented CSS
Kelley Howell
Object Oriented CSS for rapid, scalable and maintainable development
Object Oriented CSS for rapid, scalable and maintainable development
Graeme Blackwood
OOCSS for Javascript pirates at jQueryPgh meetup
OOCSS for Javascript pirates at jQueryPgh meetup
Brian Cavalier
Rock Solid CSS Architecture
Rock Solid CSS Architecture
John Need
What is Modular CSS?
What is Modular CSS?
Scott Vandehey
CSS - OOCSS, SMACSS and more
CSS - OOCSS, SMACSS and more
Russ Weakley
The Future State of Layout
The Future State of Layout
Stephen Hay
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
Eric Carlisle
OOCSS for JavaScript Pirates jQcon Boston
OOCSS for JavaScript Pirates jQcon Boston
John Hann
Class15
Class15
Jiyeon Lee
HTML Tour - Buenas prácticas en el desarrollo web
HTML Tour - Buenas prácticas en el desarrollo web
Plain Concepts
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Scott DeLoach
Thoughtful architecture and good practices in CSS - myth or new realities
Thoughtful architecture and good practices in CSS - myth or new realities
Anna Matysiak
The New CSS Layout - Dutch PHP Conference
The New CSS Layout - Dutch PHP Conference
Rachel Andrew
Newcastle University & T4 Site Manager: TERMINALFOUR t44u 2013
Newcastle University & T4 Site Manager: TERMINALFOUR t44u 2013
Terminalfour
Modular HTML & CSS Workshop
Modular HTML & CSS Workshop
Shay Howe
Object oriented css graeme blackwood
Object oriented css graeme blackwood
drupalconf
Css framework
Css framework
Olivier Besson
How to develop a CSS Framework
How to develop a CSS Framework
Olivier Besson
Css framework
Css framework
Olivier Besson
960 grid psd
960 grid psd
Raju Nag
Scalable and Modular Architecture for CSS
Scalable and Modular Architecture for CSS
Jyaasa Technologies
Refresh OKC
Refresh OKC
Nathan Smith
Object oriented css. Graeme Blackwood
Object oriented css. Graeme Blackwood
PVasili
Drupal 960 grid system based theming
Drupal 960 grid system based theming
Gaurav Mishra
Javascript Design Patterns
Javascript Design Patterns
Lilia Sfaxi
Scoped CSS: To scope or not to scope
Scoped CSS: To scope or not to scope
Shi Ling Tai
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Nitish292041
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
LucyBonelli
More Related Content
Similar to An Introduction to Object Oriented CSS
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
Eric Carlisle
OOCSS for JavaScript Pirates jQcon Boston
OOCSS for JavaScript Pirates jQcon Boston
John Hann
Class15
Class15
Jiyeon Lee
HTML Tour - Buenas prácticas en el desarrollo web
HTML Tour - Buenas prácticas en el desarrollo web
Plain Concepts
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Scott DeLoach
Thoughtful architecture and good practices in CSS - myth or new realities
Thoughtful architecture and good practices in CSS - myth or new realities
Anna Matysiak
The New CSS Layout - Dutch PHP Conference
The New CSS Layout - Dutch PHP Conference
Rachel Andrew
Newcastle University & T4 Site Manager: TERMINALFOUR t44u 2013
Newcastle University & T4 Site Manager: TERMINALFOUR t44u 2013
Terminalfour
Modular HTML & CSS Workshop
Modular HTML & CSS Workshop
Shay Howe
Object oriented css graeme blackwood
Object oriented css graeme blackwood
drupalconf
Css framework
Css framework
Olivier Besson
How to develop a CSS Framework
How to develop a CSS Framework
Olivier Besson
Css framework
Css framework
Olivier Besson
960 grid psd
960 grid psd
Raju Nag
Scalable and Modular Architecture for CSS
Scalable and Modular Architecture for CSS
Jyaasa Technologies
Refresh OKC
Refresh OKC
Nathan Smith
Object oriented css. Graeme Blackwood
Object oriented css. Graeme Blackwood
PVasili
Drupal 960 grid system based theming
Drupal 960 grid system based theming
Gaurav Mishra
Javascript Design Patterns
Javascript Design Patterns
Lilia Sfaxi
Scoped CSS: To scope or not to scope
Scoped CSS: To scope or not to scope
Shi Ling Tai
Similar to An Introduction to Object Oriented CSS
(20)
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
OOCSS for JavaScript Pirates jQcon Boston
OOCSS for JavaScript Pirates jQcon Boston
Class15
Class15
HTML Tour - Buenas prácticas en el desarrollo web
HTML Tour - Buenas prácticas en el desarrollo web
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Extreme CSS Techniques - MadWorld Europe 2018, Scott DeLoach, ClickStart
Thoughtful architecture and good practices in CSS - myth or new realities
Thoughtful architecture and good practices in CSS - myth or new realities
The New CSS Layout - Dutch PHP Conference
The New CSS Layout - Dutch PHP Conference
Newcastle University & T4 Site Manager: TERMINALFOUR t44u 2013
Newcastle University & T4 Site Manager: TERMINALFOUR t44u 2013
Modular HTML & CSS Workshop
Modular HTML & CSS Workshop
Object oriented css graeme blackwood
Object oriented css graeme blackwood
Css framework
Css framework
How to develop a CSS Framework
How to develop a CSS Framework
Css framework
Css framework
960 grid psd
960 grid psd
Scalable and Modular Architecture for CSS
Scalable and Modular Architecture for CSS
Refresh OKC
Refresh OKC
Object oriented css. Graeme Blackwood
Object oriented css. Graeme Blackwood
Drupal 960 grid system based theming
Drupal 960 grid system based theming
Javascript Design Patterns
Javascript Design Patterns
Scoped CSS: To scope or not to scope
Scoped CSS: To scope or not to scope
Recently uploaded
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Nitish292041
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
LucyBonelli
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
AayushChavan5
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 ppppppppppppppp
NadaMohammed714321
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
JIT KUMAR GUPTA
Iconic Global Solution - web design, Digital Marketing services
Iconic Global Solution - web design, Digital Marketing services
Iconic global solution
General Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptx
marckustrevion
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 ppppppppppppppp
NadaMohammed714321
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Associazione Digital Days
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssss
NadaMohammed714321
Pearl Disrtrict urban analyusis study pptx
Pearl Disrtrict urban analyusis study pptx
DanielTamiru4
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbb
preetirao780
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
yuj
Map of St. Louis Parks
Map of St. Louis Parks
CharlottePulte
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
zdzoqco
Color Theory Explained for Noobs- Think360 Studio
Color Theory Explained for Noobs- Think360 Studio
Think360 Studio
Piece by Piece Magazine
Piece by Piece Magazine
CharlottePulte
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project Studio
RMG Project Studio
group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdf
neelspinoy
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers
Pixeldarts
Recently uploaded
(20)
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
Unit1_Syllbwbnwnwneneneneneneentation_Sem2.pptx
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
simpson-lee_house_dt20ajshsjsjsjsjj15.pdf
Pharmaceutical Packaging for the elderly.pdf
Pharmaceutical Packaging for the elderly.pdf
Karim apartment ideas 01 ppppppppppppppp
Karim apartment ideas 01 ppppppppppppppp
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Making and Unmaking of Chandigarh - A City of Two Plans2-4-24.ppt
Iconic Global Solution - web design, Digital Marketing services
Iconic Global Solution - web design, Digital Marketing services
General Knowledge Quiz Game C++ CODE.pptx
General Knowledge Quiz Game C++ CODE.pptx
Karim apartment ideas 02 ppppppppppppppp
Karim apartment ideas 02 ppppppppppppppp
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
Giulio Michelon, Founder di @Belka – “Oltre le Stime: Sviluppare una Mentalit...
guest bathroom white and bluesssssssssss
guest bathroom white and bluesssssssssss
Pearl Disrtrict urban analyusis study pptx
Pearl Disrtrict urban analyusis study pptx
world health day 2024.pptxgbbvggvbhjjjbbbb
world health day 2024.pptxgbbvggvbhjjjbbbb
How to Empower the future of UX Design with Gen AI
How to Empower the future of UX Design with Gen AI
Map of St. Louis Parks
Map of St. Louis Parks
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
办理卡尔顿大学毕业证成绩单|购买加拿大文凭证书
Color Theory Explained for Noobs- Think360 Studio
Color Theory Explained for Noobs- Think360 Studio
Piece by Piece Magazine
Piece by Piece Magazine
Interior Design for Office a cura di RMG Project Studio
Interior Design for Office a cura di RMG Project Studio
group_15_empirya_p1projectIndustrial.pdf
group_15_empirya_p1projectIndustrial.pdf
10 must-have Chrome extensions for designers
10 must-have Chrome extensions for designers
An Introduction to Object Oriented CSS
1.
An Introduction to
Object Oriented CSS Scalable and Maintainable Stylesheets Nati Devalle - @Taly UX Designer
2.
Starting a project
from scratch
3.
4.
6 months later...
5.
6.
WHY?
7.
We keep piling
styles up
8.
instead of reusing
them
9.
Where do we
start? http://www.flickr.com/photos/mrlemming_photos/5750248841/
10.
Object Oriented CSS by Nicole Sullivan
11.
2 Principles 1. Separation
of Structure from Skin 2. Separation of Containers from Content
12.
2 Principles 1. Separation
of Structure from Skin 2. Separation of Containers from Content
13.
14.
15.
Structure Skin
16.
Structure Skin
17.
Scalable .ch-box-error {} .ch-box-attention {}
18.
Scalable .ch-box-error {} .ch-box-attention {} .ch-box-help
{} .ch-box-information {} .ch-box-ok {}
19.
Maintainable [class*='ch-box'] { border-radius: 5px; padding:
10px; margin: 0 0 10px 0; }
20.
Maintainable [class*='ch-box'] { border-radius: 20px; padding:
10px; margin: 0 0 10px 0; }
21.
2 Principles 1. Separation
of Structure from Skin 2. Separation of Containers from Content
22.
What’s Content?
23.
24.
What’s Container?
25.
http://www.html5code.com/tutorials/html5-semantic-layout-tags/
26.
Break the dependency between
content and container (So you can put the content in different containers)
27.
Use styles that
are specific to an element and don’t depend on location
28.
29.
30.
The Recipe 1. Identify
the pattern 2. Create a component library 3. Extend it http://www.flickr.com/photos/mlazarevski/8108416027/sizes/l/in/photostre
31.
32.
What’s The Pattern?
33.
34.
How did we
code this?
35.
How did we
code this?
36.
How did we
code this?
37.
38.
39.
Pattern = Reusable (and
consistency)
40.
Create a component
41.
42.
43.
44.
Extend
45.
46.
47.
48.
49.
Too similar? Choose one!
50.
Extend more
51.
Exceptions
52.
53.
54.
Not bad
55.
But it is
really necessary?
56.
Today 7 badges Saved 18+
repeated declarations
57.
58.
59.
60.
61.
20 badges Saved 57+
repeated declarations
62.
63.
And that’s just
ONE pattern
64.
Think of all
the others we can find http://www.flickr.com/photos/bdesham/2432400623/in/photostream/
65.
66.
and this
67.
and thiscould be
just this
68.
Success!
69.
70.
This could be
very tempting...
71.
But what if
it changes?
72.
73.
Future-proof
74.
Don’t forget about
semantics Embrace Semantics
75.
To sum it
up...
76.
If you have
to copy and paste just one single CSS declaration...
77.
78.
( Tweet me
at @Taly )
79.
● http://oocss.org/ ● http://www.slideshare.net/stubbornella/object-oriented-css ●
http://www.slideshare.net/stubbornella/what-is-object-oriented-css ● https://www.youtube.com/watch?v=EW8NAFELWzo ● http://www.stubbornella.org/content/2010/06/25/the-media-object- saves-hundreds-of-lines-of-code/ ● http://www.slideshare.net/stubbornella/5-mistakes-of-massive-css ● http://www.lukew.com/ff/entry.asp?1049 ● http://coding.smashingmagazine.com/2011/12/12/an-introduction-to- object-oriented-css-oocss/ ● http://www.sitepoint.com/css-architectures-scalable-and-modular- approaches/ ● https://www.google.com.ar/search?q=OOCSS Resources
Download now