1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-10 21:30:06 +02:00

adding in new base elements

This commit is contained in:
Alex Windett 2017-02-01 14:14:12 +00:00
parent 06a93881c0
commit 9291fed0d7
2 changed files with 40 additions and 3 deletions

View File

@ -30,9 +30,28 @@ const elements = [
{
name: 'H2',
properties: {
'line-height': '60px',
'font-size': '40px'
'font-size': remcalc(24),
}
},
{
name: 'H3',
properties: {
'font-size': remcalc(16),
}
},
{
name: 'P',
properties: {
'line-height': remcalc(24),
'font-size': remcalc(16),
}
},
{
name: 'Small',
properties: {
'line-height': remcalc(18),
'font-size': remcalc(14),
},
}
];

View File

@ -9,7 +9,10 @@ const BaseElements = require('./');
const {
H1,
H2
H2,
H3,
P,
Small,
} = BaseElements;
storiesOf('Base Elements', module)
@ -23,4 +26,19 @@ storiesOf('Base Elements', module)
<H2>This is a H2</H2>
</Base>
))
.add('H3', () => (
<Base>
<H3>This is a H3</H3>
</Base>
))
.add('P', () => (
<Base>
<P>This is a P</P>
</Base>
))
.add('Small', () => (
<Base>
<Small>This is a Small</Small>
</Base>
))
;