Better HN
topnewbestaskshowjobs
Log inSign up

outpunk

10 karma · joined Dec 11, 2014 (11y ago) · 12 submissions

Frontend Developer at Evil Martians. Co-author of Evil-Icons.io

[ my public key: https://keybase.io/madyankin; my proof: https://keybase.io/madyankin/sigs/QANtWXmuNKHu6VWyh8S8B2lQyQNFhdHkUp2siIswQ7A ]

Submissions

1.

PostCSS-modules: now we can use CSS Modules with Rails, PHP, Django and others(evilmartians.com ↗)

10 points · by outpunk · 10y ago · discuss

comment 11y ago · link · parent

I've just made a grunt plugin for this https://github.com/outpunk/grunt-evil-icons

comment 11y ago · link · parent

Here it is, you can download the SVG file now https://github.com/outpunk/evil-icons/tree/master/download

comment 11y ago · link · parent

Great explanation, thanks!

comment 11y ago · link · parent

There are some reasons. I'll try to describe them shortly.

Usually it is important to color and resize the icons depending on situation. That's why you can't just put the SVG into your project. And that's why we decided to make a sprite and to use inline SVG.

But raw inline SVG isn't the most convenient way of SVG graphics using. That's why we have written a couple of helpers.

comment 11y ago · link · parent

Exactly! We're going to make this feature soon.

comment 11y ago · link · parent

I'm going to move the stuff to a more obvious location, thanks.

comment 11y ago · link · parent

IE < 9 and Opera Mini http://caniuse.com/#feat=svg-html5

comment 11y ago · link · parent

The icons are compiled to an SVG sprite and this is the recommended way (The readme file contains the instructions). Anyway, you can download sources here https://github.com/outpunk/evil-icons/tree/master/icons-sour... and separate SVG files here https://github.com/outpunk/evil-icons/tree/master/app/assets...

comment 11y ago · link · parent

May I ask you, what is the preferable method for you? We're going to make Gulp/Grunt plugins and CDN version.

Also you can download .ai file here https://github.com/outpunk/evil-icons/raw/master/icons-sourc.... Or separate SVG files https://github.com/outpunk/evil-icons/tree/master/app/assets... Or compiled sprite https://github.com/outpunk/evil-icons/blob/master/app/views/....

comment 11y ago · link · parent

Actually, we are changing color at the website only. Just to show that you can color the icons as you want.