1
0
mirror of https://github.com/yldio/copilot.git synced 2024-12-01 07:30:07 +02:00

adding in colors from finalised style guide

This commit is contained in:
Alex Windett 2017-02-14 14:40:38 +00:00
parent 448208af1b
commit cb796c7886

View File

@ -37,10 +37,9 @@ const StyledP = styled.p`
`;
const convertCase = (val) => {
const result = val.replace( /([A-Z])/g, " $1" );
return val.charAt(0).toUpperCase() + result.slice(1); // capitalize the first
// letter - as an example.
}
const result = val.replace( /([A-Z])/g, ' $1' );
return result.charAt(0).toUpperCase() + result.slice(1);
};
storiesOf('Colors', module)
.add('default', () => {
@ -51,7 +50,11 @@ storiesOf('Colors', module)
`;
return (
<Column xs={6} md={3} key={index}>
<Column
key={index}
md={3}
xs={6}
>
<StyledWrapper>
<StyledSquare />
<StyledP>