Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

palette

a very fast way to extract & save colour palettes from images.

screenshot

simply paste/upload an image, then quick-copy hex values, save collections and export to:

  • .ase (Adobe Swatch Exchange): imports into Photoshop / Illustrator / InDesign as a named swatch library
  • .aco (Photoshop Color Swatches) loads into the Swatches panel
  • CSS custom properties
  • JSON file
  • GIMP .gpl
  • plaintext #HEX list

Colour quantisation (median-cut + perceptual merge) runs in a web worker on a 256px downscale of the image, so extraction is ~tens of milliseconds and never blocks the UI. The worker is pre-warmed on load. The full-resolution image is kept only for pixel-accurate eyedropping.

Quick start

Requires Docker (for Postgres) and Node 20+.

./dev start      # Postgres in Docker + backend + frontend, installs deps on first run

Open http://localhost:5180.

./dev stop       # stop everything
./dev restart    # stop then start
./dev status     # what's running
./dev logs       # tail backend + frontend logs

Keyboard shortcuts

Key Action
⌘V Paste image from clipboard
I Eyedropper mode
C Crop mode
G Toggle Collections
⌘S Save palette
Esc Clear crop / close panels

Ports

Service URL
Frontend (Vite) http://localhost:5180
Backend (Fastify) http://localhost:3031
Postgres localhost:5544

See CLAUDE.md for architecture and contributor/agent notes.

About

a very fast way to extract & save colour palettes

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages