Skip to content

pantoken / custom-theme-colors

custom-theme-colors

Beta

@pantoken/plugin-custom-components — custom components for downstream consumers.

Emits scoped :root[data-pantoken-color="…"] and :root[data-pantoken-theme="canvasHighContrast"][data-pantoken-color="…"] rules for all 13 colour namespaces (navy, blue, green, red, orange, grey, plum, violet, stone, sky, honey, sea, aurora).

Example

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

Interfaces

Type Aliases

Variables

Functions

References

default

Renames and re-exports customIcons