Interface: Configuration

twind.Configuration

Hierarchy

Properties

darkMode

Optional darkMode: false | media | class

Determines the dark mode strategy (default: "media").

Defined in: src/types/twind.ts:88


hash

Optional hash: boolean | Hasher

Defined in: src/types/twind.ts:119


important

Optional important: boolean

Control whether or not utilities should be marked with !important

Defined in: src/types/twind.ts:126


mode

Optional mode: Mode | strict | warn | silent

Defined in: src/types/twind.ts:121


nonce

Optional nonce: string

Sets a cryptographic nonce (number used once) on the enclosing <style> tag when generating a page on demand.

Useful for enforcing a Content Security Policy (CSP).

Defined in: src/types/twind.ts:108


plugins

Optional plugins: Record<string, undefined | string | CSSRules | DirectiveHandler>

Defined in: src/types/twind.ts:92


prefix

Optional prefix: boolean | Prefixer

Auto-prefixer method for CSS property–value pairs.

Defined in: src/types/twind.ts:117


preflight

Optional preflight: boolean | CSSRules | Preflight

Called right before the first rule is injected.

Defined in: src/types/twind.ts:114


sheet

Optional sheet: Sheet<unknown>

Style insertion methodology to be used.

Defined in: src/types/twind.ts:111


theme

Optional theme: ThemeConfiguration

Defined in: src/types/twind.ts:90


variants

Optional variants: Record<string, string>

{
  ':new-variant': '& .selector',
}

Defined in: src/types/twind.ts:101