Skip to content

Commit

Permalink
feat(ui/storybook-host): add custom background colors
Browse files Browse the repository at this point in the history
  • Loading branch information
MFarabi619 committed Sep 14, 2024
1 parent f6c7230 commit 30b746f
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions libs/storybook-host/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,29 @@ const preview: Preview = {
...customViewports,
},
},
// https://storybook.js.org/docs/essentials/backgrounds
backgrounds: {
// disable: true,
// default: 'twitter',
values: [
{
name: 'twitter',
value: '#00aced',
},
{
name: 'facebook',
value: '#3b5998',
},
],
grid: {
// disable: true,
// cellSize: 20,
// opacity: 0.5,
// cellAmount: 5,
// offsetX: 16, // Default is 0 if story has 'fullscreen' layout, 16 if layout is 'padded'
// offsetY: 16, // Default is 0 if story has 'fullscreen' layout, 16 if layout is 'padded'
},
},
},
}

Expand Down

0 comments on commit 30b746f

Please sign in to comment.