pheralb / svgl
- понедельник, 18 декабря 2023 г. в 00:00:15
🧩 A beautiful library with SVG logos. Built with Sveltekit & Tailwind CSS.
You will need:
git clone git@github.com:pheralb/svgl.git
# with npm:
npm install
# with pnpm:
pnpm install
# with ultra:
ultra install
# with yarn:
yarn install
Go to the static/library
folder and add your .svg
logo. Remember to optimize SVG for web use, you can use SVGOMG.
Go to the src/data/svgs.ts
and add the information about your logo, following the structure:
{
"title": "Title",
"category": "Category",
"route": "/library/your_logo.svg",
"url": "Website"
},
or to support a different logo for light and dark themes:
{
"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 🚀.
SVG files can also be accessed directly from the terminal using svgls
CLI.
If you are using yarn or npm, run this command:
npx svgls add
Or if you are using pnpm, run this command:
pnpm dlx svgls add
For more details on installing and using svgls CLI, check out the GitHub repository: https://github.com/sujjeee/svgls