Skip to content

Instantly share code, notes, and snippets.

@iamalvisng
Forked from vernondegoede/config.js
Created April 8, 2018 10:24
Show Gist options
  • Save iamalvisng/990b1f121de49808b67ca4c5fd783280 to your computer and use it in GitHub Desktop.
Save iamalvisng/990b1f121de49808b67ca4c5fd783280 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