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 84143d2
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="dark:bg-gray-900 px-6 py-4"><story /></div>'
})
]
}
Expand Down

0 comments on commit 84143d2

Please sign in to comment.