var l = Object.defineProperty;
var r = (t, e, i) => e in t ? l(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i;
var a = (t, e, i) => (r(t, typeof e != "symbol" ? e + "" : e, i), i);
class s {
  // We use lambda functions to preserve the context of this when we destructure
  // the theme helper object
  constructor(e) {
    a(this, "color", (e) => this.getTailwindThemeValue(`colors.${e}`));
    /**
     * Translates from unit spaces to actual measurements.
     */
    a(this, "spacing", (...e) => e.map((i) => this.getTailwindThemeValue(`spacing.[${i}]`)).join(" "));
    /**
     * This is a generic typesafe getter. Use `color()` and `space()` if those
     * functions are applicable because they offer stricter type safety.
     */
    a(this, "get", (e) => this.getTailwindThemeValue(e));
    this.getTailwindThemeValue = e;
  }
}
export {
  s as ThemeHelper
};
