In angular, even after !important if css is not working use below trick. ::ng-deep{ .text-color-black{ color:black!important } }