{"id":13726634,"url":"https://github.com/Rohea/re-polished","last_synced_at":"2025-05-07T22:30:26.879Z","repository":{"id":55476090,"uuid":"234537943","full_name":"Rohea/re-polished","owner":"Rohea","description":"An idiomatic ReasonML port of Polished library - to be used in a ReScript project or alike","archived":false,"fork":false,"pushed_at":"2024-08-28T15:25:17.000Z","size":318,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-18T01:37:05.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/Rohea.png","metadata":{"files":{"readme":"README.md","changelog":null,"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-01-17T11:49:32.000Z","updated_at":"2024-11-05T00:43:13.000Z","dependencies_parsed_at":"2024-01-06T07:40:06.612Z","dependency_job_id":"43410bb9-c6f7-417f-ac3d-76db15814ca0","html_url":"https://github.com/Rohea/re-polished","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohea%2Fre-polished","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohea%2Fre-polished/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohea%2Fre-polished/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rohea%2Fre-polished/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rohea","download_url":"https://codeload.github.com/Rohea/re-polished/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252965065,"owners_count":21832815,"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":[],"created_at":"2024-08-03T01:03:15.252Z","updated_at":"2025-05-07T22:30:26.602Z","avatar_url":"https://github.com/Rohea.png","language":"Reason","funding_links":[],"categories":["Reason"],"sub_categories":[],"readme":"# Re-Polished\n\nA reimplementation of the great [Polished](https://polished.js.org/) library in [ReasonML](https://reasonml.github.io/en/) with following goals:\n- Provide data types for color manipulation\n- Implement many of the color manipulation functions from Polished in platform agnostic ReasonML.\n- Offer a binding layer for [bs-css](https://github.com/reasonml-labs/bs-css) and others (?) for easier use on web platform in [ReScript](https://rescript-lang.org/)\n\n## Installation with bs-css\n\n```\nyarn add @rohea/re-polished-bs-css\n```\nThen add `@rohea/re-polished` and `@rohea/re-polished-bs-css` to `bs-dependencies` in your `bsconfig.json`.\n\n## Usage with bs-css\n\n```\nlet myClass = Css.style([\n    Css.backgroundColor(`hex(\"ff0000\")-\u003ePolishedCss.darken(0.5))\n]);\n```\n\n## Installation without bindings\n\n```\nyarn add @rohea/re-polished\n```\nThen add `@rohea/re-polished` to `bs-dependencies` in your `bsconfig.json`.\n\n\n## Supported functions\n\n- darken\n- desaturate\n- invert\n- lighten\n- mix\n- opacify\n- readable\n- shade\n- tint\n- transparentize\n- setAlpha\n \nNew functions are added as soon as we need them or someone makes a nice pull request :)\n\n## TODO\n\n- Add more functions\n\n## A note about the future plans\n\nIt is likely that this library will develop prioritizing the web platform needs and maintain compatibility with ReScript as that is currently the primary usecase for the authors. However, if there are any users on native side and something breaks, don't hesitate to let us know :)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRohea%2Fre-polished","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FRohea%2Fre-polished","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FRohea%2Fre-polished/lists"}