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のクラス名は 機能じゃなくて 役割でつけたい話
Search
takanorip
December 19, 2017
Technology
380
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
CSSのクラス名は 機能じゃなくて 役割でつけたい話
takanorip
December 19, 2017
More Decks by takanorip
See All by takanorip
AI-Slopなデザインを生まないためのデザインプロセス戦略
takanorip
7
5.4k
「見せる」登壇資料デザインの極意
takanorip
7
1.4k
Design System Documentation Tooling 2025
takanorip
3
2.9k
デザインエンジニアの延長にデザインマネージャーとしての可能性を探る
takanorip
1
1.3k
Tools for Design Engineers other than LLM in the LLM era
takanorip
1
830
Bulletproof Design System with TypeScript
takanorip
7
5.3k
Eleventy3.0 で始める爆速個人ブログ開発!
takanorip
0
310
Webフォント選定の極意!フォントの基本から最新トレンドまで徹底解説
takanorip
6
1.1k
効果的な管理画面を デザインをするために 避けるべき5つの罠
takanorip
15
7.9k
Other Decks in Technology
See All in Technology
Master Dataグループ紹介資料
sansan33
PRO
1
4.8k
Kiro入門|仕様駆動開発で変わるAI時代の開発スタイル
cmkudo
0
130
ソフトウェアサプライチェーンの構造的リスクとコンテナ環境の保護
kyohmizu
4
700
なぜ Temporal の大小比較には compare しかないのか / Why Does Temporal Only Have compare() for Comparisons
kazukihayase
1
160
【AG-UI × A2UI × MCP Apps】Generative UIをやさしく解説する
nrinetcom
PRO
1
140
MulticaとPi Coding Agentで、小規模OSSを30本同時運用した流れ
eiei114
0
130
Genie Codeハンズオン応用編
taka_aki
0
130
QAエンジニア起点で進める、SmartHRにおける信頼性向上について
kaomi_wombat
1
150
その“隠したつもり”が命取り ── 自前と平文をやめて「正解」に委ねる
kuroneko13
0
130
도구에서 동료까지: 10년차 AI 스타트업의 AI 적응기
inureyes
PRO
0
240
Adding Right-to-Left support to your web application with CSS logical properties — Lessons from Redmine
vividtone
0
140
ブラウザ研修 2026
recruitengineers
PRO
7
1.2k
Featured
See All Featured
Game over? The fight for quality and originality in the time of robots
wayneb77
1
250
AI: The stuff that nobody shows you
jnunemaker
PRO
9
930
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
170
The browser strikes back
jonoalderson
0
1.5k
Become a Pro
speakerdeck
PRO
31
6.2k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
420
Producing Creativity
orderedlist
PRO
348
40k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.3k
KATA
mclloyd
PRO
35
15k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.9k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.8k
Transcript
$44ͷΫϥε໊ ػೳ͡Όͳͯ͘ ׂͰ͚͍ͭͨ 5BLBOPSJ0LJ ΄ΖΑ͍ͯͬ͘ʢҎԼུʣ
ࣗݾհ w େଚلʢΦΦΩλΧϊϦ!UBLBOPSJQʣ w גࣜձࣾεϚʔτυϥΠϒ w ϑϩϯτΤϯυΤϯδχΞ w 3FBDUɺ7VFɺ8PSE1SFTTɺΣϒ੍࡞શൠ w
গྛࣉݓ๏ࡾஈʢϒϥϯΫʣ
None
5-%3 w Ϋϥε໊ͱελΠϧΛҰॹʹͨ͘͠ͳ͍ w Ϋϥε໊ͳΔ͘ݻ༗ͷ໊લΛ͚͍ͭͨ w ελΠϧͷڞ௨Խ4BTTͳͲͷNJYJOͳͲΛͬ ͯߦ͏ w ͦͷཁૉ͕ϖʔδͷதͰͲΜͳׂΛ͍࣋ͬͯ
Δͷ͔ʁΛߟ໊͑ͯલ͚͍ͭͨ
Α͋͘Δ໋໊ͷํ
<section class="section"> <h1 class=“section_title">about</h1> <p class=“section_text is-white“>hogehoge</p> </section> <section class="section">
<h1 class="section_title">works</h1> <p class="section_text">hogegegege</p> </section>
͖͡Όͳ͍ͱ͜Ζ w ҧ͏ׂΛ͍࣋ͬͯΔཁૉ͕ಉ໊͡લʹ ͳͬͯ͠·͏ͷ͕ؾ࣋ͪѱ͍ w ϑΥʔϜͷϘλϯͱηΫγϣϯதͷϘλϯɺ ݟͨಉ͚ͩ͡Ͳɺׂҧ͏ΑͶʁ w Ϋϥε໊ͰελΠϧཧͯ͠ΔͱɺελΠϧΛ ͪΐͬͱม͍͑ͨͳʔͬͯͱ͖ɺ৽͘͠Ϋϥ
ε͚ͭͳ͍ͱ͍͚ͳ͍
<button class="button-blue button-small button-left button- bottom"> BUTTON </button>
վળҊ
<section class="about"> <h1 class="about_title">about</h1> <p class="works_text">hogehoge</p> </section> <section class="works"> <h1
class="works_title">works</h1> <p class="works_text">hogegegege</p> </section>
$section() { margin-bottom: 36px; } $title() { font-size: 24px; }
$text() { font-size: 14px; }
.about { $section(); } .about_title { $title(); } .about_text {
$text(); } .works { $section(); } .works_title { $title(); color: #f00; } .works_text { $text(); }
ܽ w େنϓϩδΣΫτʹ͔ͳ͍ w ෳਓͰ։ൃ͢Δ࣌ɺΫϥε໊͔ΒελΠϧ ͕૾Ͱ͖ͳ͍ͱΊΜͲͯ͘͘͞ࢮ͵ w NJYJOΛ࠷ॳʹ࡞͓͚ͬͯେৎ͔ w NJYJOͷཧ͕ΊΜͲ͍͘͞
w ෳਓͰNJYJO࡞Γ·͘Δͱࢮ͵
ྑ͍͓Λʂ