{"id":43724348,"url":"https://github.com/wayneashleyberry/css-color","last_synced_at":"2026-02-05T08:36:07.096Z","repository":{"id":57499564,"uuid":"119558469","full_name":"wayneashleyberry/css-color","owner":"wayneashleyberry","description":"Convert CSS color values into native Go image/color values, no dependencies.","archived":false,"fork":false,"pushed_at":"2020-07-13T12:55:49.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-14T06:40:42.694Z","etag":null,"topics":["color","colour","css","golang","web"],"latest_commit_sha":null,"homepage":"","language":"Go","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/wayneashleyberry.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}},"created_at":"2018-01-30T15:54:04.000Z","updated_at":"2020-06-03T10:03:34.000Z","dependencies_parsed_at":"2022-08-28T15:22:28.408Z","dependency_job_id":null,"html_url":"https://github.com/wayneashleyberry/css-color","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/wayneashleyberry/css-color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fcss-color","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fcss-color/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fcss-color/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fcss-color/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wayneashleyberry","download_url":"https://codeload.github.com/wayneashleyberry/css-color/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wayneashleyberry%2Fcss-color/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29117246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T05:31:32.482Z","status":"ssl_error","status_checked_at":"2026-02-05T05:31:29.075Z","response_time":65,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["color","colour","css","golang","web"],"created_at":"2026-02-05T08:36:05.153Z","updated_at":"2026-02-05T08:36:07.084Z","avatar_url":"https://github.com/wayneashleyberry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white)](https://pkg.go.dev/github.com/wayneashleyberry/css-color?tab=doc)\n![go](https://github.com/wayneashleyberry/css-color/workflows/go/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/wayneashleyberry/css-color)](https://goreportcard.com/report/github.com/wayneashleyberry/css-color)\n\n\u003e Convert CSS color values into native Go [image/color](https://golang.org/pkg/image/color) values.\n\nThe parser currently supports almost all values allowed by [the css spec](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value). Inlcuding 3, 4, 6 and 8 digit hex, rgb, rgba, hsl, hsla and keywords.\n\nRead more on [pkg.go.dev](https://pkg.go.dev/github.com/wayneashleyberry/css-color?tab=doc).\n\n### Installation\n\n```sh\ngo get github.com/wayneashleyberry/css-color\n```\n\n### Usage\n\n```go\npackage main\n\nimport \"github.com/wayneashleyberry/css-color/pkg/parser\"\n\nfunc main() {\n    p := parser.New()\n    col, _ := p.Convert(\"#bada55\")\n    fmt.Println(col)\n}\n```\n\n\u003csmall\u003e[Try in The Go Playground.](https://play.golang.org/p/NYFAJ7B-9D3)\u003c/small\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Fcss-color","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwayneashleyberry%2Fcss-color","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwayneashleyberry%2Fcss-color/lists"}