Skip to content
CSS·Intermediate·Conceptual·1 min read

When is !important appropriate?

Short interview answer

It reverses relevant cascade precedence and is costly to override, so it should not be the routine solution to architecture problems. Controlled utility overrides, user-important accessibility styles, or unavoidable third-party boundaries can justify it with documented scope.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Cascade, specificity, and layers

Related questions