Skip to content

pantoken-root / design/swatches/src / swatches

Biến: swatches ​

const swatches: Swatch[]

Thử nghiệm

Các mẫu màu rebrand (bảng màu mặc định).

Ví dụ ​

Mã hóa bảng màu có sẵn sang bất kỳ định dạng nào

ts
import { writeFileSync } from "node:fs";
import { swatches, toAse, toGpl } from "@pantoken/swatches";

writeFileSync("instructure.ase", toAse(swatches));
writeFileSync("instructure.gpl", toGpl(swatches));