aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-01 18:16:09 +0100
committercodecalm <codecalm@gmail.com>2020-03-01 18:16:09 +0100
commite59e730062077460fddf214b6e69b3afa315c152 (patch)
tree9ab9bbaf515d4f397150e340bbb47d06ce6acddb /gulpfile.js
parentswitch icons (diff)
downloadtabler-icons-e59e730062077460fddf214b6e69b3afa315c152.tar.xz
home icon
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 07a95de..7e858bc 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -6,10 +6,10 @@ const gulp = require('gulp'),
gulp.task('icons-sprite', function (cb) {
- const columnsCount = 10,
- padding = 24,
+ const columnsCount = 20,
+ padding = 16,
paddingOuter = 49,
- iconSize = 48;
+ iconSize = 24;
glob("_site/icons/*.svg", {}, function (er, files) {
const iconsCount = files.length,
@@ -44,7 +44,7 @@ gulp.task('icons-sprite', function (cb) {
}
});
- const svgContent = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}"><rect x="0" y="0" width="${width}" height="${height}" fill="#fafafa"></rect>\n${svgContentSymbols}\n${svgContentIcons}\n</svg>`;
+ const svgContent = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 ${width} ${height}" width="${width}" height="${height}" style="color: #354052"><rect x="0" y="0" width="${width}" height="${height}" fill="#f5f7fb"></rect>\n${svgContentSymbols}\n${svgContentIcons}\n</svg>`;
fs.writeFileSync('icons.svg', svgContent);
cb();