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
CSS Architecture
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Sam Yamashita
March 05, 2015
Programming
76
1
Share
CSS Architecture
Sam Yamashita
March 05, 2015
More Decks by Sam Yamashita
See All by Sam Yamashita
AI が自動テストの分野でどのように使われるのか
unbabel
0
150
Thailand
unbabel
1
88
DX に優れた多言語化ドキュメント作成方法
unbabel
0
530
3 Tips for meeting
unbabel
0
280
What is GitHub Marketplace and good for?
unbabel
0
110
OSS 翻訳と GitLocalize
unbabel
0
550
Redux in Production
unbabel
1
310
Introduction to RAIL
unbabel
0
110
Git・Githubに関する隠された便利な機能
unbabel
1
420
Other Decks in Programming
See All in Programming
Rethinking API Platform Filters
vinceamstoutz
0
11k
Radical Imagining - LIFT 2025-2027 Policy Agenda
lift1998
0
260
UIの境界線をデザインする | React Tokyo #15 メイントーク
sasagar
1
270
GNU Makeの使い方 / How to use GNU Make
kaityo256
PRO
16
5.6k
Codex CLIのSubagentsによる並列API実装 / Parallel API Implementation with Codex CLI Subagents
takatty
2
890
Vibe하게 만드는 Flutter GenUI App With ADK , 박제창, BWAI Incheon 2026
itsmedreamwalker
0
550
Offline should be the norm: building local-first apps with CRDTs & Kotlin Multiplatform
renaudmathieu
0
190
iOS機能開発のAI環境と起きた変化
ryunakayama
0
180
「効かない!」依存性注入(DI)を活用したAPI Platformのエラーハンドリング奮闘記
mkmk884
0
320
アーキテクチャモダナイゼーションとは何か
nwiizo
17
4.9k
Java 21/25 Virtual Threads 소개
debop
0
340
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
180
Featured
See All Featured
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
270
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
130
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
160
ラッコキーワード サービス紹介資料
rakko
1
3M
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
The Cult of Friendly URLs
andyhume
79
6.8k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
180
Marketing to machines
jonoalderson
1
5.2k
From π to Pie charts
rasagy
0
160
Building Applications with DynamoDB
mza
96
7k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
260
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?