Schema
Chromaril Palette Schema v1
The Chromaril schema defines a structured, metadata-rich format for color palettes.
Palette Format
A palette contains:
- Identity — unique ID, name, description, author, license, tags
- Colors — hex values (required), plus optional RGB, HSL, and OKLCH representations
- Semantic Roles — each color can declare its intended use (background, primary, accent, etc.)
- Relationships — colors can reference contrast pairs, complements, and derivation sources
- Variants — formally linked theme alternatives (light, dark, high-contrast, custom)
- Views — standard visual representations (swatch grid, UI mockup) or embedded SVG/HTML templates
Package Format
Packages bundle one or more palettes with:
- Embedded assets (SVG templates, HTML layouts)
- Render configuration (default views, theme preferences)
Minimal Example
{
"chromaril": "1.0",
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Ocean Breeze",
"colors": [
{ "name": "Deep Sea", "hex": "#1A3A5C" },
{ "name": "Seafoam", "hex": "#5DAFEC" },
{ "name": "Sandy Shore", "hex": "#F5E6CC" }
]
}
Full Specification
The complete JSON Schema files are available in the repository at docs/specs/schema/v1/:
palette.schema.json— Core palette formatpackage.schema.json— Bundle formatdefinitions.schema.json— Shared type definitions
Try It
Explore palettes interactively at app.chromaril.ca.