UNPKG

tailwind-variant-selectors

Version:
28 lines 780 B
/** * Use your custom tailwind variants as selectors inside css files without relying on the `@apply` * syntax. * * @example * ```css * ⁣@variant hocus (&:hover, &:focus); * * .btn { * color: var(--color-input); * * &:variant(hocus) { * color: var(--color-input-accent); * } * } */ export default function plugin(): ({ name: string; enforce: "pre"; buildStart(this: import("rollup").PluginContext): void; transform(this: import("rollup").TransformPluginContext, code: string, id: string): void; } | { name: string; transform(this: import("rollup").TransformPluginContext, code: string, id: string): string | undefined; enforce?: undefined; buildStart?: undefined; })[]; //# sourceMappingURL=index.d.ts.map