theme borderRadius

Signed-off-by: Ky <virginie.ky@gmail.com>
This commit is contained in:
Ky 2020-04-07 19:35:19 +02:00
parent 3a5f44bb02
commit 1de70d9292

View File

@ -11,7 +11,7 @@ const CardBorder = styled.div`
display: none;
${({ shown }) => shown && 'display: block;'}
border: 2px solid ${({ theme, color }) => theme.main.colors[color] || color};
border-radius: 2px;
border-radius: ${({ theme }) => theme.main.sizes.borderRadius};
`;
CardBorder.defaultProps = {