November 2019
Amsul Naeem
twitter.com/amsul_
slides.com/amsul
<div class="my-class-name">
my content
</div>.my-class-name {
background-color: pink;
}Names are composed using separators.
A search box component
<div>
<input />
<button>Search</button>
</div><div class='SearchBox'>
<input />
<button>Search</button>
</div><div class='SearchBox'>
<input class='SearchBox-Input' />
<button class='SearchBox-Button'>Search</button>
</div><div class='SearchBox'>
<input class='SearchBox-Input SearchBox-Input--warning' />
<button class='SearchBox-Button'>Search</button>
</div>“There are only two hard things in Computer Science: cache invalidation and naming things.”
- Phil Karlton
Create a modal with a:
...and style them using BEM class names.
Starting point: GitHub Link
<button class="mdc-button">
<span class="mdc-button__label">Button</span>
</button>@import "@material/button/mdc-button";Create a Material Design modal with a:
...using the Dialog component.
Starting point: GitHub Link
Create a Material Design modal with a form:
Starting point: GitHub Link
November 2019
Amsul Naeem
twitter.com/amsul_
slides.com/amsul