Skip to main content
Glama

check_css_specificity

Detects CSS specificity anti-patterns like !important, ID selectors, deep nesting, and inline styles that cause styling issues in web components. Supports CSS and HTML analysis.

Instructions

Detects CSS specificity anti-patterns that cause styling issues with web components — catches !important usage, ID selectors targeting components, deeply nested selectors (4+ levels), and inline style attributes. Supports both CSS and HTML mode. Run this on any CSS or HTML to prevent specificity wars.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesThe CSS or HTML code to analyze for specificity issues.
modeNoAnalysis mode — "css" checks stylesheets for !important/ID/nesting issues, "html" checks for inline style attributes on web components. Defaults to "css".

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bookedsolidtech/helixir'

If you have feedback or need assistance with the MCP directory API, please join our Discord server