Card.js 664 B

12345678910111213141516171819202122232425262728
  1. import variable from "./../variables/platform";
  2. export default (variables = variable) => {
  3. const cardTheme = {
  4. ".transparent": {
  5. shadowColor: null,
  6. shadowOffset: null,
  7. shadowOpacity: null,
  8. shadowRadius: null,
  9. elevation: null
  10. },
  11. marginVertical: 5,
  12. marginHorizontal: 2,
  13. flex: 1,
  14. borderWidth: variables.borderWidth,
  15. borderRadius: 2,
  16. borderColor: variables.cardBorderColor,
  17. flexWrap: "wrap",
  18. backgroundColor: variables.cardDefaultBg,
  19. shadowColor: "#000",
  20. shadowOffset: { width: 0, height: 2 },
  21. shadowOpacity: 0.1,
  22. shadowRadius: 1.5,
  23. elevation: 3
  24. };
  25. return cardTheme;
  26. };