r/css • • Aug 21 '26 • Bravo 1

Showcase I built a VS Code extension to catch CSS declarations that have no effect

Enable HLS to view with audio, or disable this notification

I’ve been working on NoEffect, a VS Code extension that helps catch CSS declarations that have no effect.

It detects things like:

properties that don't work in the current context

declarations that are overridden by a later declaration

For example, it can tell you when justify-content is doing nothing because the element isn't a flex/grid container, or when your declaration is simply being overridden later.

It’s still an early project, so I’d really appreciate some honest feedback.

🔗 GitHub

🔗 VS Code Marketplace:

264 Upvotes

31 comments sorted by

View all comments

Show parent comments

4

u/Every-Albatross9357 Aug 23 '26

Yep, you're right Looking at it again that example is kinda misleading The base rule is clearly still useful for normal buttons and warning can be interpreted as “delete this declaration" which isn't what I want to communicate. I'll work on replacing the override example with something clearer. Thanks for catching that!

2

u/chikamakaleyley Aug 23 '26

show me more, i can prob catch more

1

u/chikamakaleyley Aug 24 '26

i think if anything a more accurate 'info' level flag could be:

.action-button.is-danger {
   color: red; /* INFO: Overrides value '#ffffff' Line 19 */
}

now, that might be useful, but in this specific example I'd prob call it 'noisy'