{"id":20347496,"url":"https://github.com/evilmartians/figma-polychrom","last_synced_at":"2025-07-22T16:06:50.275Z","repository":{"id":196728422,"uuid":"679263783","full_name":"evilmartians/figma-polychrom","owner":"evilmartians","description":"Figma plugin for displaying the contrast level and font size recommendations according to the APCA method","archived":false,"fork":false,"pushed_at":"2025-07-21T15:27:03.000Z","size":1216,"stargazers_count":78,"open_issues_count":7,"forks_count":6,"subscribers_count":19,"default_branch":"main","last_synced_at":"2025-07-22T02:01:16.619Z","etag":null,"topics":["a11y","accessibility","apca","contrast","contrast-ratio","figma","figma-api","figma-plugin","figma-plugins"],"latest_commit_sha":null,"homepage":"https://www.figma.com/community/plugin/1281280685402026529/polychrom","language":"TypeScript","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/evilmartians.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}},"created_at":"2023-08-16T13:02:41.000Z","updated_at":"2025-07-19T09:22:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"cfb2249d-798f-4475-b0b7-c47b1314cdc8","html_url":"https://github.com/evilmartians/figma-polychrom","commit_stats":null,"previous_names":["evilmartians/figma-polychrom"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/evilmartians/figma-polychrom","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffigma-polychrom","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffigma-polychrom/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffigma-polychrom/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffigma-polychrom/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilmartians","download_url":"https://codeload.github.com/evilmartians/figma-polychrom/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilmartians%2Ffigma-polychrom/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266524981,"owners_count":23942849,"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-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":["a11y","accessibility","apca","contrast","contrast-ratio","figma","figma-api","figma-plugin","figma-plugins"],"created_at":"2024-11-14T22:16:55.502Z","updated_at":"2025-07-22T16:06:50.264Z","avatar_url":"https://github.com/evilmartians.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://evilmartians.com/devtools?utm_source=figma-plugin-polychrom\u0026utm_campaign=devtools-button\u0026utm_medium=github\"\u003e\u003cimg width=\"830\" alt=\"Polychrom—APCA Contrast Checker\" src=\"./images/github-header-polychrom.png\" /\u003e\u003c/a\u003e\n\n## How It Works:\n\n- Select a layer or text with a visible solid fill, and Polychrom will display the contrast level between the selection and an automatically detected layer background.\n- Select two layers with solid fills, and Polychrom will indicate the contrast between them.\n- Choose multiple layers, and Polychrom will provide a list of contrasts for each selected layer and its background.\n- Modify the color using the built-in color picker, and Polychrom will instantly adjust the contrast value.\n\n## Features\n\n- Displays the contrast level according to the APCA method.\n- Offers text size recommendations for regular (weight 400) and bold (weight 700) font styles, following the APCA contrast-to-font table.\n- Converts original colors to the OKLCH color model, facilitating easy copying of CSS codes to the clipboard. RGB and HEX formats are also available.\n\n## What is APCA?\n\nThe Accessible Perceptual Contrast Algorithm (APCA) is a novel method for calculating and predicting readability contrast. This model is specially optimized for ensuring accessible color visibility on self-illuminated RGB computer displays and devices. It also addresses the requirements of visually impaired users, focusing on improving visual readability.\n\nAPCA is a candidate contrast method for the forthcoming WCAG 3 and is concurrently evolving as the APCA Readability Criterion, an independent standard managed by Inclusive Reading Technologies.\n\nRead more: [APCA in a Nutshell](https://git.apcacontrast.com/documentation/APCA_in_a_Nutshell).\n\n## Installation\n\nClone the repository:\n\n```bash\ngit clone https://github.com/evilmartians/figma-polychrom.git\n```\n\nNavigate to the project directory:\n\n```bash\ncd figma-polychrom\n```\n\nInstall the dependencies:\n\n```bash\npnpm install\n```\n\n## Development\n\nRun the development server:\n\n```bash\npnpm dev\n```\n\n## Build\n\nBuild the plugin:\n\n```bash\npnpm build\n```\n\n## Testing the Plugin in Figma\n\n### Setting up the Plugin for Testing\n\n1. **Build the plugin** using `pnpm build` or `pnpm dev` to ensure the latest changes are included.\n2. **Open Figma Desktop** (the plugin development requires the desktop version, not the web version)\n3. **Import the plugin**:\n   - Go to **Menu → Plugins → Development → Import plugin from manifest...**\n   - Navigate to your project directory and select the `manifest.json` file\n   - The plugin will appear in your **Development** section under Plugins\n\n### Running the Plugin\n\n1. **Launch the plugin**:\n   - Go to **Menu → Plugins → Development → Polychrom**\n   - Or use the shortcut **Cmd/Ctrl + /** and search for \"Polychrom\"\n\n## Contributing\n\n- Fork the repository.\n- Create a new branch for your feature or bugfix.\n- Make your changes.\n- Push your changes and create a pull request.\n- We appreciate any contributions! Please make sure to test your code and adhere to our coding standards.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilmartians%2Ffigma-polychrom","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilmartians%2Ffigma-polychrom","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilmartians%2Ffigma-polychrom/lists"}