Skip to content

pantoken-root / custom-theme-colors

custom-theme-colors ​

Бета

@pantoken/plugin-custom-components — кастомні компоненти для downstream-споживачів.

Генерує обмежені :root[data-pantoken-color="…"] and :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] правила для всіх 13 просторів імен кольорів (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Приклад ​

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()] });

Інтерфейси ​

Псевдоніми типів ​

Змінні ​

Функції ​

Посилання ​

default ​

Перейменовує та повторно експортує customIcons