// User the filter property .dark-filter { filter: brightness(0.4) !important; } // If filter does not work you can try .dark-filter { Background-image: rgba(0, 0, 0, 0.4); }