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

x/netzo/deps/@unocss/core.ts>UnoGenerator

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
class UnoGenerator
import { UnoGenerator } from "https://deno.land/x/netzo@0.4.78/deps/@unocss/core.ts";

Constructors

new
UnoGenerator(userConfig?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>)

Type Parameters

optional
Theme extends object = object

Properties

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

Methods

applyExtractors(
code: string,
id?: string,
extracted?: Set<string>,
): Promise<Set<string>>
applyExtractors(
code: string,
id?: string,
extracted?: CountableSet<string>,
): Promise<CountableSet<string>>
constructCustomCSS(
context: Readonly<RuleContext<Theme>>,
overrideSelector?: string,
): string
expandShortcut(
input: string,
context: RuleContext<Theme>,
depth?: number,
): Promise<[ShortcutValue[], RuleMeta | undefined] | undefined>
generate(input:
| string
| Set<string>
| CountableSet<string>
| string[]
, options?: GenerateOptions<false>
): Promise<GenerateResult<Set<string>>>
generate(input:
| string
| Set<string>
| CountableSet<string>
| string[]
, options?: GenerateOptions<true>
): Promise<GenerateResult<Map<string, ExtendedTokenInfo<Theme>>>>
isBlocked(raw: string): boolean
matchVariants(raw: string, current?: string): Promise<VariantMatchedResult<Theme>>
parseToken(raw: string, alias?: string): Promise<StringifiedUtil<Theme>[] | undefined | null>
parseUtil(
input: string | VariantMatchedResult<Theme>,
context: RuleContext<Theme>,
internal?: boolean,
shortcutPrefix?: string | string[] | undefined,
): Promise<(ParsedUtil | RawUtil)[] | undefined>
setConfig(userConfig?: UserConfig<Theme>, defaults?: UserConfigDefaults<Theme>): void
stringifyShortcuts(
context: RuleContext<Theme>,
expanded: ShortcutValue[],
meta?: RuleMeta,
): Promise<StringifiedUtil<Theme>[] | undefined>
stringifyUtil(parsed?: ParsedUtil | RawUtil, context?: RuleContext<Theme>): StringifiedUtil<Theme> | undefined