mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
📄 Update readme docs
This commit is contained in:
parent
a047575e69
commit
8a895cbb32
10
README.md
10
README.md
@ -68,7 +68,7 @@
|
|||||||
|
|
||||||
You will need:
|
You will need:
|
||||||
|
|
||||||
- [Node.js 16+ (recommended 18 LTS)](https://nodejs.org/en/).
|
- [Node.js 18+ (recommended 20 LTS)](https://nodejs.org/en/).
|
||||||
- [Git](https://git-scm.com/).
|
- [Git](https://git-scm.com/).
|
||||||
|
|
||||||
1. [Fork](https://github.com/pheralb/svgl/fork) this repository and clone it locally:
|
1. [Fork](https://github.com/pheralb/svgl/fork) this repository and clone it locally:
|
||||||
@ -97,7 +97,7 @@ pnpm install
|
|||||||
|
|
||||||
4. Go to the [**`src/data/svgs.ts`**](https://github.com/pheralb/svgl/blob/main/src/data/svgs.ts) and add the information about your logo, following the structure:
|
4. Go to the [**`src/data/svgs.ts`**](https://github.com/pheralb/svgl/blob/main/src/data/svgs.ts) and add the information about your logo, following the structure:
|
||||||
|
|
||||||
- If the logo is a solid color:
|
- **Simple logo**:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@ pnpm install
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- If the logo has logo + wordmark version:
|
- **Logo + wordmark** version:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -120,7 +120,7 @@ pnpm install
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- If the logo/wordmark has light and dark mode:
|
- **Logo + wordmark** & **light + dark mode**:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -141,7 +141,7 @@ pnpm install
|
|||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
>
|
>
|
||||||
> - The list of categories is here: [`src/types/categories.ts`](https://github.com/pheralb/svgl/blob/main/src/types/categories.ts). You can add a new category if you need it.
|
> - The list of categories is here: [`src/types/categories.ts`](https://github.com/pheralb/svgl/blob/main/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"]` (max 3 categories per logo).
|
> - You can add multiple categories to the same logo, for example: `"category": ["Social", "Design"]`.
|
||||||
|
|
||||||
And create a pull request with your logo 🚀.
|
And create a pull request with your logo 🚀.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user