# twolfson/grunt-spritesmith

Grunt task for converting a set of images into a spritesheet and corresponding CSS variables

Repository: https://github.com/twolfson/grunt-spritesmith
Canonical: https://ross.abutalabs.com/products/grunt-spritesmith
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2022-04-27T04:35:29+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5127, "days_push": 1589, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1130, forks 90 (observed 2026-08-28T04:03:42.358402+00:00)

## What it is
A Grunt task that converts a set of images into a spritesheet and generates corresponding CSS variables for formats like CSS, SASS, SCSS, LESS, Stylus, and JSON. It supports retina spritesheets and works cross-platform on Windows, Linux, and macOS.

## Use cases
- generate a css spritesheet from a folder of icons
- create sprite variables for sass or less
- build retina @2x spritesheets with grunt
- automate image sprite generation in a grunt build
- convert icons into a single image with css offsets

## When to avoid
- you use Gulp, Webpack, or another modern bundler instead of Grunt
- you prefer inline SVG or icon fonts over image spritesheets
- you need a build system without a maintained Grunt setup

## Facets
- artifact type: plugin
- maturity: maintenance
- function: image-processing, build-tool, css-framework
- domain: web-development, frontend, image-processing, developer-tools
- platform: cross-platform, cli
- tags: grunt, grunt-plugin, spritesheet, css-sprites, retina, sass, less, stylus, nodejs

## Member repositories
- twolfson/grunt-spritesmith (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:42.358402+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:38:17.231584+00:00, confidence not recorded.
  - readme: https://github.com/twolfson/grunt-spritesmith (fetched 2026-08-28T04:03:42.358402+00:00, sha 4f46c2c01b65)
  - registry_npm: https://registry.npmjs.org/grunt-spritesmith (fetched 2026-08-29T12:42:53.499732+00:00, sha 271a9d814a10)
- Data as of 2026-08-30T08:39:29.467469+00:00.
