Skip to main content
Module

x/aleph/lib/@unocss/core.ts>VariantHandler

The Full-stack Framework in Deno.
Very Popular
Go to Latest
interface VariantHandler
import { type VariantHandler } from "https://deno.land/x/aleph@1.0.0-beta.1/lib/@unocss/core.ts";

Properties

Callback to process the handler.

matcher: string

The result rewritten selector for the next round of matching

optional
order: number

Order in which the variant is applied to selector.

optional
selector: (input: string, body: CSSEntries) => string | undefined

Rewrite the output selector. Often be used to append pesudo classes or parents.

optional
body: (body: CSSEntries) => CSSEntries | undefined

Rewrite the output css body. The input come in [key,value][] pairs.

optional
parent: string | [string, number] | undefined

Provide a parent selector(e.g. media query) to the output css.

optional
sort: number

Order in which the variant is sorted within single rule.

optional
layer: string | undefined

Override layer to the output css.