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

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

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

Type Parameters

optional
Theme extends { } = { }

Properties

optional
rules: Rule<Theme>[]

Rules to generate CSS utilities

optional
variants: Variant<Theme>[]

Variants that preprocess the selectors, having the ability to rewrite the CSS object.

optional
shortcuts: UserShortcuts<Theme>

Similar to Windi CSS's shortcuts, allows you have create new utilities by combining existing ones.

optional
blocklist: BlocklistRule[]

Rules to exclude the selectors for your design system (to narrow down the possibilities). Combining warnExcluded options it can also helps you identify wrong usages.

optional
safelist: string[]

Utilities that always been included

optional
extractors: Extractor[]

Extractors to handle the source file and outputs possible classes/selectors Can be language-aware.

optional
preflights: Preflight<Theme>[]

Raw CSS injections.

optional
theme: Theme

Theme object for shared configuration between rules

optional
layers: Record<string, number>

Layer orders. Default to 0.

optional
sortLayers: (layers: string[]) => string[]

Custom function to sort layers.

optional
preprocess: Arrayable<Preprocessor>

Preprocess the incoming utilities, return falsy value to exclude

optional
postprocess: Arrayable<Postprocessor>

Process the generate utils object

optional
extendTheme: Arrayable<ThemeExtender<Theme>>

Custom functions to extend the theme object

optional
autocomplete: { templates?: Arrayable<AutoCompleteFunction | AutoCompleteTemplate>; extractors?: Arrayable<AutoCompleteExtractor>; }

Additional options for auto complete

optional
details: boolean

Expose internal details for debugging / inspecting

Added rules, shortcuts, variants to the context and expose the context object in StringifiedUtil

You don't usually need to set this.