Card.js 884 B

12345678910111213141516171819202122232425262728293031323334353637
  1. // @flow
  2. import variable from './../variables/platform';
  3. export default (variables /* : * */ = variable) => {
  4. const cardTheme = {
  5. '.transparent': {
  6. shadowColor: null,
  7. shadowOffset: null,
  8. shadowOpacity: null,
  9. shadowRadius: null,
  10. elevation: null,
  11. backgroundColor: 'transparent',
  12. borderWidth: 0
  13. },
  14. '.noShadow': {
  15. shadowColor: null,
  16. shadowOffset: null,
  17. shadowOpacity: null,
  18. elevation: null
  19. },
  20. marginVertical: 5,
  21. marginHorizontal: 2,
  22. borderWidth: variables.borderWidth,
  23. borderRadius: variables.cardBorderRadius,
  24. borderColor: variables.cardBorderColor,
  25. flexWrap: 'nowrap',
  26. backgroundColor: variables.cardDefaultBg,
  27. shadowColor: '#000',
  28. shadowOffset: { width: 0, height: 2 },
  29. shadowOpacity: 0.1,
  30. shadowRadius: 1.5,
  31. elevation: 3
  32. };
  33. return cardTheme;
  34. };