svgl
A beautiful library with SVG logos. Built with Sveltekit & Tailwind CSS.
README
svgl
🛠️ Stack
- [Sveltekit](https://kit.svelte.dev/) - Web development, streamlined.
- [Typescript](https://www.typescriptlang.org/) - JavaScript with syntax for types.
- [Tailwindcss](https://tailwindcss.com/) - A utility-first CSS framework for rapidly building custom designs.
- [Prettier](https://prettier.io/) + prettier-plugin-tailwindcss - An opinionated code formatter.
- [phosphor-svelte](https://github.com/haruaki07/phosphor-svelte) - A clean and friendly icon family for Svelte.
- [svelte-sonner](https://github.com/wobsoriano/svelte-sonner) - An opinionated toast component for Svelte.
- [Vitest](https://vitest.dev/) - Blazing Fast Unit Test Framework.
🚀 Getting Started
You will need:
- Git.
1. Clone or fork this repository:
- ```bash
- git clone git@github.com:pheralb/svgl.git
- ```
2. Install dependencies with your favorite package manager:
- ```bash
- # with npm:
- npm install
- # with pnpm:
- pnpm install
- # with ultra:
- ultra install
- # with yarn:
- yarn install
- ```
3. Go to the [static/library](https://github.com/pheralb/svgl/blob/main/static/library) folder and add your .svg logo. Remember to optimize SVG for web use, you can use SVGOMG.
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:
- ```json
- {
- "title": "Title",
- "category": "Category",
- "route": "/library/your_logo.svg",
- "url": "Website"
- },
- ```
or to support a different logo for light and dark themes:
- ```json
- {
- "title": "Title",
- "category": "Category",
- "route": {
- "light": "/library/your_logo_light.svg",
- "dark": "/library/your_logo_dark.svg"
- },
- "url": "Website"
- },
- ```
And create a pull request with your logo 🚀.
✌️ Contributing
🔑 License
- MIT.