Skip to content

EFEELE/svgl

 
 

Repository files navigation

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 Framer Our SVGL plugin for Framer simplifies the use of SVG-based colourful logos. Easily import and easy to use. Krishna Singh Framer Marketplace
SVGL for React An open-source NPM package that offers a SVGL Logos for React. ridemountainpig GitHub Repository
SVGL for Vue An open-source NPM package that offers a SVGL Logos for Vue. selemondev GitHub Repository
SVGL for Svelte An open-source NPM package that offers a SVGL Logos for Svelte. selemondev 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
SVGL for PowerShell PowerShell extension to quickly get svgl logos anywhere Bart Spaans GitHub Repository
SVGL for Flow Launcher Search & copy SVG logos in Flow Launcher AF_Askar GitHub Repository

🛠️ Stack

🚀 Getting Started

Important

Before submitting an SVG, ensure you have the right to use it and that its license permits adding it to svgl. If you are uncertain, please contact the author or the company.

You will need:

  1. Fork this repository and clone it locally:
git clone [email protected]: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'
}
  • Simple logo + wordmark:
{
  title: 'Title',
  category: 'Category',
  route: '/library/your_logo.svg',
  wordmark: '/library/your_logo_wordmark.svg',
  url: 'Website'
}
  • Logo (light & dark mode):
{
  title: 'Title',
  category: 'Category',
  route: {
    light: '/library/your_logo_light.svg',
    dark: '/library/your_logo_dark.svg'
  },
  url: 'Website'
}
  • Wordmark (light & dark mode):
{
  title: 'Title',
  category: 'Category',
  wordmark: {
    light: '/library/your_logo_light.svg',
    dark: '/library/your_logo_dark.svg'
  },
  url: 'Website'
}
  • Full example with all properties:
{
  title: 'Title',
  category: 'Category',
  route: {
    light: '/library/your_logo_light.svg',
    dark: '/library/your_logo_dark.svg'
  },
  wordmark: {
    light: '/library/your_logo_wordmark_light.svg',
    dark: '/library/your_logo_wordmark_dark.svg'
  },
  url: 'Website'
}
  • Add brand guidelines (where to find the images, how to use it, colors, fonts...):
{
  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 ✨.

🧑‍🚀 Getting Started with API

Warning

This section is how to run API locally. For all API endpoints, check the API documentation.

  1. Go to the api-routes folder and install the dependencies with pnpm:
cd api-routes
pnpm install
  1. Create a .dev.vars env file in the api-routes folder with the following variables:
# .dev.vars
SVGL_API_REQUESTS = 1
UPSTASH_REDIS_URL = ""
UPSTASH_REDIS_TOKEN = ""
  1. Run the development server:
pnpm dev

✌️ Contributing

🔑 License

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 50.9%
  • Svelte 47.0%
  • Other 2.1%