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
Maintainable CSS
Search
Juanda Zapata
March 30, 2016
Programming
87
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Maintainable CSS
Introduction to BEM
Juanda Zapata
March 30, 2016
More Decks by Juanda Zapata
See All by Juanda Zapata
Principles of Visual Design
juanzuluaga
0
81
Adapter Pattern
juanzuluaga
0
180
Elixir 101 - The Erlang VM
juanzuluaga
5
340
UI Fundamentals for Programmers
juanzuluaga
0
290
UI fundamentals for programmers
juanzuluaga
0
400
Programming in paradise
juanzuluaga
1
150
Intro to Ruby
juanzuluaga
1
700
Other Decks in Programming
See All in Programming
「つくるAI」だけではバグは見つからない ~テストに必要な「見つけるAI」を分離させる戦略~
mfunaki
0
130
jsmini JavaScript Engine を作ってみた話
yosuke_furukawa
PRO
0
350
自動化したのに回らないテスト運用の壁ーAI時代の品質責任と生産性
mfunaki
1
150
typoなんかねぇよ
raspython3
0
230
How I Won Prize Money at a Hackathon Using Codex and Symphony Alpha
yasei_no_otoko
0
120
in-process GraphQL のすすめ #ginzajs
izumin5210
4
1.4k
関東Kaggler会_NVIDIA_Nemotron_コンペ_振り返り
rick_ds
0
680
AIを紡ぐPMのお話
swdtkuy
0
120
AWS DevOps AgentのAzure接続機能を検証して見えた活用法/Use Cases Verified for the AWS DevOps Agent's Azure Connectivity Feature
masakiokuda
1
260
言葉の格闘技のススメ~紙とペンと言葉から始める、キャリアの描き方~
progresscicada
2
170
レビュー履歴をAIに食わせて、 Compose移行を加速するs
shihochan
0
170
FastAPI の並行処理モデルを完全に理解する
hoto17296
6
2.3k
Featured
See All Featured
Abbi's Birthday
coloredviolet
3
9.4k
Deep Space Network (abreviated)
tonyrice
0
260
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
280
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
440
Color Theory Basics | Prateek | Gurzu
gurzu
0
430
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.4k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
[SF Ruby Conf 2025] Rails X
palkan
2
1.3k
Heart Work Chapter 1 - Part 1
lfama
PRO
8
36k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
260
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
The Cost Of JavaScript in 2023
addyosmani
55
10k
Transcript
Maintainable CSS with BEM
a set of conventions
not a library
not a framework
set of conventions
enforce them in code review
not a silver bullet
writing maintainable CSS is HARD
add everything to app.sass
app.sass => 1000 LOC
too hard to find a selector
too easy to overwrite a style
not maintainable
BEM
Block Element Modifier
None
None
None
None
None
None
not easily overwritten by accident
None
ugh that's a lot of typing
None
folder structure
again, not enforced by any script or framework
better to have several small focused files
None
None
use the power of SASS
variables
we can change the whole L&F of an app just
by modifying one file
None
alternatives
SMACSS https://smacss.com/
Scalable Modular Architecture for CSS
Used by TWTBS
Selectors tend to be deeply nested
Hard to customize
It's ok to mix BEM and SMACSS
CSSModules http://glenmaddern.com/articles/css-modules
Gaining a lot of steam in the REACT community
It's a step forward over BEM without global namespaces
thanks!
questions?