@xet/nimble-next-icon
v1.0.1
Published
Everything you need to build an icon library, powered by [`@steeze-ui/icons`](https://github.com/steeze-ui/icons).
Downloads
1
Readme
@tadashi/base-icon
Everything you need to build an icon library, powered by @steeze-ui/icons
.
Creating a project
Run the command below to create a skeleton project.
# create a new project in the current directory
npx tiged lagden/base-icon#main my-icon-project
cd my-icon-project
npm install
Building
Once you've created a project, put the svg
files into svg/raw
directory.
⚠️ Warning
The file names must be respect the kebab-case
convention.
After that, run the command:
npm run build:icons
The command will generate:
svg/optimized
directorythemes/default
directorysrc/lib/index.ts
filesrc/lib/types.d.ts
file
You can see the generated icons by running the command:
npm run dev
Publishing
Go into the package.json
and give your package the desired name through the "name"
propertie. Also consider adding a "license"
field and point it to a LICENSE
file which you can create from a template (one popular option is the MIT license).
To publish your library to npm:
npm publish
Usage
See an example how to use the icon library in your project.
https://svelte.dev/repl/fd948eca90d74e6c960503acd5972268
Donate ❤️
BTC: bc1q7famhuj5f25n6qvlm3sssnymk2qpxrfwpyq7g4
License
MIT © Thiago Lagden MIT © Justin Voitel