Skip to content

Commit

Permalink
Themed Storybook for core too
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Mar 23, 2024
1 parent 807ada1 commit 74778dc
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 5 deletions.
21 changes: 21 additions & 0 deletions packages/volto/.storybook/Logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions packages/volto/.storybook/manager.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { addons } from '@storybook/manager-api';
import theme from './theme';

addons.setConfig({
theme,
});
10 changes: 10 additions & 0 deletions packages/volto/.storybook/theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { create } from '@storybook/theming/create';
import logo from './Logo.svg';

export default create({
base: 'light',
brandTitle: '@plone/volto StoryBook',
brandUrl: 'https://docs.plone.org/storybook/',
brandImage: logo,
brandTarget: '_self',
});
1 change: 1 addition & 0 deletions packages/volto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/react": "^8.0.4",
"@storybook/react-webpack5": "^8.0.4",
"@storybook/theming": "^8.0.4",
"@testing-library/cypress": "10.0.1",
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.0",
Expand Down
13 changes: 8 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 74778dc

Please sign in to comment.