Giter VIP home page Giter VIP logo

facebook-reaction-icons's Introduction

Facebook multitone icons

The standard FB reaction icons, recreated in CSS with only one element necessary per icon.

  • Utilises web fonts to allow for crisp icons, regardless of size
  • Any styling which can be used on text can be used here (e.g. changing colours, font size, etc)
  • Multi-colour (as per the original FB icons)
  • Won't 'leak' colour dependent on background (i.e. white 'thumbs up' icon will always be white, unlike single-layer icons such as FontAwesome's fa-check-circle *)

* No disrespect meant to FontAwesome; I'm a proud backer of v5 and eternally thankful to Dave Gandy for popularising the notion of SVG icons :)

Quick start

View dist\index.html to preview the icons. Demo available at http://ablewhite.com/facebook-reaction-icons/.

Background

[Hopefully the comments in the code will clear most questions up, but eventually when I get the opportunity I'll write up the motivations, problems, fixes etc. here. #LateNightAgainBlog]

Browser support

  • Chrome (supported)
  • Firefox (supported)
  • Safari (supported on iOS; untested on Mac)
  • Edge (untested)
  • Internet Explorer (untested)
  • Opera (untested)

If you need legacy browser support (e.g. IE 8+) you can try enabling the option in IcoMoon, but there are no guarantees this will behave itself without further tweaks to the CSS.

To-do

Obviously there's still work to do in order to get this fully cross-browser, and I hope to update this project as time permits. Anyone wishing to pull, fork and / or contribute is more than welcome to do so:

  • IE10 / Edge support (possibly IE8/9 if I'm bribed heavily)
  • Refactor so separate content font is no longer necessary
  • Consider introducing animation options (e.g. scale / transform tear)
  • Tidy up package.json / gulpfile.js

Credits

  • original Facebook reaction images

** Flash Of Naked Gradient :)

License

Code released under the MIT license.

TL;DR - you're free to do what you want with it, as long as I'm not held liable :)

facebook-reaction-icons's People

Contributors

ablewhite avatar

Watchers

James Cloos avatar  avatar

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.