Skip to content

pantoken-root / custom-theme-colors

custom-theme-colors ​

Beta

@pantoken/plugin-custom-components — ngā waahanga ritenga mō ngā kaiwhakamahi heke iho.

Ka whakaputa i ngā ture ā-rohe :root[data-pantoken-color="…"] and :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] mō ngā ingoa wāhanga tae e 13 katoa (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Tauira ​

ts
import { toCss } from "@pantoken/css";
import { byTheme } from "@pantoken/tokens";
import { customThemeColors } from "@pantoken/plugin-custom-theme-colors";

const css = toCss(byTheme("rebrand"), { plugins: [customThemeColors()] });

Ngā Atanga ​

Ngā Ingoa Momo ​

Ngā Taipūtī ​

Ngā Mahi ​

Ngā Tohutoro ​

default ​

E hurihia ana ngā ingoa, ā, ka whakahoutia te kaweake o te customIcons