import type { VarConsumer } from "../createVarFactory.js";

const cssRgba = (variable: VarConsumer<string, "r" | "g" | "b">, alpha: VarConsumer<number, boolean>) =>
    `rgba(${variable("r")}, ${variable("g")}, ${variable("b")}, calc(${alpha()}/100))`;

export { cssRgba };
