diff --git a/projects/material-css-vars/src/lib/material-css-vars.service.ts b/projects/material-css-vars/src/lib/material-css-vars.service.ts index e7ac5b0..6c1d03e 100644 --- a/projects/material-css-vars/src/lib/material-css-vars.service.ts +++ b/projects/material-css-vars/src/lib/material-css-vars.service.ts @@ -156,7 +156,7 @@ export class MaterialCssVarsService { } return { val: this._getCssVarValue(color), - name: `${palettePrefix + MaterialCssVarsService.CONTRAST_PREFIX}${hue}`, + name: `${palettePrefix + MaterialCssVarsService.CONTRAST_PREFIX}${hue}-rgb`, }; }); this._setStyle(updates);