{"id":31556991,"url":"https://github.com/palettejson/palettejson-schema","last_synced_at":"2026-05-19T14:10:28.946Z","repository":{"id":314529808,"uuid":"1054809072","full_name":"palettejson/palettejson-schema","owner":"palettejson","description":"JSON Schema specification for PaletteJSON, a portable container for colour palettes.","archived":false,"fork":false,"pushed_at":"2025-09-29T22:57:09.000Z","size":355,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-30T00:29:55.774Z","etag":null,"topics":["color-palette","colour-palette","json-schema"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/palettejson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-11T11:07:38.000Z","updated_at":"2025-09-29T22:57:13.000Z","dependencies_parsed_at":"2025-09-13T02:48:31.296Z","dependency_job_id":"23dddf6a-c39b-4455-9f04-5b1a16c1a42c","html_url":"https://github.com/palettejson/palettejson-schema","commit_stats":null,"previous_names":["palettejson/palettejson-schema"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/palettejson/palettejson-schema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palettejson%2Fpalettejson-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palettejson%2Fpalettejson-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palettejson%2Fpalettejson-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palettejson%2Fpalettejson-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/palettejson","download_url":"https://codeload.github.com/palettejson/palettejson-schema/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/palettejson%2Fpalettejson-schema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278386651,"owners_count":25978217,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color-palette","colour-palette","json-schema"],"created_at":"2025-10-04T23:21:03.778Z","updated_at":"2025-10-04T23:21:07.326Z","avatar_url":"https://github.com/palettejson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PaletteJSON\n\n![PaletteJSON Banner](assets/palettejson_social.png)\n\n\u003e **⚠️ Early Release**: This is an experimental v0.1 specification. Breaking changes may occur before stabilisation.\n\n**PaletteJSON** is an open JSON schema for defining and sharing colour palettes. It provides a portable container format that supports multiple palettes per file, optional metadata, and accessibility information.\n\n## Why PaletteJSON?\n\n- **Cross‑platform**: Use the same palette definitions in R, Python, JavaScript, BI tools, and more.\n- **Multi‑palette bundles**: Store one or many palettes in a single JSON file.\n- **Metadata**: Capture author, licence, tags, and provenance alongside colours.\n- **Accessibility**: Include palette‑level colour‑vision deficiency (CVD) testing info and per‑colour legibility metrics.\n- **Validation**: A published JSON Schema ensures stability and tooling support.\n\n## Status\n\n- Current spec: **v0.1** (draft / experimental).\n- Schema file: [`schema/v0.1/palettejson.schema.json`](schema/v0.1/palettejson.schema.json).\n- Examples: see [`/examples`](examples).\n\n## Example (minimal)\n\n```json\n{\n  \"palettes\": [\n    {\n      \"name\": \"Example\",\n      \"slug\": \"example\",\n      \"type\": \"categorical\",\n      \"colors\": [\n        { \"hex\": \"#FFFFFF\" },\n        { \"hex\": \"#000000\" },\n        { \"hex\": \"#FF0000\" },\n        { \"hex\": \"#00FF00\" },\n        { \"hex\": \"#0000FF\" }\n      ]\n    }\n  ]\n}\n```\n\n## Schema Features\n\n- **Palette object**:\n  - `name`, `slug`, `type`, `colors[]` required.\n  - Optional fields: `description`, `version`, `author`, `license`, `tags`, `colorRepresentation`, `accessibility`, `aliases`.\n- **Colour object**:\n  - Requires at least one of:\n    - `hex` (always display sRGB, `#RRGGBB` or `#RRGGBBAA`).\n    - `components` (numeric array interpreted in the palette’s `colorRepresentation`).\n  - Both may be present. If so, `components` are authoritative and `hex` is a preview / interop value.\n  - Supported `colorRepresentation` values: `sRGB`, `DisplayP3`, `Lab`, `OKLCH`, `sRGB-linear-extended`, `HSL`.\n  - Optional fields:\n    - `id` (string identifier), `name`, `position`, `notes`.\n    - `legibility` (luminance, contrast, preferred text).\n    - `references`: array of external identifiers (e.g. Pantone, RAL, NCS).  \n      Each entry must declare a `system` and `code`, with optional `library`, `collection`, and `note`.\n- **Accessibility block** (palette‑level): tested CVD variants, max distinct classes, notes, tools used.\n\n## File format \u0026 identification\n\n- Extension: Files SHOULD use `.palette.json`.\n- Encoding: Files MUST be UTF-8.\n- Media type:\n  - Producers MAY label files as `application/prs.palettejson+json`.\n  - Consumers SHOULD also accept `application/json`.\n- Apple UTI (optional): `org.palettejson.json`\n\nThese identifiers are recommendations for tooling and do not affect schema validity.\n\n## Roadmap\n\n- [ ] v0.1 stabilisation\n- [ ] Gradients support\n- [ ] Additional colour representation definitions\n- [ ] Accessibility metadata refinements\n\nFor converters, loaders, and utilities, see other repositories in the\n[PaletteJSON GitHub organisation](https://github.com/palettejson).\n\n## Documentation\n\nComplete documentation can be found at [palettejson.org](https://palettejson.org).\n\n## Contributing\n\n- Fork the repo, add/update schema or examples.\n- Run validation checks before submitting PRs.\n- Follow semantic versioning: additive changes only in minor versions.\n\n## License\n\nThis project is licensed under the [Apache 2.0 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalettejson%2Fpalettejson-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpalettejson%2Fpalettejson-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpalettejson%2Fpalettejson-schema/lists"}