{"id":13443174,"url":"https://github.com/rougier/svg-lib","last_synced_at":"2026-04-07T13:32:17.301Z","repository":{"id":37925015,"uuid":"370258498","full_name":"rougier/svg-lib","owner":"rougier","description":"Emacs SVG libraries for creatings tags, icons and bars","archived":false,"fork":false,"pushed_at":"2025-08-22T12:58:59.000Z","size":3305,"stargazers_count":362,"open_issues_count":12,"forks_count":32,"subscribers_count":11,"default_branch":"master","last_synced_at":"2026-03-03T01:13:21.536Z","etag":null,"topics":["emacs","library","lisp","svg"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rougier.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-05-24T07:01:57.000Z","updated_at":"2026-02-22T00:54:09.000Z","dependencies_parsed_at":"2024-01-16T18:11:38.038Z","dependency_job_id":"4e9f879f-ab62-47c4-a9f6-3c0ecda771dd","html_url":"https://github.com/rougier/svg-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rougier/svg-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rougier%2Fsvg-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rougier%2Fsvg-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rougier%2Fsvg-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rougier%2Fsvg-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rougier","download_url":"https://codeload.github.com/rougier/svg-lib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rougier%2Fsvg-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31515144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-07T03:10:19.677Z","status":"ssl_error","status_checked_at":"2026-04-07T03:10:13.982Z","response_time":105,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["emacs","library","lisp","svg"],"created_at":"2024-07-31T03:01:57.075Z","updated_at":"2026-04-07T13:32:17.284Z","avatar_url":"https://github.com/rougier.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"\n* SVG Library\n\nsvg-lib is an Emacs library that allows to create and display various\nSVG objects, namely tags, icons, buttons, progress bars, progress pies\nand dates. Each object is guaranteed to fit nicely in a text buffer\nensuring width is a multiple of character width and height a multiple\nof character height.\n\n* Installation\n\n#+begin_src elisp\nM-x package-install RET svg-lib RET\n#+end_src\n\n* Quick start\n\nFor the impatient, evaluate the following expression:\n\n#+begin_src emacs-lisp\nM-: (insert-image (svg-lib-tag \"TODO\"))\n#+end_src\n\nThis should insert a SVG tag displaying \"TODO\" in a rounded box whose\nsize is exactly 5 characters wide (because of padding).\n\n* Usage\n\n** Objects\n\n- =svg-lib-tag LABEL=\n- =svg-lib-icon ICON=\n- =svg-lib-icon+tag ICON LABEL=\n- =svg-lib-button LABEL HOOK=\n- =svg-lib-progress-bar VALUE=\n- =svg-lib-progress-pie VALUE=\n- =svg-lib-date DATE=\n  \n** Styling\n\nEach library object can be styled using a style property list that\ndefines:\n\n- foreground color\n- background color\n- internal padding (tag and icon)\n- external margin (in char)\n- stroke width (in pixels)\n- corner radius (in pixels) for the rounded box\n- horizontal alignment (0 to 1) inside margins\n- width (in characters)\n- height as a scale of line height\n- scale (for icon)\n- ascent (for text)\n- crop-left to crop object on the left\n- crop-right to  crop object on the right\n- collection to use for icon \n- font family\n- font size\n- font weight\n\n* Icon repositories\n\nIcons can be created by parsing remote collections whose license are\ncompatibles with GNU Emacs. The default size of an icon is exactly 2x1\ncharacters such that it can be inserted inside a text without\ndisturbing alignment.\n\nEach icon is cached locally to speed-up loading the next time you use\nit. If for some reason the cache is corrupted you can force reload\nusing the svg-icon-get-data function. If you want to add new\ncollections (i.e. URL), make sure the icons are monochrome, that their\nsize is consistent and that they include a 'viewBox' node.\n\n** [[https://pictogrammers.com/library/mdi/][Material Design]] (7447 icons)\n\nOpen-source iconography for designers and developers.\n\n- Version: 7.4.47 (December 2023)\n- Licence: Apache 2.0 \n- Number of icons: 7447\n- Sources: https://github.com/Templarian/MaterialDesign\n- Collection: =material=\n\n** [[https://simpleicons.org/][Simple icons]] (2926 icons)\n\nOver 2900 Free SVG icons for popular brands.\n\n- Version: 10.4.0 (December 2023)\n- Licence: CC0-1.0 license\n- Number of icons: 2926\n- Sources: https://github.com/simple-icons/simple-icons\n- Collection: =simple=\n\n** [[https://icons.getbootstrap.com/][Bootstrap]] (\u003e 2000 icons)\n\nOfficial open source SVG icon library for Bootstrap.\n \n- Version: 1.11.2 (December 2023)\n- Licence: MIT License\n- Number of icons: \u003e 2000\n- Sources: https://github.com/twbs/icons\n- Collection: =bootstrap=\n\n** [[https://boxicons.com/][Boxicons]] (1634 icons)\n\nSimple Open Source icons carefully crafted for designers \u0026 developers.\n\n- Version: 2.1.4 (September 2022)\n- Licence: MIT License\n- Number of icons: 1634\n- Sources: https://github.com/atisawd/boxicons.\n- Collection: =boxicons=\n  \n** [[https://primer.style/octicons][Octicons]] (322 icons)\n\nOcticons are a set of SVG icons built by GitHub for GitHub.\n\n- Version: 19.8.0 (September 2023)\n- Licence: MIT License\n- Number of icons: 322\n- Sources: https://github.com/primer/octicons\n- Collection: =octicons=\n\n** [[https://www.figma.com/community/file/768673354734944365/visual-studio-code-icons][VSCode]] (209 icons)\n\nIcons used in Visual Studio Code.\n\n- Version: (September 2020)\n- Licence: CC-BY 4.0\n- Number of icons: 209\n- Sources: https://github.com/microsoft/vscode-icons\n- Collection: =vscode=\n   \n* Screenshots\n\n[[file:screenshot.png]]\n\n[[file:screenshot-2.png]]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frougier%2Fsvg-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frougier%2Fsvg-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frougier%2Fsvg-lib/lists"}