File tree 6 files changed +35
-266
lines changed
6 files changed +35
-266
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"mode" : {
3
- "view " : {
3
+ "symbol " : {
4
4
"dest" : " ./" ,
5
5
"prefix" : " .hi-%s" ,
6
6
"dimensions" : true ,
7
7
"sprite" : " humbleicons.svg" ,
8
8
"layout" : " horizontal" ,
9
- "bust" : false ,
10
- "render" : {
11
- "css" : {
12
- "dest" : " humbleicons.css"
13
- }
14
- }
9
+ "bust" : false
15
10
}
16
11
}
17
12
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " hunbleicons " ,
3
- "version" : " 0.1.1 " ,
2
+ "name" : " humbleicons " ,
3
+ "version" : " 0.1.3 " ,
4
4
"description" : " Set of crafted icons for your better UI" ,
5
5
"author" : " zraly" ,
6
6
"license" : " MIT" ,
Original file line number Diff line number Diff line change 1
1
2
2
# Humbleicons
3
3
4
- ![ icon] ( humbleicons.svg?raw=true )
5
-
6
-
7
4
A set of free MIT-licensed hand-crafted SVG icons for you to use in your web projects.
8
5
9
6
## Install
@@ -16,9 +13,34 @@ npm i humbleicons
16
13
17
14
## Usage
18
15
19
- Depending on your setup, you can include Humbleicons in these ways:
16
+ You can include Humbleicons in these ways:
17
+
18
+ ####Copy-paste SVGs as embedded HTML
19
+
20
+ ``` html
21
+ <svg xmlns =" http://www.w3.org/2000/svg" fill =" none" stroke =" currentColor" viewBox =" 0 0 24 24" >
22
+ <g stroke =" currentColor stroke-linecap=" round " stroke-width=" 2 " >
23
+ <path d=" M12 17l-1.5 1.5a3.536 3.536 0 01-5 0v0a3.536 3.536 0 010-5l3-3a3.536 3.536 0 015 0v0 " />
24
+ <path d=" M12 7l1.5-1.5a3.536 3.536 0 015 0v0a3.536 3.536 0 010 5l-3 3a3.536 3.536 0 01-5 0v0 " />
25
+ </g>
26
+ </svg>
27
+ ```
28
+
29
+ ####Use the SVG sprite
30
+
31
+ ```html
32
+ <svg class=" humbleicons " >
33
+ <use xlink:href=" humbleicons.svg#desktop " />
34
+ </svg>
35
+ ```
36
+
37
+ Recommended global styling:
20
38
21
- - Copy-paste SVGs as embedded HTML
22
- - Reference via ` <img> ` element
23
- - Use the SVG sprite
24
- - Include via CSS
39
+ ```css
40
+ .humbleicons {
41
+ width: 1.15em;
42
+ height: 1.15em;
43
+ display: inline-block;
44
+ align-self: center;
45
+ }
46
+ ```
You can’t perform that action at this time.
0 commit comments