MyGit

pheralb/svgl

Fork: 410 Star: 2636 (更新于 2024-11-16 00:05:39)

license: MIT

Language: TypeScript .

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

最后发布版本: v4.1.0 ( 2024-01-26 20:44:30)

官方网址 GitHub网址

Discover  ✦  Request logo  ✦  Submit logo  ✦  Extensions  ✦  API  ✦  Contributing

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

🛠️ 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 20kb.
  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"
}

[!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 .env file in the root of the project with the following variables:
SVGL_API_REQUESTS = 1
UPSTASH_REDIS_URL = ""
UPSTASH_REDIS_TOKEN = ""

📦 Extensions

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

Extension Description Created by Link
svgls A CLI for easily adding SVG icons to your project. sujjeee GitHub Repository
SVGL for Figma Add svgs from svgl to your Figma project. quilljou Figma Plugin
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 Svgl Badge

✌️ Contributing

🔑 License

最近版本更新:(数据更新于 2024-08-31 14:51:08)

2024-01-26 20:44:30 v4.1.0

2023-12-18 07:18:43 v4.0.0

2023-03-20 19:39:48 v3.0.0

2022-06-29 02:09:07 v2.0.0

2022-03-03 23:01:40 v1.0.7

2022-02-19 01:33:55 v1.0.5

主题(topics):

hacktoberfest, logos, open-source, optimized, svelte, sveltekit, svg, svg-icons, svg-images, tailwindcss

pheralb/svgl同语言 TypeScript最近更新仓库

2024-11-25 06:53:04 clash-verge-rev/clash-verge-rev

2024-11-24 23:31:12 lobehub/lobe-chat

2024-11-24 06:05:47 RSSNext/Follow

2024-11-24 00:26:13 siyuan-note/siyuan

2024-11-23 21:18:28 MetaCubeX/metacubexd

2024-11-23 10:05:04 continuedev/continue