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)
🛠️ Stack
- Sveltekit - Web development, streamlined.
- Typescript - JavaScript with syntax for types.
- mdsvex - Markdown for Svelte apps.
- Shiki - A beautiful Syntax Highlighter.
- Tailwindcss - A utility-first CSS framework for rapidly building custom designs.
- bits-ui - A collection of headless components for Svelte.
-
clsx + tailwind-merge inspired by shadcn/ui - A tiny utility for constructing
className
strings conditionally. - Prettier + prettier-plugin-tailwindcss - An opinionated code formatter.
- Lucide Icons + phosphor-svelte - A clean and friendly icons libraries.
- svelte-sonner - An opinionated toast component for Svelte.
- @svgr/core - Node.js utility to transform SVGs into React components.
- @upstash/redis + @upstash/ratelimit - Serverless Redis for developers.
- Vitest - Blazing Fast Unit Test Framework.
🚀 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:
- Fork this repository and clone it locally:
git clone git@github.com:your_username/svgl.git
- Install dependencies:
# Install pnpm globally if you don't have it:
npm install -g pnpm
# and install dependencies:
pnpm install
- 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.
- 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 🚀.
- (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
- MIT.
最近版本更新:(数据更新于 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