Skip to content

pantoken-root / design/swatches/src / swatches

Variable: swatches ​

const swatches: Swatch[]

Experimental

The rebrand colour swatches (the default palette).

Example ​

Encode the ready-made palette to any format

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

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