Skip to content

Instantly share code, notes, and snippets.

@whoisryosuke
Forked from vernondegoede/config.js
Created October 2, 2019 22:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whoisryosuke/9fb77885131788ea6356a43dff47ebaf to your computer and use it in GitHub Desktop.
Save whoisryosuke/9fb77885131788ea6356a43dff47ebaf to your computer and use it in GitHub Desktop.
// File: .storybook/config.js
import { configure, addDecorator } from '@kadira/storybook';
import Theme from './../src/ui/theme';
import React from 'react';
import { ThemeProvider } from 'styled-components'
function loadStories() {
require('../stories');
}
addDecorator((story) => (
<ThemeProvider theme={Theme}>
{story()}
</ThemeProvider>
))
configure(loadStories, module);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment