Skip to content

SW14005: Required property is unregistered

A utility requires a custom property that no @stillwind-property registers.

This error occurs when a utility requires a custom property, but no @stillwind-property in the loaded stylesheets registers it. The registration provides the initial value and other support CSS. Assigning the property in a rule does not register it.

Reported

@utility spin-x {
  @stillwind-require-properties --spin-angle;
  rotate: var(--spin-angle);
}
style("spin-x");

SW14005: required custom property `--spin-angle` has no `@stillwind-property` registration

Fixed

@stillwind-property --spin-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@utility spin-x {
  @stillwind-require-properties --spin-angle;
  rotate: var(--spin-angle);
}
style("spin-x");

How to fix

  • Register the property with @stillwind-property, as in the example.
  • If the property comes from Stillwind or a plugin, check that the stylesheet imports the file that registers it, and check the spelling of the name.