A reference implementation of Standard Components
npm i standard-components
import React from 'react'
import {
Box,
Flex,
Text,
Heading,
Image,
BackgroundImage,
Button,
Link
} from 'standard-components'
const App = props => (
<Box>
<BackgroundImage
px={3}
py={4}
backgroundImage='hero.jpg'>
<Heading is='h1'>Hello Standard</Heading>
<Button>
Beep
</Button>
</BackgroundImage>
<Flex
px={3}
py={4}
flexWrap={[ 'wrap', 'nowrap' ]}
alignItems='center'>
<Box width={[ 1, 128 ]}>
<Image src='kitten.png' />
</Box>
<Box width={1}>
<Heading>Meow</Heading>
<Text>
Look at <Link href='/cat'>this cat</Link>
</Text>
</Box>
</Flex>
</Box>
)