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

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

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

Type Parameters

optional
Theme extends object = object

Properties

optional
rules: Rule<Theme>[]

Rules to generate CSS utilities.

Later entries have higher priority.

optional
separators: Arrayable<string>

Variant separator

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.

Later entries have higher priority.

optional
blocklist: BlocklistRule[]

Rules to exclude the selectors for your design system (to narrow down the possibilities). Combining warnExcluded options it can also help 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
extractorDefault: Extractor | null | false

Default extractor that are always applied. By default it split the source code by whitespace and quotes.

It maybe be replaced by preset or user config, only one default extractor can be presented, later one will override the previous one.

Pass null or false to disable the default extractor.

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>

Postprocess the generate utils object

optional
extendTheme: Arrayable<ThemeExtender<Theme>>

Custom functions mutate the theme object.

It's also possible to return a new theme object to completely replace the original one.

optional
presets: (PresetOrFactory<Theme> | PresetOrFactory<Theme>[])[]

Presets

optional
autocomplete: { templates?: Arrayable<AutoCompleteFunction | AutoCompleteTemplate>; extractors?: Arrayable<AutoCompleteExtractor>; shorthands?: Record<string, string | string[]>; }

Additional options for auto complete

optional
configResolved: (config: ResolvedConfig) => void

Hook to modify the resolved config.

First presets runs first and the user config

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.