Skip to content

PostCSS plugin that makes it easy to drop in placeholder images.

License

Notifications You must be signed in to change notification settings

awayken/postcss-placehold

Repository files navigation

postcss-placehold Build Status NPM version

PostCSS plugin that makes it easy to drop in placeholder images.

Install

With npm do:

npm install postcss-placehold --save

Example

Input

h1 {
    background: placehold(400, 400);
}

Output

h1 {
    background: url("https://placehold.it/400x400");
}

Options

options.service

Type: string Default: placeholdit

Define which placeholder service to use for your images.

Supported services:

Usage

See the PostCSS documentation for examples for your environment.

Contributing

Pull requests are welcome. If you add functionality, then please add unit tests to cover it.

License

MIT © Miles Rausch

About

PostCSS plugin that makes it easy to drop in placeholder images.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published