Skip to content

Commit

Permalink
feat: added background decorator if dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Tbaile committed Jan 3, 2024
1 parent 439f842 commit cd81f78
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const preview: Preview = {
dark: 'dark'
},
defaultTheme: 'light'
}),
(story) => ({
components: { story },
template: '<div class="bg-gray-50 p-10 dark:bg-gray-900"><story /></div>'
})
]
}
Expand Down

0 comments on commit cd81f78

Please sign in to comment.