Skip to content

pantoken-root / packages/model/src / Token

Atanga: Token ​

Beta

He tohu hoahoa kotahi i te IR kānonika e ōrite ana ki @property.

Ngā Rawa ​

name ​

name: string

Te ingoa taonga ritenga, hei tauira --instui-color-background-base.


syntax ​

syntax: string

The @property syntax descriptor ("<color>", "<length>", "<image>", …) or "*" for contextual values.


inherits ​

inherits: boolean

Te tūtohu @property inherits.


value ​

value: string

He uara mārama, he tohutoro var(...), rānei he tārua light-dark(a, b).


flatValue? ​

optional flatValue?: string

Beta

Ko te kīanga kua whakatangotango katoa, kei reira anake ina ko value he kīrehe CSS e tiakina ana ngā tohutoro (he modify o Tokens Studio i whakaaturia hei color-mix() / hsl(from …))). Ko ngā kaiwhakawhiwhi e hiahia ana ki tētahi tae tūturu, kaua ki tētahi kīrehe CSS — te takenga ā-mana, Figma, swatches — ka pānui i tēnei; ko te kaiwhakaotinga taurite i roto i @pantoken/utils e pai ana ki tēnei inā-tō.


themed? ​

optional themed?: boolean

Beta

Tika mēnā e rerekē ana ngā whakataunga mārama me ngā whakataunga pōuri (he light-dark() te uara).


refersTo? ​

optional refersTo?: string

Beta

Te tohu e tohu ana tēnei, ina ko value he kotahi var(...).


meta? ​

optional meta?: TokenMeta

Beta

Mōhiohio kore-uara.