Coder Social home page Coder Social logo

erikyo / mime-icon-generator Goto Github PK

View Code? Open in Web Editor NEW
28.0 5.0 5.0 623 KB

๐ŸŽฏ All the filetype icons you need in supersharp SVG format! Cannot find the icon set it's for you? With this scss loop you can generate all the icons you need quickly and how you like it

Home Page: https://erikyo.github.io/mime-icon-generator/

License: MIT License

CSS 100.00%
icons scss mime generator svg filetype

mime-icon-generator's Introduction

mime-icon-generator Build Status devDependencies Status

DEMO: https://erikyo.github.io/mime-icon-generator/

alt text

Create easily all the icons you need in supersharp SVG format!

Configuration is very fast ... in the $icon-list array you have to enter some parameters like file extension, color (if you want a custom tone), and shape... icons will be automatically generated and you recall them easily in your site or in your app using the class .mime-icon.ico-$fileextension.

All svg icons are merged into a single css sheet and this allows for a very lightweight file: ~450 icon gzipped size is only 13kb! less than one 256x256 png icon.


INSTALLATION

git clone https://github.com/erikyo/mime-icon-generator.git && cd mime-icon-generator && npm install

gulp watch - sass watch (witj sourcemap and autoprefixer)

gulp finalize - (default) like gulp watch but the generated files are moved to the dist folder. a gzipped version of the minified one is also created)


USAGE

1. Default mixin

There are two ways to make a way to make an icon... the first is with the mixin.

Its basic form is this "@include do-icon(**$color**)".

You can specify a color that will be assigned to the icon if no the default color is used (in the Config Section of the scss sheet)

.ico-myico .ico:after {
      @include do-icon($color);
}

You can recall your newly generated icon whit this code

<div class="mime-icon">
ย ย <div class="ico-myico"></div>
</div>

2. Mass generated icons with icon font

But to generate many icons at once? I prepared a @for loop that loops all the items in the $icon-list:

$icon-list:
...
(abc,  "", $music),
...;

Versions

  • 0.9.0 - Initial test release
  • 0.9.1 - Style fixes
  • 0.9.2 - Style fixes
  • 1.0.0 - First release. Fix colors into nested svg and come with some updates (like gulp v4)

Utilities - google sheet docs (can be useful to mass generate your icons)

https://docs.google.com/spreadsheets/d/15Xg_7qReclvRpHDXnVL2go9T-QntLAZJj58KdY4YURU/edit?usp=sharing

mime-icon-generator's People

Contributors

dependabot[bot] avatar erikyo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mime-icon-generator's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.