Skip to content

A minimal JSON-based file format for defining color palettes

License

Notifications You must be signed in to change notification settings

simple-color-palette/simple-color-palette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Simple Color Palette

A minimal JSON-based file format for defining color palettes

It's designed for interoperability, clarity, and ease of use.

Feedback wanted on the specification

Caution

Work in progress.

Example

Favorites.color-palette:

{
	"name": "Favorites",
	"colors": [
		{
			"name": "Hot Pink",
			"components": [1, 0.1274, 0.418]
		},
		{
			"components": [0.592, 0.278, 0.996, 0.9]
		}
	]
}

Contents

Implementations

Apps

Packages

Why another format?

Existing color palette formats have limitations:

  • Adobe Color (.aco, .ase) - Proprietary binary formats tied to Adobe products
  • Sketch (.sketchpalette) - JSON-based but specific to Sketch app
  • NSColorList (.clr) - macOS only, binary format
  • GIMP/Inkscape (.gpl) - Text-based but limited to 8-bit RGB values

This format addresses these issues by being:

  1. Open - JSON-based, human-readable, and freely implementable
  2. Modern - Supports HDR colors through extended linear sRGB
  3. Simple - Minimal structure with just the essential fields
  4. Portable - Not tied to any specific app or platform
  5. Precise - Uses raw linear values to avoid gamma ambiguity