1
1
mirror of https://github.com/c8r/x0.git synced 2024-09-17 16:47:19 +03:00
x0/docs/_scope.js
2018-05-26 09:56:45 -04:00

47 lines
753 B
JavaScript

import React from 'react'
import styled from 'styled-components'
import * as Rebass from 'rebass'
import { heading, link } from '@compositor/md'
const Pre = styled(Rebass.Pre)({
borderRadius: '8px'
})
export default {
...Rebass,
h1: heading(props =>
<Rebass.Heading
{...props}
is='h1'
fontSize={6}
mt={3}
/>),
h2: heading(props =>
<Rebass.Heading
{...props}
is='h2'
fontSize={5}
mt={3}
mb={2}
/>),
h3: heading(props =>
<Rebass.Heading
{...props}
is='h3'
fontSize={4}
mt={2}
/>),
a: link(props =>
<Rebass.Link
{...props}
/>
),
pre: props =>
<Pre
{...props}
p={3}
mb={3}
bg='#f6f6fc'
/>
}