Skip to content

SW14003: Malformed property requirement

An @stillwind-require-properties directive in your stylesheet has invalid syntax.

This error occurs when an @stillwind-require-properties directive in your stylesheet has invalid syntax, such as an incomplete custom property name. The directive lists the registered custom properties that a utility needs.

Reported

.card {
  @stillwind-require-properties tw-rotate-x;
  transform: var(--tw-rotate-x);
}

SW14003: invalid Stillwind property requirement at byte 9660

Fixed

.card {
  @stillwind-require-properties --tw-rotate-x;
  transform: var(--tw-rotate-x);
}

How to fix

Write each name in full, including the leading --, as in the example.

A valid name that no registration provides is reported as SW14005. An invalid directive inside a utility from a plugin is reported as SW14004.