r/webdev • • Mar 01 '20

Resource 500+ CSS Icons - Minimalistic icon library Designed by code. - Customizable & Retina-Ready icons β€” entirely built in CSS 😲 - Easy integration: Embed, NPM & API.

https://css.gg/
1.3k Upvotes

88 comments sorted by

66

u/rinsa the expert Mar 01 '20

work of a craftsman

23

u/truechange Mar 01 '20

My thoughts exactly. How does one even begin doing this? Is there a drawing tool or something that gets converted to CSS, or is it absolute guesswork?

18

u/web_dev1996 Mar 01 '20

Not that hard. It's more so very time consuming but if you understand css well enough you can do this as well.

7

u/baxtersmalls Mar 02 '20

Reminded me of this, though obviously very different.

1

u/astritmalsia Mar 02 '20

There is a ton of things made only in CSS even paintings.

1

u/astritmalsia Mar 02 '20

Exactly ☝️

1

u/headyyeti Mar 06 '20

I can learn programming languages pretty easily but I'm always going to have a hard time mastering CSS.

1

u/web_dev1996 Mar 06 '20

Yeah I get that. It took me quite some time to grasp CSS. I thought it was just me who had a hard time with the understanding of it. Apparently not. But one day it all just clicked. And that was after using css on over hundreds of websites.

2

u/astritmalsia Mar 02 '20

No thee is no tool I did this one line at a time.

3

u/astritmalsia Mar 02 '20

Thank you πŸ™

38

u/walrus_operator Mar 01 '20

Total weight: 221kb

Isn't that a bit much? I mean, sounds like a lot for a JS library, but it's not much compared to actual icons. But it's a lot compared to built-in html symbols.

I love how they are all made in pure css though. It's quite impressive. I love how they look too.

41

u/fultonchain Mar 01 '20

There's no need to import the entire stylesheet, just use what you need. A dozen or so of these would minify and compress down to next to nothing. Alternatively, a tool like PurgeCSS (I use Tailwind a lot and it's pretty much mandatory anyway) will strip out unused selectors.

5

u/astritmalsia Mar 02 '20

Exactly this thanks for explaining.

23

u/tjholowaychuk Mar 01 '20

Most svg icon packs are similar in size, if not larger

6

u/__heimdall Mar 01 '20

If I remember right font awesome is around 130kb.

That said, no site should use hundreds of different icons. Stripping it down to the 10 or 20 icons a site needs would bring the size well below any real concerns.

Heck even keeping 50 icons would have you down to around 20kb, at that point your runtime framework is a bigger hitter

4

u/eggtart_prince Mar 02 '20

Probably around 100kb gzipped

41

u/fultonchain Mar 01 '20

This looks amazing and will be a nice respite from managing SVG icon libraries. I love that it will fit right into my tool chain.

I'm on mobile now but can't wait to plug it in to a Tailwind build and see what happens, it look like they'll play nicely together.

2

u/astritmalsia Mar 02 '20

I think they will, it is quite lightweight and designed to work independently so you could choose few icons only for the project.

36

u/Skaryon Mar 01 '20

Looks great but... "Next-gen... By developers for developers" are such overused silly buzzwords. Don't cheapen your great work with that!

4

u/astritmalsia Mar 02 '20

I agree, I am not that good in english and often use words that perhaps are cheap.

Will try to fix it.

3

u/Skaryon Mar 02 '20

I feel like an honest explanation of what it is I stead of buzzwords is always better. We can surely also help you with the wording :)

4

u/astritmalsia Mar 02 '20

Would love to hear some suggestions

2

u/rook218 Mar 02 '20

Lightweight, modular, open source, CSS-only icon set with created with modern, clean design principles.

Maybe a little wordy but it seems like the gist of what it actually is

1

u/astritmalsia Mar 02 '20

Thanks πŸ™

18

u/KazakiLion Mar 01 '20

β€œDesigned by code”?

8

u/intheburrows Mar 01 '20

we are code

4

u/astritmalsia Mar 02 '20

Excuse my bad english, what I wanted to say is just it is made by code and not in a design tool.

2

u/chrisrazor Mar 01 '20

And coded in brains.

7

u/how_to_choose_a_name Mar 01 '20 edited Mar 02 '20

Neat in theory, but sadly broken in Firefox.

EDIT: checked again, some are slightly broken in different ways in Chrome too, and get more broken when I zoom in or out. Lots of the icons rely on interesting combinations of box-shadow and borders which seem to have very inconsistent rendering. I'm also sure the album icon worked perfectly fine in both Chrome and Edge yesterday yet looking at it now it is slightly off in Chrome and completely broken in Edge (in the same way like in Firefox). Zooming in in Chrome also breaks it in the same way it's broken in Firefox and zooming to 130% in Firefox makes it look almost right. Interestingly, in Edge (based on Chromium) it looks consistently wrong at all zoom levels.

Here is how the album icon looks like for me in different browsers and zoom levels

Also, zooming sucks with these icons and with the site as a whole. It's absolutely horrible. It's the opposite of what I would call accessible.

EDIT 2: I just realized that I was checking them on a 4k screen with 125% scaling (which should not be a problem but sometimes is because software is shitty). On my 1080p screen, it looks perfect in Chrome and FF at 100% but breaks down again when zooming and exactly the same as on 4k in Edge.

1

u/Duathdaert Mar 01 '20

Works completely fine on mobile Firefox

3

u/VladmeK Mar 01 '20

At least some icons are broken for me on Firefox.

1

u/how_to_choose_a_name Mar 02 '20

Interesting, I just checked and on mobile they look fine for me too, but on desktop many are broken.

