@@ -58,11 +58,13 @@ That means pages never load unnecessary code!
...
@@ -58,11 +58,13 @@ That means pages never load unnecessary code!
### CSS
### CSS
We use [glamor](https://github.com/threepointone/glamor) to provide a great built-in solution for CSS isolation and modularization without trading off any CSS features
We use [glamor](https://github.com/threepointone/glamor) to provide a great built-in solution for CSS isolation and modularization without trading off any CSS features.
Glamor's [HowTo](https://github.com/threepointone/glamor/blob/master/docs/howto.md) shows converting various CSS use cases to Glamor. See Glamor's [API docs](https://github.com/threepointone/glamor/blob/master/docs/api.md) for more details.
```jsx
```jsx
importReactfrom'react'
importReactfrom'react'
importcssfrom'next/css'
importcss,{insertRule}from'next/css'
exportdefault()=>(
exportdefault()=>(
<divclassName={style}>
<divclassName={style}>
...
@@ -70,6 +72,9 @@ export default () => (
...
@@ -70,6 +72,9 @@ export default () => (
</div>
</div>
)
)
// Global CSS rule
insertRule("html, body { margin: 0; padding: 0; }")