Skip to content

invalid-css-directive

Reports a malformed or unsupported Stillwind directive in your stylesheet.

This rule reports a Stillwind directive in your stylesheet that the compiler cannot read, such as @stillwind-slot with an unknown slot name. The compiler skips the directive.

Reported

@stillwind-slot utility;invalid-css-directive: `@stillwind-slot utility` names an unsupported slot

Fixed

@stillwind-slot utilities;

How to fix

  • Check the name and the arguments of the directive. For example, the slot for generated utilities is utilities.
  • If you do not need the directive, remove it. @import "stillwind" already places the slots that the default stylesheet needs.

Rule settings

PresetSeverity
recommendeddeny
strictdeny
stylisticoff

Configure lint to change the severity or options.