Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Βήτα

@pantoken/plugin-custom-components — προσαρμοσμένα components για downstream καταναλωτές.

Εκδίδει περιορισμένους κανόνες :root[data-pantoken-color="…"] και :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"]``: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