Skip to content

Commit

Permalink
Add documentation for changing base font-size
Browse files Browse the repository at this point in the history
This may be intuitive enough to some, but it took me a minute to figure out so I think it'd be nice to have here.
  • Loading branch information
smithambera committed Jan 23, 2020
1 parent 4c6531d commit 6fdda8c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/src/pages/configurations/add-custom-body/index.md
Expand Up @@ -11,6 +11,16 @@ You can accomplish this by creating a file called `preview-body.html` inside the
<div id="custom-root"></div>
```

If using relative sizing in your project (like `rems` or `ems`), you may update the base `font-size` by adding a `style` tag to `preview-body.html`:

```html
<style>
body {
font-size: 15px;
}
</style>
```

That's it. Storybook will inject these tags to html body.

> **Important**
Expand Down

0 comments on commit 6fdda8c

Please sign in to comment.