"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getCardBorderRadius = exports.getCardFontSize = exports.getBoxShadowColor = exports.getCardSpacingRules = void 0;

var _spacing = require("../../../mixins/spacing");

var _branding = require("../../../mixins/branding");

var _typography = require("../../../mixins/typography");

var _color = require("../../../utils/color");

var getCardSpacingRules = function getCardSpacingRules(_ref) {
  var theme = _ref.theme,
      spacing = _ref.spacing;
  return (0, _spacing.getSpacingRules)({
    theme: theme,
    spacing: spacing || 'mb2'
  });
};

exports.getCardSpacingRules = getCardSpacingRules;

var getBoxShadowColor = function getBoxShadowColor(_ref2) {
  var theme = _ref2.theme;
  return (0, _color.fadeColor)((0, _branding.getPaletteColor)('greyscale-black')({
    theme: theme
  }), 0.95);
};

exports.getBoxShadowColor = getBoxShadowColor;

var getCardFontSize = function getCardFontSize(_ref3) {
  var theme = _ref3.theme;
  return (0, _typography.getFontSize)({
    theme: theme,
    fontSize: 'f1'
  });
};

exports.getCardFontSize = getCardFontSize;

var getCardBorderRadius = function getCardBorderRadius(_ref4) {
  var theme = _ref4.theme;
  return theme.cardBorderRadius;
};

exports.getCardBorderRadius = getCardBorderRadius;