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>>[];
}§Properties
§
darkColor?: DarkColor<BaseTheme & ExtractThemes<Theme, Presets>>
[src]§
darkMode?: DarkModeConfig
[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]§
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]