From 6dcb68ff1b6eb3ebdd4c7fe14e051dac1347e3f4 Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 10 Mar 2020 23:00:25 +0100 Subject: readme --- _includes/icon.html | 2 +- dist/icons-sprite.svg | 2 +- gulpfile.js | 2 +- readme.md | 14 ++++++++++++++ test.html | 7 +++++++ 5 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 test.html diff --git a/_includes/icon.html b/_includes/icon.html index ff567c7..a481f4d 100644 --- a/_includes/icon.html +++ b/_includes/icon.html @@ -1 +1 @@ -{% assign stroke = include.stroke | default: 2 %}{% assign width = 24 %}{% assign name = include.name %}{% assign icon = site.icons | where: "slug", name | first %}{% capture replace-to %}{% endcapture %}{% assign content = icon.content | replace: '', replace-to %}{{ content }} +{% assign stroke = include.stroke | default: 2 %}{% assign width = 24 %}{% assign name = include.name %}{% assign icon = site.icons | where: "slug", name | first %}{% capture replace-to %}{% endcapture %}{% assign content = icon.content | replace: '', replace-to %}{{ content }} diff --git a/dist/icons-sprite.svg b/dist/icons-sprite.svg index e473709..1ba94ad 100644 --- a/dist/icons-sprite.svg +++ b/dist/icons-sprite.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js index 4075046..eaf6afd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -22,7 +22,7 @@ gulp.task('icons-sprite', function (cb) { .replace(/>\s+<') .trim(); - svgContent += `${svgFileContent}` + svgContent += `${svgFileContent}` }); let svg = `${svgContent}`; diff --git a/readme.md b/readme.md index 29d2a08..d88157c 100644 --- a/readme.md +++ b/readme.md @@ -4,6 +4,20 @@ A set of over 300 free MIT-licensed high-quality SVG icons for you to use in you ![Tabler icons](icons.svg) +## Install with npm + +``` +npm install tabler-icons --save +``` + ### Multiple strokes +All icons in this repository are drawn with the value `stroke` property, so if you change its value you can get different variants of icon, that will fit into your project. + +``` + + ... + +``` + ![Tabler icons](icons-stroke.svg) diff --git a/test.html b/test.html new file mode 100644 index 0000000..fbfe71d --- /dev/null +++ b/test.html @@ -0,0 +1,7 @@ +--- +layout: default +--- + + + + -- cgit v1.2.1