Skip to content

pantoken / packages/core/src / PantokenPlugin

Atanga: PantokenPlugin

Beta

He mono pantoken. He kōwhiringa ngā huinga katoa; ka whai wāhi te mono anake ki ngā wāhanga e tautuhia ana e ia mō tētahi huinga. Nā reira, ka taea e taua mono te whakauru ki ngā paparanga maha.

Ngā Rawa

name

name: string

Beta

He ingoa mono ahurei, ka taea te pānui e te tangata.

Ngā Tikanga

tokens()?

optional tokens(ctx): void | Token[]

Beta

Etapā tohu: whakahokia te rārangi katoa o ngā tohu whakakapi.

Ngā Tawhā

ctx

TokenHookContext

Whakahokia

void | Token[]


icons()?

optional icons(ctx): void | IconEntry[]

Beta

Icon stage: return new IconEntry records to register as <image> tokens. Returning undefined or an empty array leaves the current set unchanged.

Ngā Tawhā

ctx

IconHookContext

Whakahokia

void | IconEntry[]


css()?

optional css(ctx): void | CssContribution

Beta

Etapā CSS: tāpiri ki te CSS, te whakauru rānei i ngā tukanga-ā-muri mō te CSS.

Ngā Tawhā

ctx

CssHookContext

Whakahokia

void | CssContribution


rehype()?

optional rehype(ctx): void | { resolve?: IconResolver; }

Beta

Etapā Rehype: whakarato i tētahi kaiwhakatau (resolver) ka whakakotahitia ki te mono rehype.

Ngā Tawhā

ctx

RehypeHookContext

Whakahokia

void | { resolve?: IconResolver; }


native()?

optional native(ctx): void

Beta

Etapā taketake (Style Dictionary): rehita i ngā hurihanga me ngā hōtaka.

Ngā Tawhā

ctx

unknown

Whakahokia

void