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 Architecture
Search
Sam Yamashita
March 05, 2015
Programming
79
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSS Architecture
Sam Yamashita
March 05, 2015
More Decks by Sam Yamashita
See All by Sam Yamashita
AI が自動テストの分野でどのように使われるのか
unbabel
0
160
Thailand
unbabel
1
92
DX に優れた多言語化ドキュメント作成方法
unbabel
0
540
3 Tips for meeting
unbabel
0
290
What is GitHub Marketplace and good for?
unbabel
0
120
OSS 翻訳と GitLocalize
unbabel
0
560
Redux in Production
unbabel
1
330
Introduction to RAIL
unbabel
0
120
Git・Githubに関する隠された便利な機能
unbabel
1
430
Other Decks in Programming
See All in Programming
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
970
Ghostty + Neovimで作る 透明でカッコ良い開発環境
j341nono
0
170
TechTown - Creating Composable Callables in Contemporary C++
rollbear
0
110
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
210
sbt 2.0: takeoff
eed3si9n
0
150
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
1
310
動作中のプログラムの中身をリアルタイムに覗く / Realtime Debugger for CSharp with Roslyn
prota
1
1.9k
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
250
CodeRabbitの効果検証と過ごしてみた3ヶ月
armondando
0
230
気持ちぃ〜角丸 Squircle
ryu1013
0
290
Androidだけじゃない、DroidKaigiで広がった私の技術スタック
akkeylab
0
130
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
140
Featured
See All Featured
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
430
Site-Speed That Sticks
csswizardry
13
1.6k
Music & Morning Musume
bryan
48
7.4k
What does AI have to do with Human Rights?
axbom
PRO
1
2.4k
Claude Code のすすめ
schroneko
67
230k
Speed Design
sergeychernyshev
33
2.2k
Code Reviewing Like a Champion
maltzj
529
40k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
400
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.7k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
620
Accessibility Awareness
sabderemane
1
250
Transcript
CSS Architecture Sota Yamashita
㿊♴괝㣕 @sota0805 Software Engineer @SIROK, Inc. - NodeSchool Tokyo member
༧ଌ͍͢͠ ࠶ར༻͍͢͠ อक͍͢͠ ֦ு͍͢͠ http://philipwalton.com/articles/css-architecture/ CSS Architecture
HOW?
https://twitter.com/itcss_io
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity มͳͲΛఆٛͨ͠ϑΝΠϧ
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity mixinfunctionͷϑΝΠϧ
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity resetsɾnomalizeϑΝΠϧ
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity elements
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity OOCSSͰ͍͏ͱ͜ΖͷɺStructure
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity OOCSSͰ͍͏ͱ͜ΖͷɺSkin
settings tools . generic base objects components trumps $ tree
Generic Explicit Far-reaching Localized Low-specificity High-specificity ্ॻ͖ϑΝΠϧ
༧ଌ͍͢͠ Predictable
#widgetView header { // } #widgetView body{ // } #widgetView
footer{ // }
࠶ར༻͍͢͠ Reusable
settings tools . trumps generic base objects $ tree Generic
Explicit Far-reaching Localized Low-specificity High-specificity OOCSSͰ͍͏ͱ͜ΖͷɺStructure components OOCSSͰ͍͏ͱ͜ΖͷɺSkin
None
อक͍͢͠ Maintainable
settings tools . trumps generic base objects $ tree Generic
Explicit Far-reaching Localized Low-specificity High-specificity OOCSSͰ͍͏ͱ͜ΖͷɺStructure components OOCSSͰ͍͏ͱ͜ΖͷɺSkin
֦ு͍͢͠ Expandable
settings tools . trumps generic base objects $ tree Generic
Explicit Far-reaching Localized Low-specificity High-specificity OOCSSͰ͍͏ͱ͜ΖͷɺStructure components OOCSSͰ͍͏ͱ͜ΖͷɺSkin มͳͲΛఆٛͨ͠ϑΝΠϧ
Great References
ʰWeb੍࡞ऀͷͨΊͷCSSઃܭͷڭՊ ॻ ϞμϯWeb։ൃʹ͔ܽͤͳ͍ʮमਖ਼ ͍͢͠CSSʯͷઃܭख๏ʱ CSSͦͷͷͱઃܭํ๏͍ͭͯཧղ͢Δ
CSS Reference Discover more about it and what features we've
added to make learning CSS more easy and practical. http://tympanus.net/codrops/css_reference/ ։ൃதͷCSSͷٙΛղܾ͢Δ
CSSΛ؆୯ʹࢼͯ͠ΈΔ JSFiddle ؆୯ʹHTMLɾCSSɾJavascript ΛͨΊ͢͜ͱ͕Ͱ͖·͢ɻ·ͨ jQueryͳͲͷϥΠϒϥϦΛ͑ͨ Γ֎෦ͷϥΠϒϥϦ͏͜ͱ ͕Ͱ͖·͢ɻ http://jsfiddle.net/
ϑϩϯτͷΑΓਂ͍ࣝΛ͚ͭΔ frontend-feeds frontend-feedsͱͱPaul IrishʹΑͬͯ࡞͞ΕͨͷͰͨ ͩfeedlyͷimport͕Ͱ͖ͨͳ ͔ͬͨͷͰͦΕΛमਖ਼ͨ͠ͷ Ͱ͢ɻ https://github.com/sotayamashita/frontend-feeds
Question?