Skip to content

Commit

Permalink
feat(app-general): add initial styled-system and storybook integration
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Jan 15, 2021
1 parent 788a6bf commit 56d6f5b
Show file tree
Hide file tree
Showing 31 changed files with 6,037 additions and 302 deletions.
11 changes: 11 additions & 0 deletions packages/game-app/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
"stories": [
"../src/**/*.stories.mdx",
"../src/**/*.stories.@(js|jsx|ts|tsx)"
],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
"@storybook/preset-create-react-app"
]
}
2 changes: 2 additions & 0 deletions packages/game-app/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;1,700&family=Montserrat:wght@400;600;800&display=swap" rel="stylesheet">
17 changes: 17 additions & 0 deletions packages/game-app/.storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import React from "react";
import { ThemeProvider } from 'styled-components';
import theme from '../src/theme'

export const parameters = {
actions: {argTypesRegex: "^on[A-Z].*"},
layout: 'centered',
}


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

0 comments on commit 56d6f5b

Please sign in to comment.