Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TwindUserConfig

interface TwindUserConfig <Theme = BaseTheme, Presets extends Preset<any>[] = Preset[]> {
darkColor?: DarkColor<BaseTheme & ExtractThemes<Theme, Presets>>;
darkMode?: DarkModeConfig;
finalize?: MaybeArray<Finalize<Theme & BaseTheme>>;
hash?: boolean | undefined | HashFunction;
ignorelist?: MaybeArray<string | RegExp>;
preflight?: false | MaybeArray<Preflight | PreflightThunk<BaseTheme & ExtractThemes<Theme, Presets>>>;
presets?: Presets;
rules?: Rule<BaseTheme & ExtractThemes<Theme, Presets>>[];
stringify?: StringifyDeclaration<BaseTheme & ExtractThemes<Theme, Presets>>;
theme?: Theme | ThemeConfig<BaseTheme & ExtractThemes<Theme, Presets>>;
variants?: Variant<BaseTheme & ExtractThemes<Theme, Presets>>[];
}

§Type Parameters

§
Presets extends Preset<any>[] = Preset[]
[src]

§Properties

§
darkColor?: DarkColor<BaseTheme & ExtractThemes<Theme, Presets>>
[src]
§

Allows to change how the dark variant is used (default: "media")

§
finalize?: MaybeArray<Finalize<Theme & BaseTheme>>
[src]
§
hash?: boolean | undefined | HashFunction
[src]

Enables hashing of all classes (default: false).

If a function is given it can be used to hash only certain classes:

{
  hash(className, defaultHash) {
    if (/^[~@]\(/.test(className)) {
      // a shortcut like `~(...)` or apply like `@(...)`
      return defaultHash(className)
    }
    return className
  }
}
§
ignorelist?: MaybeArray<string | RegExp>
[src]
§
preflight?: false | MaybeArray<Preflight | PreflightThunk<BaseTheme & ExtractThemes<Theme, Presets>>>
[src]
§
presets?: Presets
[src]
§
rules?: Rule<BaseTheme & ExtractThemes<Theme, Presets>>[]
[src]
§
stringify?: StringifyDeclaration<BaseTheme & ExtractThemes<Theme, Presets>>
[src]
§
theme?: Theme | ThemeConfig<BaseTheme & ExtractThemes<Theme, Presets>>
[src]
§
variants?: Variant<BaseTheme & ExtractThemes<Theme, Presets>>[]
[src]