@ninicons/font 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 +28 -2
- package/dist/codepoints.json +2974 -0
- package/dist/fonts/nini-bold.otf +0 -0
- package/dist/fonts/nini-bold.woff2 +0 -0
- package/dist/fonts/nini-duotone.otf +0 -0
- package/dist/fonts/nini-duotone.woff2 +0 -0
- package/dist/fonts/nini-fill.otf +0 -0
- package/dist/fonts/nini-fill.woff2 +0 -0
- package/dist/fonts/nini-light.otf +0 -0
- package/dist/fonts/nini-light.woff2 +0 -0
- package/dist/fonts/nini-regular.otf +0 -0
- package/dist/fonts/nini-regular.woff2 +0 -0
- package/dist/fonts/nini-semibold.otf +0 -0
- package/dist/fonts/nini-semibold.woff2 +0 -0
- package/dist/fonts/nini-thin.otf +0 -0
- package/dist/fonts/nini-thin.woff2 +0 -0
- package/dist/nini-bold.css +2992 -0
- package/dist/nini-duotone.css +5966 -0
- package/dist/nini-fill.css +2992 -0
- package/dist/nini-light.css +2992 -0
- package/dist/nini-regular.css +2992 -0
- package/dist/nini-semibold.css +2992 -0
- package/dist/nini-thin.css +2992 -0
- package/dist/nini.css +6008 -0
- package/package.json +36 -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,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @ninicons/font
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Every Ninicon as an icon font: seven fonts, one per style, and one stylesheet.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm i @ninicons/font
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
import '@ninicons/font'; // or <link rel="stylesheet" href="…/@ninicons/font/dist/nini.css">
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<i class="nini nini-rocket"></i>
|
|
15
|
+
<i class="nini-bold nini-rocket"></i>
|
|
16
|
+
<i class="nini-duotone nini-rocket" style="color: #d4502a"></i>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
The first class picks the style: `nini` (regular), `nini-thin`, `nini-light`, `nini-semibold`, `nini-bold`,
|
|
20
|
+
`nini-fill` or `nini-duotone`. The second picks the icon. Icons take the text's `font-size` and `color`. Only the
|
|
21
|
+
fonts a page uses are downloaded; to ship one style alone, use `nini-<style>.css` in place of `nini.css`.
|
|
22
|
+
|
|
23
|
+
A font fills shapes, so every stroke is outlined at its style's stroke width when the fonts are built. Prefer the
|
|
24
|
+
SVG packages where you can; the font is for places that only take text.
|
|
25
|
+
|
|
26
|
+
Codepoints live in the Private Use Area (`codepoints.json`) and never change once an icon has one. Duotone's tint is
|
|
27
|
+
a second glyph per icon, drawn under the line glyph by the stylesheet. The `.otf` files are there for design apps.
|
|
28
|
+
|
|
29
|
+
MIT licensed.
|