Skip to content

pantoken-root / custom-theme-colors

custom-theme-colors ​

เบต้า

@pantoken/plugin-custom-components — คอมโพเนนต์ที่กำหนดเองสำหรับผู้ใช้ปลายทาง.

ส่งออกกฎที่มีขอบเขต :root[data-pantoken-color="…"] และ :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