Skip to content

Commit

Permalink
update theme docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen authored and shilman committed Nov 30, 2019
1 parent bdf6de4 commit e6b8138
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/pages/configurations/theming/index.md
Expand Up @@ -9,12 +9,12 @@ Storybook is theme-able! Just set a `theme` in the [options parameter](../option

It's really easy to theme Storybook globally.

We've created two basic themes that look good of the box: "normal" (a light theme) and "dark" (a dark theme).
We've created two basic themes that look good out of the box: "normal" (a light theme) and "dark" (a dark theme). Unless you've set your preferred color scheme as dark Storybook will use the light theme as default.

As the simplest example, you can tell Storybook to use the "dark" theme by modifying `.storybook/config.js`:

```js
import { configure, addParameters } from '@storybook/react'
import { configure, addParameters } from '@storybook/react';
import { themes } from '@storybook/theming';

// Option defaults.
Expand All @@ -26,6 +26,7 @@ addParameters({

// configure(...)
```

> `addParameters` needs to be called before `configure()` method or it won't have any effect.
When setting a theme, set a full theme object. The theme is replaced, not combined.
Expand Down

1 comment on commit e6b8138

@vercel
Copy link

@vercel vercel bot commented on e6b8138 Nov 30, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

ENOENT: no such file or directory, stat '/tmp/Csu1H2Gu37A1B05AACg543Yj/repo/examples/official-storybook/built-storybooks/cra-kitchen-sink'

Please sign in to comment.