mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-31 05:03:21 +08:00
theming changes added
This commit is contained in:
parent
19b9eb567b
commit
4b0346ba6b
Binary file not shown.
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 45 KiB |
Binary file not shown.
Before Width: | Height: | Size: 101 KiB After Width: | Height: | Size: 42 KiB |
@ -12,9 +12,17 @@ Storybook includes two themes that look good out of the box: "light" and "dark".
|
||||
|
||||
Make sure you have installed [`@storybook/addons`](https://www.npmjs.com/package/@storybook/addons) and [`@storybook/theming`](https://www.npmjs.com/package/@storybook/theming) packages.
|
||||
|
||||
```sh
|
||||
yarn add --dev @storybook/addons @storybook/theming
|
||||
```
|
||||
<!-- prettier-ignore-start -->
|
||||
|
||||
<CodeSnippets
|
||||
paths={[
|
||||
'common/storybook-theming-packages-install.yarn.js.mdx',
|
||||
'common/storybook-theming-packages-install.npm.js.mdx',
|
||||
'common/storybook-theming-packages-install.pnpm.js.mdx',
|
||||
]}
|
||||
/>
|
||||
|
||||
<!-- prettier-ignore-end -->
|
||||
|
||||
As an example, you can tell Storybook to use the "dark" theme by modifying [`.storybook/manager.js`](./overview.md#configure-story-rendering):
|
||||
|
||||
|
@ -0,0 +1,3 @@
|
||||
```shell
|
||||
npm install --save-dev @storybook/addons @storybook/theming
|
||||
```
|
@ -0,0 +1,3 @@
|
||||
```shell
|
||||
pnpm add --save-dev @storybook/addons @storybook/theming
|
||||
```
|
@ -0,0 +1,3 @@
|
||||
```shell
|
||||
yarn add --dev @storybook/addons @storybook/theming
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user