Skip to content

pantoken-root / plugins/pantoken/custom-theme-colors/src / CustomThemeColorsCssOptions

Atanga: CustomThemeColorsCssOptions ​

Beta

Ngā kōwhiringa mō te mono customIcons.

Ngā Rawa ​

selector? ​

optional selector?: string

Beta

Selector prefix the conditional [data-pantoken-color="…"] rules are scoped under. Defaults to :root. Ka taea e ngā kiritaki e rua te tuku i tētahi selector rerekē ia (hei tauira :root mō te anga o te whārangi me #some-tray mō tētahi taputapu rāhuitia) kia whakahaere i ngā tauira tae motuhake, kāore e whakawhāiti i tētahi ki tētahi i runga i taua whārangi kotahi — ka hurihia ia ki tōna ake āhuatanga i roto i tana ake rāngai, kaua ki te āwhina i te :root.


resetSelector? ​

optional resetSelector?: string

Beta

An additional selector whose subtree should always render the true, unremapped colors, ahakoa he aha te āhua o te waahanga [data-pantoken-color] o tētahi tīpuna e noho ana. Ka whakaputa tētahi ture kore-āhua e tau ana i ia token ka taea e tēnei mono te whakawhēnua ki tōna wāhanga taketake — hei tauira, me ū tonu ngā swatches tohutoro o tētahi tohu tae i roto i tētahi whārangi kua āta-kākahu, kaua e whakawhiwhia ki te remap a te tīpuna.


custom? ​

optional custom?: string

Beta

A brand hex (#rgb/#rrggbb)) hei whakaputa i te custom ākapa. Ina tautuhia, ka tāpiri tētahi [data-pantoken-color="custom"] ture — tirohia customColorCss.