import style from "./style.js";
import compose from "./compose.js";
function paletteTransform(value, userValue) {
  if (userValue === "grey") {
    return userValue;
  }
  return value;
}
const color = style({
  prop: "color",
  themeKey: "palette",
  transform: paletteTransform
});
const bgcolor = style({
  prop: "bgcolor",
  cssProperty: "backgroundColor",
  themeKey: "palette",
  transform: paletteTransform
});
const backgroundColor = style({
  prop: "backgroundColor",
  themeKey: "palette",
  transform: paletteTransform
});
compose(color, bgcolor, backgroundColor);
export {
  backgroundColor,
  bgcolor,
  color,
  paletteTransform
};
