@xet/nimble-next-icon v1.0.1
@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 installBuilding
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:iconsThe command will generate:
svg/optimizeddirectorythemes/defaultdirectorysrc/lib/index.tsfilesrc/lib/types.d.tsfile
You can see the generated icons by running the command:
npm run devPublishing
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 publishUsage
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