Skip to content

Commit 9942792

Browse files
committed
feat: customize the light and dark mode for storybook
1 parent 4248993 commit 9942792

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.storybook/preview.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@ const preview: Preview = {
1212
date: /Date$/i,
1313
},
1414
},
15+
backgrounds: {
16+
values: [
17+
{
18+
name: 'Light',
19+
value: 'var(--N0)',
20+
},
21+
{
22+
name: 'Dark',
23+
value: 'var(--N700)',
24+
},
25+
],
26+
default: 'Light',
27+
},
1528
},
1629
tags: ['autodocs'],
1730
decorators: (Story) => (

0 commit comments

Comments
 (0)