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:85


hash

Optional hash: boolean | Hasher

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


important

Optional important: boolean

Control whether or not utilities should be marked with !important

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


mode

Optional mode: Mode | strict | warn | silent

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


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:105


plugins

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

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


prefix

Optional prefix: boolean | Prefixer

Auto-prefixer method for CSS property–value pairs.

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


preflight

Optional preflight: boolean | CSSRules | Preflight

Called right before the first rule is injected.

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


sheet

Optional sheet: Sheet<unknown>

Style insertion methodology to be used.

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


theme

Optional theme: ThemeConfiguration

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


variants

Optional variants: Record<string, string>

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

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