Existence file

css-property-type-validator

A validator for typed CSS custom properties and @property registrations. It exists because invalid registrations and incompatible var() usage can silently change rendered output, especially in token-heavy systems.

Goal

Make typed custom properties easier to adopt by catching invalid @property descriptors, incompatible assignments, and risky var() usage through a shared validation core that can power a CLI, Stylelint plugin, editor tooling, and a browser UI.

  • TypeScript
  • CSS
  • Tooling

Now

Where it is

The core validates registrations, direct assignments, multiple registered var() usages, simple fallback branches, imported registries, and a first beta Stylelint plugin.

Next

What comes next

  • Improve support for whitespace and fallback-toggle custom property patterns.
  • Add clearer remediation context to diagnostics.
  • Harden Stylelint beta behavior through real-project feedback and config-file based registry discovery.