Palette export
@slashclone/palette-export
Turn your design tokens into a downloadable color palette: a swatch sheet (SVG), JSON, CSS variables, and a GIMP palette that Krita and Inkscape also open. Handy for briefing designers or image models with your exact colors. Reads one colors file and writes only to an out folder.
- Activity
- New: be the first to try it
- Installs
- 0 installs
- Likes
- 0 likes
- Clones
- 0 clones
What it makes
Real output from this kit
Preview with scripts turned off. Download it to see it run.
- Sample file610 bytes, download to openPaletteFrom the kit's tests
Preview with scripts turned off. Download it to see it run.
How this works
- It is a skill: written instructions Claude reads when your request matches what the skill is for. You do not call it by name; just ask for the task.
- While it works, it reads and changes files in the places it lists, nowhere else.
- It runs these commands on your computer: node scripts/export-palette.mjs.
- Nothing runs until you choose to use it, and you can remove it any time.
SKILL.md
Palette export
Goal: the project's real colors, in files people can open anywhere, without retyping a single hex.
Steps
- Find the source of truth. Look for the design tokens (a
tokens.ts,theme.ts, Tailwind config, or CSS variables). Use the values the product actually ships, never colors guessed from screenshots. - Write
data/colors.json. Group the colors the way the team talks about them (neutrals, brand, accents, status), with a short note on what each group is for. Format: seeexamples/colors.json. A flat{ "name": "#RRGGBB" }map works too. - Run it:
node scripts/export-palette.mjs --in data/colors.json --name "Brand" --out outIt writesout/palette.json,palette.css,palette.gpl, andpalette.svg. - Need a PNG? Convert the SVG with whatever the machine has (on macOS,
qlmanage -t -s 2400 out/palette.svg; elsewherersvg-convertor a browser screenshot). Say which tool you used. - Hand it over. Point to the files and name the few colors that set the look, with a note on proportions if the brand has one (for example, how much of a frame the accent should cover).
Rules
- Every hex comes from the project's own tokens. If two sources disagree, say so and ask which wins.
- Keep text and non-text colors labeled: a brand green that is only for marks must not be handed over as a text color.
- Do not commit the exports unless the person asks; they are generated files.
Files
- SKILL.md
- examples/colors.json
- kit.json
- scripts/export-palette.mjs
Did it work?
0worked for them0did not work
Sign in to say whether it worked for you.
Nobody has said yet. Tried it? Tell the next person.

