Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — komponenty niestandardowe dla odbiorców downstream.

Generuje zasięgowe :root[data-pantoken-color="…"] i :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] reguły dla wszystkich 13 przestrzeni nazw kolorów (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora)).

Przykład

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

Interfejsy

Aliasy typów

Zmienne

Funkcje

Odwołania

default

Zmienia nazwę i ponownie eksportuje customIcons