{"id":15379261,"url":"https://github.com/ducksoupdev/svg-example","last_synced_at":"2026-03-19T16:13:50.737Z","repository":{"id":77104499,"uuid":"100253224","full_name":"ducksoupdev/svg-example","owner":"ducksoupdev","description":"Sample SVG implementations","archived":false,"fork":false,"pushed_at":"2017-08-14T09:56:41.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-06T00:31:26.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/ducksoupdev.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-14T09:55:55.000Z","updated_at":"2017-08-14T09:56:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"32458e81-4467-4501-b2c6-8326435b4e78","html_url":"https://github.com/ducksoupdev/svg-example","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"7081e7feca79ef3cf8c5c785159aedfb32dbaff5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ducksoupdev/svg-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducksoupdev%2Fsvg-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducksoupdev%2Fsvg-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducksoupdev%2Fsvg-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducksoupdev%2Fsvg-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducksoupdev","download_url":"https://codeload.github.com/ducksoupdev/svg-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducksoupdev%2Fsvg-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30324433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T01:36:58.598Z","status":"online","status_checked_at":"2026-03-10T02:00:06.579Z","response_time":106,"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-10-01T14:18:39.354Z","updated_at":"2026-03-10T04:32:56.982Z","avatar_url":"https://github.com/ducksoupdev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SVG implementation examples\n\nThis repo contains sample HTML and CSS for implementing SVGs.\n\n## `img` tag\n\nJust as you would with any other image.\n\n```html\n\u003cimg src=\"freesample.svg\" width=\"354\" height=\"294\"\u003e\n```\n\n## CSS `background-image`\n\nIt's best not to base64 encode them as it this will block the loading of the rest of the styles while it downloads.\n\n```html\n\u003cspan id=\"sample\"\u003e\u003c/span\u003e\n```\n\n```css\n#sample {\n    background-image: url(freesample.svg);\n    background-size: contain;\n    width: 354px;\n    height: 294px;\n    display: inline-block;\n}\n```\n\n## `svg` tag\n\nThis can be used to embed an SVG fragment inside the current document. It has its own viewport and coordinate system.\n\n```html\n\u003csvg class=\"sample\" aria-hidden=\"true\"\u003e\u003cuse href=\"symbols.svg#sample\"\u003e\u003c/use\u003e\u003c/svg\u003e\n```\n\n```svg\n\u003csvg xmlns=\"http://www.w3.org/2000/svg\"\u003e\n    \u003csymbol id=\"sample\" viewBox=\"0 0 472 392\"\u003e\n        \u003cpath...\n    \u003c/symbol\u003e\n\u003c/svg\u003e\n```\n\n```css\nsvg.sample {\n    width: 354px;\n    height: 294px;\n    display: inline-block;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducksoupdev%2Fsvg-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducksoupdev%2Fsvg-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducksoupdev%2Fsvg-example/lists"}