Main
Lorem ipsum dolor sit amet
.shopping-card { /* TWO Words! */
> .title { /* ... */ }
> .title.-small { /* ... */ }
}
## Probrems with CSS at scale
- Global Namespace
- Dependencies
- Dead Code Elimination
- ...and more.
# CSS in JS
[React: CSS in JS](https://speakerdeck.com/vjeux/react-css-in-js)
CSS
JS
### Example: React Style ```js var HelloWorld = React.createClass({ render() { var styles = ReactStyle` color: red; background-color: white; `; return/* components/submit-button.js */
import styles from './submit-button.css';
buttonElem.outerHTML = `<button class=${styles.normal}>Submit</button>`
### CSS Modules
```html
```
# Shadow DOM
Web Components
# Don’t overdo it.
無理しない
## CSS Frameworks
## Bootstrap
[getbootstrap.com](http://getbootstrap.com/)

[Dreamweaver CC 2015](https://blogs.adobe.com/creativestation/dreamweaver-cc-2015-responsive-design-improvement-with-bootstrap)
## Bootstrap Studio
[bootstrapstudio.io](https://bootstrapstudio.io/)
## Foundation
[foundation.zurb.com](http://foundation.zurb.com/)
## Material Design Lite
[getmdl.io](http://www.getmdl.io/)
## Lightning Design System
[lightningdesignsystem.com](https://www.lightningdesignsystem.com/)
## Layout
## Flexbox
[CSS Flexible Box Layout Module Level 1](http://www.w3.org/TR/css-flexbox-1/)
### Flexbox
.global-nav {
display: flex;
justify-content: space-between;
width: 768px;
}
.global-nav > li {
width: 174px;
}
### Flexbox Sample
.profile-card {
display:flex;
}
.profile-card .image {
flex: 0 0 auto;
border-radius: 50%;
margin-right: 10px;
width: 80px;
height: 80px;
}
.profile-card .body {
flex: 1 0 auto;
align-self: center;
}
## Grid
[CSS Grid Layout Module Level 1](http://www.w3.org/TR/css-grid-1/)
### Grid Sample
Header
Main
Lorem ipsum dolor sit amet
.container {
display: grid;
grid-template-columns: repeat(2, 100px);
grid-template-areas:
"header header"
"sidebar content"
"footer footer";
}
.header { grid-area: header; }
.sidebar { grid-area: sidebar; }
.footer { grid-area: footer; }
.content { grid-area: content; }
## SVG
## Icon Font vs SVG
```html
```
Icon by Font Awesome
```
.fa-heart:before {
content: "\f004"; /* PUA */
}
```
2010
2016