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

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

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

Constructors

new
UnoGenerator(userConfig?: UserConfig, defaults?: UserConfigDefaults)

Properties

private
_cache
blocked: Set<string>
config: ResolvedConfig
defaults: UserConfigDefaults
events: Emitter<{ config: (config: ResolvedConfig) => void; }>
parentOrders: Map<string, number>
userConfig: UserConfig
version: string

Methods

applyExtractors(
code: string,
id?: string,
set?: Set<string>,
): Promise<Set<string>>
applyVariants(
parsed: ParsedUtil,
variantHandlers?: VariantHandler[],
raw?: string,
): UtilObject
constructCustomCSS(
context: Readonly<RuleContext>,
body: CSSObject | CSSEntries,
overrideSelector?: string,
): string
expandShortcut(
processed: string,
context: RuleContext,
depth?: number,
): [string[], RuleMeta | undefined] | undefined
generate(input?: string | Set<string>, unnamed 1?: GenerateOptions): Promise<GenerateResult>
isBlocked(raw: string): boolean
makeContext(raw: string, applied: VariantMatchedResult): RuleContext<{ }>
matchVariants(raw: string, current?: string): VariantMatchedResult
parseToken(raw: string, alias?: string): Promise<StringifiedUtil[] | null | undefined>
parseUtil(
input: string | VariantMatchedResult,
context: RuleContext,
internal?: boolean,
): Promise<(ParsedUtil | RawUtil)[] | undefined>
setConfig(userConfig?: UserConfig, defaults?: UserConfigDefaults): void
stringifyShortcuts(
parent: VariantMatchedResult,
context: RuleContext,
expanded: string[],
meta?: RuleMeta,
): Promise<StringifiedUtil[] | undefined>
stringifyUtil(parsed?: ParsedUtil | RawUtil, context?: RuleContext): StringifiedUtil | undefined