Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

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

Properties

matcher: string

The result rewritten selector for the next round of matching

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
order: number

Order in which the variant is applied to selector.

optional
sort: number

Order in which the variant is sorted within single rule.

optional
layer: string | undefined

Override layer to the output css.