Skip to main content
Glama

check_shadow_dom_usage

Scan CSS code for Shadow DOM anti-patterns including descendant selectors piercing boundaries, ::slotted() misuse, invalid ::part() chaining, !important on tokens, unknown part names, and typo detection to catch mistakes before production.

Instructions

Scans consumer CSS code for Shadow DOM anti-patterns — descendant selectors piercing shadow boundaries, ::slotted() misuse, invalid ::part() chaining, !important on tokens, unknown part names, and typo detection. Run this on any CSS targeting web components to catch mistakes before they reach production.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
libraryIdNoOptional library ID to target a specific loaded library instead of the default.
cssTextYesThe CSS code to scan for Shadow DOM anti-patterns.
tagNameNoOptional tag name to scope checks. When provided, enables CEM-based validation (unknown parts, typo detection).

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