{"id":13395432,"url":"https://github.com/believer/color","last_synced_at":"2025-10-25T05:55:42.391Z","repository":{"id":77680637,"uuid":"290974871","full_name":"believer/color","owner":"believer","description":"Ratio and score for colors according to WCAG","archived":false,"fork":false,"pushed_at":"2021-02-19T06:49:50.000Z","size":903,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-07-31T17:23:52.975Z","etag":null,"topics":["bucklescript","colors","reasonml"],"latest_commit_sha":null,"homepage":"https://color.willcodefor.beer","language":"Reason","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/believer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-08-28T07:00:31.000Z","updated_at":"2021-08-02T13:57:51.000Z","dependencies_parsed_at":"2023-03-12T01:40:15.216Z","dependency_job_id":null,"html_url":"https://github.com/believer/color","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer%2Fcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer%2Fcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer%2Fcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer%2Fcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/believer","download_url":"https://codeload.github.com/believer/color/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243478446,"owners_count":20297258,"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","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":["bucklescript","colors","reasonml"],"created_at":"2024-07-30T17:01:58.432Z","updated_at":"2025-10-25T05:55:42.307Z","avatar_url":"https://github.com/believer.png","language":"Reason","funding_links":[],"categories":["Reason"],"sub_categories":[],"readme":"# Color\n\n[![](https://github.com/believer/color/workflows/Release/badge.svg)](https://github.com/believer/color/actions?workflow=Release)\n\nCalculate WCAG ratio and score between two colors using [wcag-color](https://github.com/believer/wcag-color/).\nTry it at [https://color.willcodefor.beer](https://color.willcodefor.beer)\n\n## Run Project\n\n```sh\nnpm install\nnpm start\n# in another tab\nnpm run server\n```\n\nWhen both processes are running, open a browser at http://localhost:3000\n\n## Build for Production\n\n```sh\nnpm run clean\nnpm run build\nnpm run webpack:production\n```\n\nThis will replace the development artifact `build/Index.js` for an optimized\nversion as well as copy `public/index.html` into `build/`. You can then deploy the\ncontents of the `build` directory (`index.html` and `Index.js`).\n\nIf you make use of routing (via `ReasonReact.Router` or similar logic) ensure\nthat server-side routing handles your routes or that 404's are directed back to\n`index.html` (which is how the dev server is set up).\n\n**To enable dead code elimination**, change `bsconfig.json`'s `package-specs`\n`module` from `\"commonjs\"` to `\"es6\"`. Then re-run the above 2 commands. This\nwill allow Webpack to remove unused code.\n'\n\n## Build to Now\n\nThis project includes building straight to [Now](https://zeit.co/) after Travis has validated\ntests and created a release. There are some steps that need to be taken to enable the setup.\n\n1. Get a token from your [Now dashboard](https://zeit.co/account/tokens)\n1. Set the token as `NOW_TOKEN` in Travis\n1. Uncomment the Now build steps in `.travis.yml`\n1. Add `now-build` to `package.json` scripts. Now runs this script during it build process:\n\n```\n\"now-build\": \"npm run build \u0026\u0026 npm run webpack:production\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliever%2Fcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeliever%2Fcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliever%2Fcolor/lists"}