import o from "./baseTheme.js";
import i from "./preflight.js";
import a from "./rules.js";
import f from "./variants.js";
function d({ colors: r, disablePreflight: e } = {}) {
  return {
    // allow other preflight to run
    preflight: e ? void 0 : i,
    theme: {
      ...o,
      colors: {
        inherit: "inherit",
        current: "currentColor",
        transparent: "transparent",
        black: "#000",
        white: "#fff",
        ...r
      }
    },
    variants: f,
    rules: a,
    finalize(t) {
      return (
        // automatically add `content: ''` to before and after so you don’t have to specify it unless you want a different value
        // ignore global, preflight, and auto added rules
        t.n && // only if there are declarations
        t.d && // and it has a ::before or ::after selector
        t.r.some((n) => /^&::(before|after)$/.test(n)) && // there is no content property yet
        !/(^|;)content:/.test(t.d) ? {
          ...t,
          d: "content:var(--tw-content);" + t.d
        } : t
      );
    }
  };
}
export {
  d as default
};
//# sourceMappingURL=base.js.map
