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-beta.1/lib/@unocss/core.ts";

Constructors

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

Properties

private
_cache
private
applyVariants
blocked: Set<string>
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>>
constructCustomCSS(
context: Readonly<RuleContext>,
overrideSelector?: string,
): string
expandShortcut(
input: string,
context: RuleContext,
depth?: number,
): [ShortcutValue[], RuleMeta | undefined] | undefined
generate(input: string | Set<string> | string[], options?: 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(
context: RuleContext,
expanded: ShortcutValue[],
meta?: RuleMeta,
): Promise<StringifiedUtil[] | undefined>
stringifyUtil(parsed?: ParsedUtil | RawUtil, context?: RuleContext): StringifiedUtil | undefined