Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Quick Ruby rake task for generating CSS and tiled image for displaying emoji in browsers.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 assets
Octocat-spinner-32 lib
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
README.md

Emoji CSS Builder

A simple tool for helping you display emoji in web browsers.

What you get

  • Tiled image of the emoji icons for efficient retrieval.
  • Generated CSS classes for each icon.
  • Sample HTML5 demo.

What you need

  • Any Ruby
  • ImageMagick (or more specifically, the montage command)

What you do

Just require emoji_css_builder:

# Build the default iphone emoji set
EmojiCSSBuilder.build(:iphone, "/path/to/assets")

# Build a subset of the iphone emoji:
EmojiCSSBuilder.build(:iphone, "/path/to/assets", 
  %w(e001 e002 e00d))

Or use rake:

rake emoji DEST=/path/to/assets
rake emoji DEST=/path/to/assets SET=iphone
rake emoji DEST=/path/to/assets SET=iphone ICONS=e001,e002,e00d

What I need

  • Images and icon sets for more

Whom you should thank

Something went wrong with that request. Please try again.