find_unused_css
Analyze CSS usage to identify unused selectors for performance optimization. Supports URL, local file, and code analysis to reduce bloat and improve website speed.
Instructions
Analyze CSS usage and identify unused selectors for performance optimization. Supports both URL analysis and local file analysis.
WORKFLOW: Perfect for understanding complex code, identifying issues, and technical debt assessment TIP: Use Desktop Commander to read files, then pass content here for analysis SAVES: Claude context for strategic decisions
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analysisDepth | No | Level of analysis detail | detailed |
analysisType | No | Type of CSS analysis to perform | comprehensive |
code | No | CSS code to analyze (for single-code analysis) | |
cssPath | No | Path to CSS file to analyze | |
filePath | No | Path to CSS file to analyze | |
files | No | Specific HTML/CSS file paths to analyze | |
htmlPath | No | Path to HTML file to check CSS usage against | |
ignorePseudoSelectors | No | Ignore pseudo-selectors like :hover, :focus | |
includeMediaQueries | No | Include media query analysis | |
language | No | File language (css, html) | css |
maxDepth | No | Maximum directory depth for file discovery | |
projectPath | No | Path to project directory containing HTML/CSS files | |
url | No | URL to analyze for CSS usage (single page) |