@ninicons/iconify 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +57 -2
- package/dist/icons.json +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/info.json +22 -0
- package/dist/metadata.json +1 -0
- package/package.json +42 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sayantan Roy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,58 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ninicons/iconify
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Every Ninicon as one [Iconify](https://iconify.design) collection, prefix `nini`, for the tools that read IconifyJSON:
|
|
4
|
+
Tailwind CSS and UnoCSS icon plugins, Astro Icon, Iconify's components.
|
|
5
|
+
|
|
6
|
+
| Name | Style |
|
|
7
|
+
|---|---|
|
|
8
|
+
| `nini:rocket` (or `nini:rocket-regular`) | regular |
|
|
9
|
+
| `nini:rocket-thin` `-light` `-semibold` `-bold` | the other stroke weights |
|
|
10
|
+
| `nini:rocket-fill` `nini:rocket-duotone` | fill and duotone |
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm i -D @ninicons/iconify
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## UnoCSS
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
// uno.config.js
|
|
20
|
+
import { defineConfig, presetIcons } from 'unocss';
|
|
21
|
+
|
|
22
|
+
export default defineConfig({
|
|
23
|
+
presets: [presetIcons({ collections: { nini: () => import('@ninicons/iconify/icons.json').then((m) => m.default) } })],
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<span class="i-nini-rocket"></span>
|
|
29
|
+
<span class="i-nini-rocket-bold text-2xl text-orange-600"></span>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Tailwind CSS 4
|
|
33
|
+
|
|
34
|
+
The plugin reads a collection by file path, from the folder Tailwind runs in:
|
|
35
|
+
|
|
36
|
+
```css
|
|
37
|
+
@import 'tailwindcss';
|
|
38
|
+
@plugin '@iconify/tailwind4' {
|
|
39
|
+
icon-sets: from-json(nini, './node_modules/@ninicons/iconify/dist/icons.json');
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<span class="icon-[nini--rocket]"></span>
|
|
45
|
+
<span class="icon-[nini--rocket-bold] text-2xl text-orange-600"></span>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Only the icons a page uses are generated.
|
|
49
|
+
|
|
50
|
+
## Anything else
|
|
51
|
+
|
|
52
|
+
```js
|
|
53
|
+
import { icons } from '@ninicons/iconify'; // IconifyJSON
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
The package also carries `info.json` and `metadata.json` (categories), like Iconify's own `@iconify-json/*` sets.
|
|
57
|
+
|
|
58
|
+
MIT licensed.
|