import { cnb } from "cnbuilder";
import { cssUtils } from "../cssUtils.js";
import { bem } from "../utils/bem.js";
const styles = bem("rmd-badge");
/**
 * @since 6.0.0
 */ export function badge(options = {}) {
    const { className, theme = "greyscale" } = options;
    const greyscale = theme === "greyscale";
    const clear = theme === "clear";
    return cnb(styles({
        greyscale
    }), cssUtils({
        backgroundColor: !clear && !greyscale ? theme : undefined
    }), className);
}

//# sourceMappingURL=styles.js.map