Skip to main content
Glama

check_css_scope

Detects CSS custom properties placed on :root, html, body, or * selectors instead of the component host element, preventing scoping issues in shadow DOM.

Instructions

Detects when component-scoped CSS custom properties are set at the wrong scope. Catches component tokens placed on :root, html, body, or * selectors instead of on the component host element. Component tokens only take effect when set on the host — setting them on :root has no effect through shadow DOM.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssTextYesThe CSS code to check for scope mismatches.
tagNameYesThe web component tag name (e.g. "sl-button").

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