Interface: Context

twind.Context

Properties

css

Readonly css: (rule: string | Rule[]) => CSSRules

Type declaration:

▸ (rule: string | Rule[]): CSSRules

Parameters:

NameType
rulestring | Rule[]

Returns: CSSRules

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

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


tag

Readonly tag: (key: string) => string

Create unique identifier (group, custom properties)

Type declaration:

▸ (key: string): string

Parameters:

NameType
keystring

Returns: string

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

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


theme

Readonly theme: ThemeResolver

Access to theme values

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


tw

Readonly tw: TWCallable

Allow composition

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