vira - v31.18.2
    Preparing search index...

    Variable viraColorVariantToHostClassKeyConst

    viraColorVariantToHostClassKey: {
        brand: "brand";
        danger: "red";
        info: "blue";
        positive: "green";
        special: "purple";
        warning: "yellow";
    } = ...

    Maps themed ViraColorVariant members to the ViraThemeColorName used as their host class suffix on color-aware elements (vira-*-color-${themeColor}). Plain and Neutral are intentionally omitted: they are always special-cased by each element so their host classes stay distinct from any theme color class (including grey).

    Type Declaration

    • Readonlybrand: "brand"
    • Readonlydanger: "red"
    • Readonlyinfo: "blue"
    • Readonlypositive: "green"
    • Readonlyspecial: "purple"
    • Readonlywarning: "yellow"