{"id":29822924,"url":"https://github.com/ctxhou/color_json","last_synced_at":"2025-07-29T01:12:16.199Z","repository":{"id":25577196,"uuid":"29011066","full_name":"ctxhou/color_json","owner":"ctxhou","description":null,"archived":false,"fork":false,"pushed_at":"2015-01-09T10:44:03.000Z","size":144,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T07:40:36.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://canner-can.github.io/color-table/","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ctxhou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-09T10:02:19.000Z","updated_at":"2015-01-09T10:44:04.000Z","dependencies_parsed_at":"2022-08-02T10:42:30.331Z","dependency_job_id":null,"html_url":"https://github.com/ctxhou/color_json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ctxhou/color_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fcolor_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fcolor_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fcolor_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fcolor_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ctxhou","download_url":"https://codeload.github.com/ctxhou/color_json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ctxhou%2Fcolor_json/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267613881,"owners_count":24115706,"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-07-28T02:00:09.689Z","response_time":68,"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":[],"created_at":"2025-07-29T01:12:15.605Z","updated_at":"2025-07-29T01:12:16.185Z","avatar_url":"https://github.com/ctxhou.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ColorJson\n\nEasy way to show your `sass/scss/less` color list.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'color_json'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install color_json\n\n## Usage\n\n    color_json build \u003cfilename\u003e\n\nthen you would got your `color.json` file!\n\n### Example\n\n#### Basic usage\n`no_group.scss`:\n\n```scss\n$aqua:  #7FDBFF;\n$blue:  #0074D9;\n$navy:  #001F3F;\n$teal:  #39CCCC;\n```\n\nit would generate:\n\n`color.json`:\n\n```json    \n\"color\": {\n  \"$aqua\": \"  #7FDBFF;\",\n  \"$blue\": \"  #0074D9;\",\n  \"$navy\": \"  #001F3F;\",\n  \"$teal\": \"  #39CCCC;\"\n}\n```\n#### Group usage\n\nYou can use `//**` to label your color usage. \n\n`group.scss`:\n\n```scss\n//** main color\n$aqua:  #7FDBFF;\n$blue:  #0074D9;\n\n//** other\n$yellow:  #FFDC00;\n$orange:  #FF851B;\n```\n\nit would generate:\n\n`color.json`:\n```json\n\"color\": {\n  \"main color\": {\n    \"$aqua\": \"  #7FDBFF;\",\n    \"$blue\": \"  #0074D9;\"\n  },\n  \"other\": {\n    \"$yellow\": \"  #FFDC00;\",\n    \"$orange\": \"  #FF851B;\"\n  }\n}\n```\n\n## What the color.json can do?\n\n`color.json` can combine with [canner](http://github.com/canner/canner) and help you show your color list very quickly.\n\nReference the can: [color-table](https://github.com/Canner-can/color-table/) for more info.\n\n## Issue\n\nThis gem now only support `scss`. It has many needs for imporvement.\n\nFeel free to fork it and pull request.\n\n## License\n\n[@ctxhou](http://github.com/ctxhou) MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctxhou%2Fcolor_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fctxhou%2Fcolor_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fctxhou%2Fcolor_json/lists"}