© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Alma Sokolowski
Web Designer · CSS · UX
Have you come across !important soup in any of the code bases you ever looked at? Do you have guidelines on when and when not to use it? "!important everything" meme cracks me up :D
Harry Roberts
Consultant Front-end Architect
Allllll the time!
!important: 3 seconds to type, 3 years to remove.
!important
Use important proactively: apply it to Utility classes, e.g.:
.u-text-center { text-align: center !important; }
We’d literally never want this class to do anything other than text-align: center; so we force it to always win by using !important.
text-align: center;
Never use !important in anger. Don’t use it to get out of specificity wars. Instead, hack the specificity of your existing selectors around[1].
I’ve written and spoken quite a lot about !important, actually[2][3].