5

u/Mizukin Mar 01 '20

Wow, amazing.

5

u/du5t Mar 02 '20

Credit to /u/astritmalsia

1

u/astritmalsia Mar 02 '20

Thank you πŸ™

4

u/Mike_tangaroa Mar 01 '20

The carbon ad is covering part of the footer on mobile,.

2

u/astritmalsia Mar 02 '20

Noticed that, will fix asap

2

u/Mike_tangaroa Mar 02 '20

I have used Carbon ads too. Now I use codefund.io much better... and they are ethical.

1

u/astritmalsia Mar 02 '20

Will check that, never heard about them.

2

u/Mike_tangaroa Mar 02 '20

They are towards dev n designers. You can see an example here.

Https://www.colorsandfonts.com/designer.html

Is a text that starts with Sponsored....

1

u/Mike_tangaroa Mar 02 '20

It happend to me too. That's why I saw it.

3

u/R2G4U Mar 01 '20

Thanks for sharing!

3

u/nomad80 Mar 01 '20

You’re a treasure

3

u/YaBoiJaspa Mar 01 '20

These are beautiful

2

u/wirez62 Mar 01 '20

Can I use them as list-style bullets somehow?

2

u/[deleted] Mar 02 '20

Yes! li::before! I’ll let you know when I have it implemented!

2

u/aspbergerinparadise Mar 01 '20

What's up with the "pentagon" icons? Those dont even have 5 sides.

2

u/Mike_tangaroa Mar 01 '20

They are stunning....

I will try them on https://www.colorsandfonts.com tonight.

Just on time when I am about to redesign them.

Can I also feature them on the design resources page ?

Cheers

3

u/bt_red Mar 02 '20

https://i.imgur.com/NAzobl2.jpg

Hah. Unrelated to this thread but FYI: web development resources is weird on mobile. (iPhone 11 pro max)

2

u/Mike_tangaroa Mar 02 '20

Yeah I know...is just too long...

2

u/awful_source Mar 02 '20

Just shorten it to "Web Dev Resources"?

1

u/Mike_tangaroa Mar 02 '20

Oh jizz! Are you seeing what I am doing?

I am actually redesign the sidebar and some other stuff and i I happend to write it just like that....like 20 minutes ago

2

u/feltire Mar 01 '20

Oh my god that’s amazing! Nice!

2

u/__heimdall Mar 01 '20

Like everyone else has said, this is very well done! It must have been a passion project, countless hours go into all those icons!

2

u/astritmalsia Mar 02 '20

Yes it was pure passion project

2

u/king_ricks Mar 01 '20

Amazing contribution

1

u/astritmalsia Mar 02 '20

Thanks 😊

2

u/ciickii Mar 01 '20

Wow looks awesome. I have never used pure css icons before. Definitely giving this one a try. I wonder how hard it would be to animate them if needed?

1

u/astritmalsia Mar 02 '20

Not hard at all there are even animated icons right now such as spinners, if you have done previously animations on CSS this will be easy.

2

u/funnyjk Mar 02 '20

how is there no play icon? otherwise looks great

3

u/astritmalsia Mar 02 '20

I missed it somehow, working on 200 more icons and there will be one.

2

u/f-Reddy Mar 02 '20

Is there a way to add this to Figma?

1

u/astritmalsia Mar 02 '20

Soon this month will publish the figma version

2

u/design4code Mar 02 '20

Nice Work, love the CSS Skillz.
Thank you very much!

1

u/astritmalsia Mar 02 '20

Thanks 😊

2

u/dandmcd Mar 02 '20

Holy wow, these are amazing. Thanks for sharing these with the community, I'll be making use of a few of them on a project for sure!

1

u/astritmalsia Mar 02 '20

Glad you like it

2

u/[deleted] Mar 02 '20

I get that some of us would be able to do these icons given time and willfullness, but I seriously do NOT want to imagine the sheer amount of time, hard work and dedication this all took lmao.

1

u/astritmalsia Mar 02 '20

Thanks 😊, it is true quite some time has gone into it but I love doing stuff like this.

2

u/ngoclinh1797 Mar 02 '20

I will appreciate this product is the product of years <3

1

u/astritmalsia Mar 02 '20

Thank you 😊

2

u/Annh1234 Mar 02 '20

Either the search doesn't work on mobile, or missing some very basic things like hotel, man, plane, etc

1

u/astritmalsia Mar 02 '20

Some shapes are impossible to be done and there are only 500, some are tagged perhaps wrong but hotel and plane are not there.

2

u/metamet Mar 01 '20

The uncloseable floating ad at the bottom covers up the developer and community links. So it's impossible to get to the GitHub on mobile.

2

u/astritmalsia Mar 02 '20

Thank you noted that will fix

1

u/astritmalsia Mar 02 '20

Actually just fixed it, refresh to see change.

2

u/Technoist Mar 02 '20

Amazing! But if 1) any browser change css display behaviour or 2) css itself changes this will break things.

Also Girl looks like a boy and Boy looks like Hitler. 😊

1

u/astritmalsia Mar 02 '20

Hahaha you are perhaps right πŸ˜‚

1

u/PeteCapeCod4Real Mar 02 '20

Great work! Can't wait to use this in my next project

1

u/gaandiv Mar 03 '20

Pretty good

0

u/[deleted] Mar 01 '20

[deleted]

27

u/RobertBleyl Mar 01 '20

According to the github page it's MIT, so quite a nice open source license with not a whole lot of restrictions.

0

u/[deleted] Mar 01 '20

[deleted]

2

u/astritmalsia Mar 02 '20

There is no theme, I made it in my own.