The free-icons set is a collection of over 23,000 freely available icons for various design projects.
This repository contains scripts to port the entire free-icons set to Svelte and generates npm packages to be used in your Svelte projects.
The free-icons contains 23661 icons grouped in the following way:
brand
iconsthin
iconslight
iconsregular
iconssolid
iconssharp light
iconssharp regular
iconssharp solid
iconsThe Svelte packages are named accordingly:
The name of Svelte Icons (components) is based on original icon's name according this simple rule:
Let's see few examples:
Particular attention should be put to icons which start with a digit:
Pretty obvious !!! :)
npm i -D svelte-free-icons-brands
npm i -D svelte-free-icons-thin
npm i -D svelte-free-icons-light
npm i -D svelte-free-icons-regular
npm i -D svelte-free-icons-solid
npm i -D svelte-free-icons-sharp-light
npm i -D svelte-free-icons-sharp-regular
npm i -D svelte-free-icons-sharp-solid
<script lang="ts">
import { Github } from 'svelte-free-icons-brands';
import { Wifi } from 'svelte-free-icons-thin';
import { SquareParking } from 'svelte-free-icons-light';
import { CourtSport } from 'svelte-free-icons-regular';
import { Command } from 'svelte-free-icons-solid';
import { Diamond } from 'svelte-free-icons-sharp-light';
import { DoorOpen } from 'svelte-free-icons-sharp-regular';
import { Dolphin } from 'svelte-free-icons-sharp-solid';
</script>
...
...
...
<Github /> <!-- lighgray 1rem icon -->
<Wifi color="green" size="3rem" />
<SquareParking color="red" size="2rem" /> <!-- red 2rem icon -->
<CourtSport class="my own class" /> <!-- specify your own classes -->
<Command color="blue" />
<Diamond color="#080808" />
<DoorOpen size="32px" />
<Dolphin color="blue" size="3rem" />