DEV Community

Discussion on: Using !important in CSS

Collapse
 
xowap profile image
Rémy 🤖

Look I'm not saying that !important is a dangerous anti-pattern, but in 10 years developing websites as my main revenue source the only times I've had to use it is when someone else used it before (by example in a WordPress theme, if I had to pick at random).

I get the point of your article about utility classes being all alone and depraved of specificity thus needing a bit of help from !important but that is so edge case, it should definitely be a last resort after you've exhausted your other last resort options.