Skip to main content
Glama

check_css_shorthand

Detects risky CSS shorthand and var() combinations that cause silent failure when var() is undefined. Suggests decomposing into longhand properties.

Instructions

Detects risky CSS shorthand + var() combinations that can fail silently. When var() is mixed with literal values in shorthand properties (border, background, font, margin, etc.), if any var() is undefined the ENTIRE declaration fails — not just the dynamic part. Suggests decomposing into longhand properties.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cssTextYesThe CSS code to check for risky shorthand + var() patterns.

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