diff --git a/.gulp/tasks/icons.js b/.gulp/tasks/icons.js index 49032fe..be86788 100644 --- a/.gulp/tasks/icons.js +++ b/.gulp/tasks/icons.js @@ -12,11 +12,21 @@ import del from 'del'; import iconsColors from '../../icons/colors.js'; +console.log(iconsColors); + Gulp.task('process:icons', () => { del([`${Paths.icons}/svg/*.svg`]).then(paths => { - console.log('[ ⚙️ Deleting all icons]\n'.bold.red); + console.log('[ 🔥 Deleting all icons]\n'.bold.red); }); Gulp.src(`${Paths.src}/icons/*.svg`) - .pipe(Colorize(iconsColors)) + .pipe(Colorize({ + colors: iconsColors, + replaceColor: function (content, hex) { + return content.replace('#000', '#' + hex); + }, + replacePath: function (path, colorKey) { + return path.replace(/\.svg/, '.svg'); + } + })) .pipe(Gulp.dest(`${Paths.icons}/svg`)); }); \ No newline at end of file diff --git a/icons/colors.js b/icons/colors.js index 1d72c2a..f394f71 100644 --- a/icons/colors.js +++ b/icons/colors.js @@ -1,34 +1,25 @@ -const iconsColors ={ - colors: { - // Specific files - actionscript: { - pink: 'FF00FF' - } - }, - replaceColor: function (content, hex) { - return content.replace('#000', '#' + hex); - }, - replacePath: function (path, colorKey) { - return path.replace(/\.svg/, '.svg'); +/* Color Palette: + * green: '90A959', + * blue: '6A9FB5', + * blueDesaturated: '78909C', + * red: 'AC4142', + * redLight: 'D14748', + * maroon: 'AB7558', + * limeGreen: 'B8E15E', + * greenTea: '2ECC71', + * purple: 'AA759F', + * purpleDark: '8251A8', + * yellow: 'F4BF75', + * teal: '80CBC4', + * orange: 'D28445', +*/ + + + +var iconsColors = { + actionscript: { + pink: 'FF00FF' } } -/* -default: { - green: '90A959', - blue: '6A9FB5', - blueDesaturated: '78909C', - red: 'AC4142', - redLight: 'D14748', - maroon: 'AB7558', - limeGreen: 'B8E15E', - greenTea: '2ECC71', - purple: 'AA759F', - purpleDark: '8251A8', - yellow: 'F4BF75', - teal: '80CBC4', - orange: 'D28445', - } -*/ - export default iconsColors; \ No newline at end of file diff --git a/icons/src/angular.svg b/icons/svg/angular.svg similarity index 100% rename from icons/src/angular.svg rename to icons/svg/angular.svg diff --git a/icons/src/applescript.svg b/icons/svg/applescript.svg similarity index 100% rename from icons/src/applescript.svg rename to icons/svg/applescript.svg diff --git a/icons/src/bower.svg b/icons/svg/bower.svg similarity index 100% rename from icons/src/bower.svg rename to icons/svg/bower.svg diff --git a/icons/src/csharp.svg b/icons/svg/csharp.svg similarity index 100% rename from icons/src/csharp.svg rename to icons/svg/csharp.svg diff --git a/icons/src/css.svg b/icons/svg/css.svg similarity index 100% rename from icons/src/css.svg rename to icons/svg/css.svg diff --git a/icons/src/git.svg b/icons/svg/git.svg similarity index 100% rename from icons/src/git.svg rename to icons/svg/git.svg diff --git a/icons/src/json.svg b/icons/svg/json.svg similarity index 100% rename from icons/src/json.svg rename to icons/svg/json.svg diff --git a/icons/src/license.svg b/icons/svg/license.svg similarity index 100% rename from icons/src/license.svg rename to icons/svg/license.svg diff --git a/icons/src/markdown.svg b/icons/svg/markdown.svg similarity index 100% rename from icons/src/markdown.svg rename to icons/svg/markdown.svg diff --git a/icons/src/sass.svg b/icons/svg/sass.svg similarity index 100% rename from icons/src/sass.svg rename to icons/svg/sass.svg