Skip to content

Instantly share code, notes, and snippets.

@JonathanZWhite
Last active April 26, 2017 19:03
Show Gist options
  • Save JonathanZWhite/c22a460f27818b9bdb2551348cfabc4d to your computer and use it in GitHub Desktop.
Save JonathanZWhite/c22a460f27818b9bdb2551348cfabc4d to your computer and use it in GitHub Desktop.
import React, { PropTypes } from 'react';
import { StyleSheet, css } from 'aphrodite/no-important';
import { spacing } from '../../styles/base/spacing';
function Card(props) {
return (
<div className={css(styles.card)}>
{props.children}
</div>
);
}
export default Card;
export const styles = StyleSheet.create({
card: {
padding: spacing.space4}, // using spacing constants as padding
background: 'rgba(255, 255, 255, 1.0)',
boxShadow: '0 3px 17px 2px rgba(0, 0, 0, .05)',
borderRadius: '3px',
},
});
@LeoVS09
Copy link

LeoVS09 commented Apr 26, 2017

You have exces brace in 17 line
padding: spacing.space4},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment