{"id":20572521,"url":"https://github.com/nucliweb/svg-snippets","last_synced_at":"2026-03-09T19:03:37.849Z","repository":{"id":18904267,"uuid":"22122701","full_name":"nucliweb/SVG-Snippets","owner":"nucliweb","description":null,"archived":false,"fork":false,"pushed_at":"2014-07-23T07:07:31.000Z","size":137,"stargazers_count":0,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T21:16:47.212Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"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/nucliweb.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}},"created_at":"2014-07-22T22:12:10.000Z","updated_at":"2019-06-04T18:31:46.000Z","dependencies_parsed_at":"2022-08-05T01:15:28.826Z","dependency_job_id":null,"html_url":"https://github.com/nucliweb/SVG-Snippets","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucliweb%2FSVG-Snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucliweb%2FSVG-Snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucliweb%2FSVG-Snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nucliweb%2FSVG-Snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nucliweb","download_url":"https://codeload.github.com/nucliweb/SVG-Snippets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242187993,"owners_count":20086267,"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","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-16T05:21:06.841Z","updated_at":"2025-12-03T19:03:07.284Z","avatar_url":"https://github.com/nucliweb.png","language":null,"readme":"SVG-Snippets\n============\n\nType the snippet shortcode and then press `Tab` to complete the snippet.\n\nThe snippets are listed below in alphabetical order. The `'$1'` indicates the position of the caret/s. Some snippets have been set up so that pressing Tab jumps the caret/s to the next predefined spot. It's a little hard to explain, but any snippet that has a `$1/$2/$3/etc. uses this technique.\n\n\n###circle\n\n```html\n\u003ccircle r=\"$1\" cx=\"$2\" cy=\"$3\" fill=\"$4\" stroke=\"$5\" stroke-width=\"$6\"/\u003e\n```\n\n###circle3\n\n```html\n\u003ccircle r=\"$1\" cx=\"$2\" cy=\"$3\" fill=\"$4\" stroke=\"$5\" stroke-width=\"$6\"/\u003e\n\u003ccircle r=\"$1\" cx=\"$2\" cy=\"$3\" fill=\"$4\" stroke=\"$5\" stroke-width=\"$6\"/\u003e\n\u003ccircle r=\"$1\" cx=\"$2\" cy=\"$3\" fill=\"$4\" stroke=\"$5\" stroke-width=\"$6\"/\u003e\n```\n\n###circleu\n\n```html\n\u003cdefs\u003e\n\t\u003ccircle id=\"$1\" r=\"$2\" cx=\"$3\" cy=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n\u003c/defs\u003e\n\n\u003cuse xlink:href=\"#$8\"/\u003e\n\u003cuse xlink:href=\"#$8\" x=\"$9\" y=\"$10\"/\u003e\n```\n\n###clippath\n\n```html\n\u003cdefs\u003e\n\t\u003cclipPath id=\"$1\"\u003e\n\t\t$2\n\t\u003c/clipPath\u003e\n\u003c/defs\u003e\n```\n\n###defsuse\n\n```html\n\u003cdefs\u003e\n\n\u003c/defs\u003e\n\n\u003cuse xlink:href=\"#$1\"/\u003e\n\u003cuse xlink:href=\"#$1\" x=\"$2\" y=\"$3\"/\u003e\n```\n\n###ellipse\n\n```html\n\u003cellipse rx=\"$1\" ry=\"$2\" cx=\"$3\" cy=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n```\n\n###ellipse3\n\n```html\n\u003cellipse rx=\"$1\" ry=\"$2\" cx=\"$3\" cy=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n\u003cellipse rx=\"$1\" ry=\"$2\" cx=\"$3\" cy=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n\u003cellipse rx=\"$1\" ry=\"$2\" cx=\"$3\" cy=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n```\n\n###ellipseu\n\n```html\n\u003cdefs\u003e\n\t\u003cellipse id=\"$1\" rx=\"$2\" ry=\"$3\" cx=\"$4\" cy=\"$5\" fill=\"$6\" stroke=\"$7\" stroke-width=\"$8\"/\u003e\n\u003c/defs\u003e\n\n\u003cuse xlink:href=\"#$9\" /\u003e\n\u003cuse xlink:href=\"#$9\" x=\"$10\" y=\"$11\"/\u003e\n```\n\n###group\n\n```html\n\u003cg id=\"$1\"\u003e\n\n\t$2\n\n\u003c/g\u003e\n```\n\n###line\n\n```html\n\u003cline x1=\"$1\" y1=\"$2\" x2=\"$3\" y2=\"$4\" stroke=\"$5\" stroke-width=\"$6\"/\u003e\n```\n\n###line\n\n```html\n\u003cline x1=\"$1\" y1=\"$2\" x2=\"$3\" y2=\"$4\" stroke=\"$5\" stroke-width=\"$6\"/\u003e\n```\n\n###lineu\n\n```html\n\u003cdefs\u003e\n\t\u003cline x1=\"$1\" y1=\"$2\" x2=\"$3\" y2=\"$4\" stroke=\"$5\" stroke-width=\"$6\"/\u003e\n\u003c/defs\u003e\n\n\u003cuse xlink:href=\"#$7\" /\u003e\n\u003cuse xlink:href=\"#$7\" x=\"$8\" y=\"$9\"/\u003e\n```\n\n###lineargradient\n\n```html\n\u003clinearGradient id=\"$1\" gradientUnits=\"objectBoundingBox\"\u003e\n\t\u003cstop offset=\"$2\" stop-color=\"$3\"/\u003e\n\t\u003cstop offset=\"$4\" stop-color=\"$5\"/\u003e\n\u003c/linearGradient\u003e\n```\n\n###matrix\n\n```html\ntransform=\"matrix($1 $2 $3 $4 $5 $6)\"\n```\n\n###path\n\n```html\n\u003cpath d=\"$1\" stroke-width=\"$2\" stroke=\"$3\" fill=\"$4\"/\u003e\n```\n\n###pattern\n\n```html\n\u003cdefs\u003e\n\t\u003cpattern id=\"$1\" width=\"$2\" height=\"$3\" patternUnits=\"userSpaceOnUse\"\u003e\n\t\t$4\n\t\u003c/pattern\u003e\n\u003c/defs\u003e\n```\n\n###polygon\n\n```html\n\u003cpolygon points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n```\n\n###polygon3\n\n```html\n\u003cpolygon points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n\u003cpolygon points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n\u003cpolygon points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n```\n\n###polygonu\n\n```html\n\u003cpolygon points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n\u003cpolygon points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n\u003cpolygon points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n```\n\n###polyline\n\n```html\n\u003cpolyline points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n```\n\n###polyline3\n\n```html\n\u003cpolyline points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n\u003cpolyline points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n\u003cpolyline points=\"$1\" fill=\"$2\" stroke=\"$3\" stroke-width=\"$4\"/\u003e\n```\n\n###polylineu\n\n```html\n\u003cdefs\u003e\n\t\u003cpolyline id=\"$1\" points=\"$2\" fill=\"$3\" stroke=\"$4\" stroke-width=\"$5\"/\u003e\n\u003c/defs\u003e\n\n\u003cuse xlink:href=\"#$6\"/\u003e\n\u003cuse xlink:href=\"#$6\" x=\"$7\" y=\"$8\"/\u003e\n```\n\n###radialgradient\n\n```html\n\u003cradialGradient id=\"$1\" gradientUnits=\"objectBoundingBox\"\u003e\n\t\u003cstop offset=\"$2\" stop-color=\"$3\"/\u003e\n\t\u003cstop offset=\"$4\" stop-color=\"$5\"/\u003e\n\u003c/radialGradient\u003e\n```\n\n###rect\n\n```html\n\u003crect x=\"$1\" y=\"$2\" width=\"$3\" height=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n```\n\n###rect3\n\n```html\n\u003crect x=\"$1\" y=\"$2\" width=\"$3\" height=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n\u003crect x=\"$1\" y=\"$2\" width=\"$3\" height=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n\u003crect x=\"$1\" y=\"$2\" width=\"$3\" height=\"$4\" fill=\"$5\" stroke=\"$6\" stroke-width=\"$7\"/\u003e\n```\n\n###rectu\n\n```html\n\u003cdefs\u003e\n\t\u003crect id=\"$1\" x=\"$2\" y=\"$3\" width=\"$4\" height=\"$5\" fill=\"$6\" stroke=\"$7\" stroke-width=\"$8\"/\u003e\n\u003c/defs\u003e\n\n\u003cuse xlink:href=\"#$9\"/\u003e\n\u003cuse xlink:href=\"#$9\" x=\"$10\" y=\"$11\"/\u003e\n```\n\n###rotate\n\n```html\ntransform=\"rotate($1)\"\n```\n\n###scalable\n\n```html\n\u003csvg xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"\n\t\t\tviewBox=\"$1\" width=\"$2\" height=\"$3\" aria-labelledby=\"title desc\"\u003e\n\n\t\t\t\t\u003ctitle id=\"title\"\u003e$4\u003c/title\u003e\n                \u003cdesc id=\"desc\"\u003e$5\u003c/desc\u003e\n\n\u003c/svg\u003e\n```\n\n###scalableu\n\n```html\n\u003csvg xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns=\"http://www.w3.org/2000/svg\"\n\t\t\tviewBox=\"$1\" width=\"$2\" height=\"$3\" aria-labelledby=\"title desc\"\u003e\n\n\t\t\t\t\u003ctitle id=\"title\"\u003e$4\u003c/title\u003e\n                \u003cdesc id=\"desc\"\u003e$5\u003c/desc\u003e\n\n                \u003cdefs\u003e\n\n\n\n                \u003c/defs\u003e\n\n\n                \u003cuse xlink:href=\"#\" x=\"\" y=\"\"/\u003e\n\n\u003c/svg\u003e\n```\n\n\n###skewX\n\n```html\ntransform=\"skewX($1)\"\n```\n\n###skewY\n\n```html\ntransform=\"skewY($1)\"\n```\n\n###symbol\n\n```html\n\u003csymbol id=\"$1\"\u003e\n\n\u003c/symbol\u003e\n\u003cuse xlink:href=\"#$1\"/\u003e\n\u003cuse xlink:href=\"#$1\" x=\"$2\" y=\"$3\"/\u003e\n```\n\n###text\n\n```html\n\u003ctext x=\"$1\" y=\"$2\" fill=\"$3\"\u003e$4\u003c/text\u003e\n```\n\n###translate\n\n```html\ntransform=\"translate($1)\"\n```\n\n###tspan\n\n```html\n\u003ctspan fill=\"$1\" x=\"$2\" y=\"$3\"\u003e$4\u003c/tspan\u003e\n```\n\n###use\n\n```html\n\u003cuse xlink:href=\"#$1\" x=\"$2\" y=\"$3\"/\u003e\n```\n\n###use3\n\n```html\n\u003cuse xlink:href=\"#$1\"/\u003e\n\u003cuse xlink:href=\"#$1\" x=\"$2\" y=\"$3\"/\u003e\n\u003cuse xlink:href=\"#$1\" x=\"$4\" y=\"$5\"/\u003e\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucliweb%2Fsvg-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnucliweb%2Fsvg-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnucliweb%2Fsvg-snippets/lists"}