import React from 'react'
import PropTypes from 'prop-types'
import { storiesOf } from '@storybook/react'
import { ThemeProvider, withTheme } from 'styled-components'
import { Box, Card, Flex } from 'rebass'
import { BackgroundPrimary, Text } from 'components/UI'
import { dark, light } from 'themes'
import { Column, Group, Element } from './helpers'
const Swatch = ({ name, color }) => (
{name}
{color}
)
Swatch.propTypes = {
name: PropTypes.string,
color: PropTypes.string
}
const Palette = withTheme(({ theme, ...rest }) => (
{Object.keys(theme.colors).map(key => (
))}
))
storiesOf('Welcome', module).addWithChapters('Color palette', {
subtitle: 'Colors that we use throughout the app.',
info: `This page shows our two primary colour palettes. These are used as "themes" that users can switch between
within the app.`,
chapters: [
{
sections: [
{
options: {
showSource: false,
allowSourceToggling: false,
showPropTables: false,
allowPropTablesToggling: false
},
sectionFn: () => (
)
}
]
}
]
})