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));