Skip to content

A super simple retina css sprite maker built with Gulp and Spritesmith to automate your sprite workflow

Notifications You must be signed in to change notification settings

harrycresswell/super-simple-css-sprites

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Super Simple CSS Sprites

A super simple retina css sprite maker built with Gulp and Spritesmith to automate your sprite workflow

Getting Started

The following steps will help you get up and running with a simple sprite automation which spits out a retina and non retina sprite, and the css to go with it.

Install pre-requisites

  • Make sure you install Homebrew first.
  • Then install Node.js with brew install node
  • Install Gulp globally npm install -g gulp

Setup

git clone https://github.com/harrycresswell/super-simple-css-sprites.git
cd super-simple-css-sprites
  • Run npm install to install the node dependencies.

usage

  • Run rm -rf dist to delete the current example contents from the dist folder.
  • Update the contents of src folder with the images you want to sprite
  • run gulp sprite to create the sprite image and css in /dist.

For retina images, be sure to use the suffix @2x in order to generate a @2x sprite. For example github@2x.png.

I've left a index.html file in the root, so you can check everything is working correctly. Just update the class names accordingly.

Attribution

This is based on the great work of Todd Wolfson on Spritesmith

About

A super simple retina css sprite maker built with Gulp and Spritesmith to automate your sprite workflow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published