{"id":20410902,"url":"https://github.com/mintlu8/parse-color","last_synced_at":"2026-06-08T10:02:52.779Z","repository":{"id":200009510,"uuid":"704942952","full_name":"mintlu8/parse-color","owner":"mintlu8","description":"A crate that provides conversion from CSS color names or TailwindCSS classes to RGBA colors, in the form of [u8; 4].","archived":false,"fork":false,"pushed_at":"2023-10-15T10:06:31.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-19T21:18:35.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/mintlu8.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}},"created_at":"2023-10-14T15:21:46.000Z","updated_at":"2023-10-14T15:35:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"4cba667c-c3cb-40d3-81fa-0eda1f54a7cd","html_url":"https://github.com/mintlu8/parse-color","commit_stats":null,"previous_names":["mintlu8/parse-color"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mintlu8/parse-color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintlu8%2Fparse-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintlu8%2Fparse-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintlu8%2Fparse-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintlu8%2Fparse-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mintlu8","download_url":"https://codeload.github.com/mintlu8/parse-color/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mintlu8%2Fparse-color/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34057158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"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":"2024-11-15T05:49:00.732Z","updated_at":"2026-06-08T10:02:52.764Z","avatar_url":"https://github.com/mintlu8.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse-color\n\nA crate that provides conversion from CSS color names or TailwindCSS classes to RGBA colors, in the form of [u8; 4].\n\n## Examples\n\n```rust\nassert_eq!(parse_color::parse(\"Red\"), Some([255, 0, 0, 255]));\nassert_eq!(parse_color::parse(\"Transparent\"), Some([0, 0, 0, 0]));\nassert_eq!(parse_color::parse(\"light coral\"), Some([240, 128, 128, 255]));\nassert_eq!(parse_color::parse(\"Rebecca-Purple\"), Some([102, 51, 153, 255]));\n\n// note the 0 value is only allowed on black/white/transparent\nassert_eq!(parse_color::parse_tailwind(\"white\", 0), Some([255, 255, 255, 255]));\nassert_eq!(parse_color::parse_tailwind(\"sky\", 400), Some([56, 189, 248, 255]));\nassert_eq!(parse_color::parse_tailwind(\"fuchsia\", 900), Some([112, 26, 117, 255]));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintlu8%2Fparse-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmintlu8%2Fparse-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmintlu8%2Fparse-color/lists"}