'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _cssvars = require('../theme/cssvars');

/**
 * @deprecated Provided only to support the legacy theme system.
 * Converts a JSON key (spacing.medium) into a cssvar (var(--spacing-medium)).
 */
var themeGet = function themeGet(k) {
  return function (props) {
    return 'var(' + (0, _cssvars.cssvarKey)(k) + ')';
  };
};

exports.default = themeGet;