@stillwind-undef-variant name;
@stillwind-undef-variant prefix-*;
@stillwind-undef-variant *;@stillwind-undef-variant removes the matching variant definitions that
register before it. A removed variant becomes unknown, and
unknown-variant reports its uses. Write it at the
top level of the stylesheet or in a
@stillwind-registry block.
Example
Stylesheet
@stillwind-undef-variant print;Source
import { style } from "stillwind/react";
export const toolbar = style("print:hidden");Compiled code
export const toolbar = {};Generated stylesheet without preflight
/*! stillwind v0.0.0 | MIT License | https://stillwind.dev */
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties, theme, base, components, utilities;print:hidden produces no class, because print is unknown.
Patterns and registration order work as in @stillwind-undef-utility. A @custom-variant after the statement can define a variant with the removed name again.