When you have big project with many files and dependencies, usually you should care about good code base and periodic cleaning / refactoring. The same situation I had when decided to refactor SCSS files- structure, naming and variables…
I was surprised when figured out- there aren’t good instruments to find unused SCSS variables.
The ways they appear is usual:
- somebody removed use of variable but forgot to delete declaration
- it was used for declaration of another variable or inside some expression
- someone added it "for future" or decided to use variable later