Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Bêta

@pantoken/plugin-custom-components — componiadau wedi'u haddasu ar gyfer defnyddwyr lawr-y-lif.

Allyrrir rheolau wedi'u hamgáu :root[data-pantoken-color="…"] a :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] rheolau ar gyfer yr 13 namespace lliw sydd ar gael (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Enghraifft

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

Rhyngwynebau

Aliasau Math

Newidynnau

Swyddogaethau

Cyfeiriadau

default

Ail-enwi ac ailallforio customIcons