Skip to content

pantoken-root / design/swatches/src / swatches

ตัวแปร: swatches ​

const swatches: Swatch[]

ทดลอง

ตัวอย่างสี rebrand (พาเลตเริ่มต้น).

ตัวอย่าง ​

เข้ารหัสพาเลตสำเร็จรูปเป็นรูปแบบใดก็ได้

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

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