{"id":16791947,"url":"https://github.com/metonym/svelte-codicons","last_synced_at":"2025-12-11T20:04:12.675Z","repository":{"id":37958794,"uuid":"401894327","full_name":"metonym/svelte-codicons","owner":"metonym","description":"VS Code Codicons as Svelte components","archived":false,"fork":false,"pushed_at":"2024-08-25T15:52:51.000Z","size":1109,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T11:34:46.256Z","etag":null,"topics":["codicons","icon","icon-library","svelte","svelte-components","vs-code"],"latest_commit_sha":null,"homepage":"https://metonym.github.io/svelte-codicons","language":"HTML","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/metonym.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-09-01T01:35:01.000Z","updated_at":"2024-08-25T15:52:33.000Z","dependencies_parsed_at":"2022-08-08T22:31:08.454Z","dependency_job_id":"fcc6c1cd-4f31-4ef2-bad7-d52d39ae256a","html_url":"https://github.com/metonym/svelte-codicons","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-codicons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-codicons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-codicons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metonym%2Fsvelte-codicons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metonym","download_url":"https://codeload.github.com/metonym/svelte-codicons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173517,"owners_count":20410298,"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":["codicons","icon","icon-library","svelte","svelte-components","vs-code"],"created_at":"2024-10-13T08:43:36.956Z","updated_at":"2025-12-11T20:04:12.637Z","avatar_url":"https://github.com/metonym.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svelte-codicons\n\n[![NPM][npm]][npm-url]\n\n\u003e [VS Code Codicons](https://github.com/microsoft/vscode-codicons) as Svelte components.\n\nThis zero-dependency library uses [svelvg](https://github.com/metonym/svelvg) to convert SVG files from the [@vscode/codicons](https://www.npmjs.com/package/@vscode/codicons) into Svelte components.\n\nTry it in the [Svelte REPL](https://svelte.dev/repl/f47568d489c34e8892da08273368744e).\n\n## Installation\n\n```bash\n# NPM\nnpm i -D svelte-codicons\n\n# pnpm\npnpm i -D svelte-codicons\n\n# Bun\nbun add -D svelte-codicons\n\n# Yarn\nyarn add -D svelte-codicons\n```\n\n## Usage\n\n### Basic\n\n```svelte\n\u003cscript\u003e\n  import { Add, Calendar, Edit } from \"svelte-codicons\";\n\u003c/script\u003e\n\n\u003cAdd /\u003e\n\u003cCalendar /\u003e\n\u003cEdit /\u003e\n```\n\nRefer to [ICON_INDEX.md](ICON_INDEX.md) for a list of supported icons.\n\n### Direct import\n\nUse the direct import for faster compiling during development.\n\n```svelte no-eval\n\u003cscript\u003e\n  import Add from \"svelte-codicons/lib/Add.svelte\";\n\u003c/script\u003e\n```\n\n## Using `svelte:component`\n\n```svelte\n\u003cscript\u003e\n  import * as icons from \"svelte-codicons\";\n\u003c/script\u003e\n\n{#each Object.entries(icons) as [icon, component]}\n  \u003cdiv\u003e\n    \u003csvelte:component this={component} /\u003e\n    {icon}\n  \u003c/div\u003e\n{/each}\n```\n\n### Custom size\n\n`$$restProps` are forwarded to the `svg` element.\n\nUse the `width` and `height` attributes to customize the icon size. The default is 16px.\n\n```svelte\n\u003cAdd width={36} height={36} /\u003e\n```\n\n### Custom color\n\nUse the `fill` attribute to specify a custom color.\n\n```svelte\n\u003cAdd fill=\"red\" /\u003e\n```\n\n## License\n\n[MIT](LICENSE)\n\n`vscode-codicons` is licensed as [CC-BY-4.0](https://github.com/microsoft/vscode-codicons/blob/main/LICENSE).\n\n[npm]: https://img.shields.io/npm/v/svelte-codicons.svg?color=%230066B8\u0026style=for-the-badge\n[npm-url]: https://npmjs.com/package/svelte-codicons\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetonym%2Fsvelte-codicons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetonym%2Fsvelte-codicons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetonym%2Fsvelte-codicons/lists"}