Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #14 from teezzan/add-themeprovider-to-storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
nickytonline authored Oct 24, 2021
2 parents 1f03ff8 + 0521c3a commit 99d2c98
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
import React from 'react';
import { ThemeProvider } from '@theme-ui/theme-provider';
import { defaultTheme } from '../themes/defaultTheme';

export const decorators = [
(Story) => (
<ThemeProvider theme={defaultTheme}>
<Story />
</ThemeProvider>
),
];

export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
Expand Down

0 comments on commit 99d2c98

Please sign in to comment.