Skip to content
/ svgl Public

🧩 A beautiful library with SVG logos. Built with Sveltekit & Tailwind CSS.

License

Notifications You must be signed in to change notification settings

pheralb/svgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9c6918c Β· Apr 20, 2025
Apr 8, 2025
Dec 13, 2023
Apr 8, 2025
Apr 20, 2025
Apr 20, 2025
Apr 15, 2025
Mar 14, 2023
Sep 23, 2024
Mar 14, 2023
Mar 14, 2023
Mar 20, 2023
Apr 15, 2025
Aug 26, 2024
Sep 23, 2024
Apr 15, 2025
Apr 15, 2025
Apr 20, 2024
Sep 23, 2024
Apr 1, 2025
Mar 5, 2025
Dec 23, 2023
Apr 20, 2024
Mar 15, 2023

Repository files navigation

Explore  βœ¦  Request logo  βœ¦  Submit logo  βœ¦  Extensions  βœ¦  API  βœ¦  Contributing

Svelte Badge Hono Badge Svelte Badge Build Status GitHub stars GitHub forks GitHub issues GitHub PRs

πŸ“¦ Extensions

A list of extensions that use the svgl API, created by the community:

Extension Description Created by Link
SVGL CLI A CLI for easily adding SVG icons to your project. sujjeee GitHub Repository
SVGL for React An open-source NPM package that offers a SVGL Logos for React. ridemountainpig GitHub Repository
SVGL for Figma Add svgs from svgl to your Figma project. quilljou Figma Plugin
SVGL for PowerToys Search & copy SVG logos in PowerToys Run. SameerJS6 Website
SVGL for Raycast Search SVG logos via svgl. 1weiho Raycast Store
SVGL for VSCode SVGL directly in your VSCode. girlazote VSCode Marketplace
SVGL Badge A beautiful badges with svgl SVG logos. ridemountainpig Website
Magic AI extension for Cursor & other IDEs serafimcloud Website

πŸ› οΈ Stack

πŸš€ Getting Started

Important

Before submitting the SVG, make sure that you have permission or that the license of the SVG allows you to add it to svgl. If you are not sure, please contact the company or author.

You will need:

  1. Fork this repository and clone it locally:
git clone git@github.com:your_username/svgl.git
  1. Install dependencies:
# Install pnpm globally if you don't have it:
npm install -g pnpm

# and install dependencies:
pnpm install
  1. Go to the static/library folder and add your .svg logo.

Warning

  • Remember to optimize SVG for web, you can use SVGOMG.
  • When you optimize the SVG, make sure that the viewBox is not removed.
  • The size limit for each .svg is 21kb.
  1. Go to the src/data/svgs.ts and add the information about your logo, following the structure:
  • Simple logo:
{
  "title": "Title",
  "category": "Category",
  "route": "/library/your_logo.svg",
  "url": "Website"
}
  • Logo + wordmark version:
{
  "title": "Title",
  "category": "Category",
  "route": "/library/your_logo.svg",
  "wordmark": "/library/your_logo_wordmark.svg",
  "url": "Website"
}
  • Logo + wordmark & light + dark mode:
{
  "title": "Title",
  "category": "Category",
  "route": {
    "light": "/library/your_logo_light.svg",
    "dark": "/library/your_logo_dark.svg"
  },
  "wordmark": {
    "light": "/library/your_wordmark-logo_light.svg",
    "dark": "/library/your_wordmark-logo_dark.svg"
  },
  "url": "Website"
}
  • Add brand guidelines:
{
  "title": "Title",
  "category": "Category",
  "route": "/library/your_logo.svg",
  "wordmark": "/library/your_logo_wordmark.svg",
  "brandUrl": "https://assets.website.com/brand-guidelines",
  "url": "Website"
}

Note

  • The list of categories is here: src/types/categories.ts. You can add a new category if you need it.
  • You can add multiple categories to the same logo, for example: "category": ["Social", "Design"].

And create a pull request with your logo πŸš€.

  1. (Optional) If you want to run the API locally, you will need to create a .dev.vars file in the /api-routes folder with the following variables:
SVGL_API_REQUESTS = 1
UPSTASH_REDIS_URL = ""
UPSTASH_REDIS_TOKEN = ""

✌️ Contributing

πŸ”‘ License