Skip to content

pantoken-root / design/swatches/src / swatches

Muuttuja: swatches ​

const swatches: Swatch[]

Kokeellinen

rebrand-värinäytteet (oletuspaletti).

Esimerkki ​

Koodaa valmiiksi tehty paletti mihin tahansa muotoon

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

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