var _ = require("lodash");

var plugin = require("tailwindcss/plugin");

module.exports = plugin(function (_ref) {
  var addUtilities = _ref.addUtilities,
      e = _ref.e,
      theme = _ref.theme,
      variants = _ref.variants;
  var textShadow = theme("textShadow", {});

  var utilities = _.fromPairs(_.map(textShadow, function (value, modifier) {
    var className = modifier.toUpperCase() === "DEFAULT" ? "text-shadow" : "".concat(e("text-shadow-".concat(modifier)));
    return [".".concat(className), {
      "text-shadow": value
    }];
  }));

  addUtilities([utilities], variants("textShadow"));
});