theming changes added

This commit is contained in:
jonniebigodes 2023-01-19 17:46:26 +00:00
parent 19b9eb567b
commit 4b0346ba6b
6 changed files with 20 additions and 3 deletions

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

View File

@ -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):

View File

@ -0,0 +1,3 @@
```shell
npm install --save-dev @storybook/addons @storybook/theming
```

View File

@ -0,0 +1,3 @@
```shell
pnpm add --save-dev @storybook/addons @storybook/theming
```

View File

@ -0,0 +1,3 @@
```shell
yarn add --dev @storybook/addons @storybook/theming
```