{"id":48638735,"url":"https://github.com/harijohnson/cssvg-icon","last_synced_at":"2026-04-25T18:06:58.564Z","repository":{"id":349936000,"uuid":"1204579474","full_name":"Harijohnson/cssvg-icon","owner":"Harijohnson","description":"You can find the animated icons in this repository.","archived":false,"fork":false,"pushed_at":"2026-04-12T04:06:54.000Z","size":1141,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T06:23:48.365Z","etag":null,"topics":["animated-icons","animation-css","component","css","icons","keyframe-animation","keyframes","svg","svg-animations","svg-icons","tailwindcss"],"latest_commit_sha":null,"homepage":"https://icon.cssvg.com","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/Harijohnson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-08T06:17:52.000Z","updated_at":"2026-04-12T04:06:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Harijohnson/cssvg-icon","commit_stats":null,"previous_names":["harijohnson/cssvg-icon"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Harijohnson/cssvg-icon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harijohnson%2Fcssvg-icon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harijohnson%2Fcssvg-icon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harijohnson%2Fcssvg-icon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harijohnson%2Fcssvg-icon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harijohnson","download_url":"https://codeload.github.com/Harijohnson/cssvg-icon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harijohnson%2Fcssvg-icon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31787263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"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":["animated-icons","animation-css","component","css","icons","keyframe-animation","keyframes","svg","svg-animations","svg-icons","tailwindcss"],"created_at":"2026-04-09T14:12:02.301Z","updated_at":"2026-04-25T18:06:58.558Z","avatar_url":"https://github.com/Harijohnson.png","language":"TypeScript","readme":"# cssvg-icon\n\nAnimated SVG icon library for React and Next.js.\n\n**[icon.cssvg.com](https://icon.cssvg.com)** · [npm](https://www.npmjs.com/package/cssvg-icons) · [GitHub](https://github.com/Harijohnson/cssvg-icon) · [Contributing](CONTRIBUTING.md)\n\n---\n\n## Installation\n\n```bash\nnpm install cssvg-icons\n# or\nbun add cssvg-icons\n```\n\n## Usage\n\n### Named imports (tree-shakeable)\n\n```tsx\nimport { Heart, Settings, ArrowRight } from \"cssvg-icons\";\n\nexport default function App() {\n  return \u003cHeart color=\"#ffffff\" strokeWidth={2} size={40} /\u003e;\n}\n```\n\n### Direct import\n\n```tsx\nimport HeartIcon from \"cssvg-icons/icons/heart/heart\";\n```\n\n## Props\n\nAll icons accept the same props:\n\n| Prop | Type | Default | Description |\n| --- | --- | --- | --- |\n| `color` | `string` | `\"currentColor\"` | Stroke color |\n| `strokeWidth` | `number` | `2` | Stroke width (0.5–4) |\n| `size` | `number` | `40` | Width and height in px |\n| `className` | `string` | `\"\"` | Extra CSS classes |\n\n## Animation Control\n\nIcons animate continuously by default. Use `withIconControls` to add `animated` and `hoverToAnimate` props without modifying the original components:\n\n```tsx\nimport { Heart, withIconControls } from \"cssvg-icons\";\n\nconst ControlledHeart = withIconControls(Heart);\n\n// Paused\n\u003cControlledHeart color=\"#ffffff\" size={40} animated={false} /\u003e\n\n// Plays only on hover\n\u003cControlledHeart color=\"#ffffff\" size={40} hoverToAnimate /\u003e\n```\n\n| Prop | Type | Default | Description |\n| --- | --- | --- | --- |\n| `animated` | `boolean` | `true` | `false` freezes the animation |\n| `hoverToAnimate` | `boolean` | `false` | Starts paused, plays only while hovered |\n\n## Available Icons\n\nBrowse the full, always-up-to-date icon library at **[icon.cssvg.com](https://icon.cssvg.com)**.\n\nAll icons are named exports from `cssvg-icons`. Import any icon by its PascalCase name:\n\n```tsx\nimport { ArrowRight, Heart, BellRing } from \"cssvg-icons\";\n```\n\n## Local Development\n\n```bash\ngit clone https://github.com/Harijohnson/cssvg-icon.git\ncd cssvg-icon\nnpm install\nnpm run dev\n```\n\nOpen [http://localhost:3000](http://localhost:3000).\n\n## Project Structure\n\n```\nicons/\n  [slug]/\n    [slug].tsx   # Animated React component\n    [slug].json  # Metadata \u0026 attribution\n    [slug].svg   # Raw SVG source\n```\n\n## Contributing\n\nContributions are welcome — new icons, bug fixes, and docs improvements.\n\n- Read the [Contributing Guide](https://icon.cssvg.com/docs/contributing) for the full guide\n- [Open an issue](https://github.com/Harijohnson/cssvg-icon/issues)\n- [Browse the icon explorer](https://icon.cssvg.com) to see what's already there\n\n## License\n\n[MIT](LICENSE) © [Hari](https://github.com/Harijohnson)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharijohnson%2Fcssvg-icon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharijohnson%2Fcssvg-icon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharijohnson%2Fcssvg-icon/lists"}