Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azat-io/postcss-instagram

:camera: PostCSS plugin for using Instagram filters in CSS
https://github.com/azat-io/postcss-instagram

css instagram-filters postcss postcss-plugins

Last synced: about 1 month ago
JSON representation

:camera: PostCSS plugin for using Instagram filters in CSS

Awesome Lists containing this project

README

        

# postcss-instagram

[![Build Status](https://travis-ci.org/azat-io/postcss-instagram.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/postcss-instagram.svg)][npm] [![Dependency Status](https://gemnasium.com/azat-io/postcss-instagram.svg)][deps]

This is a PostCSS plugin for adding Instagram filters to your photos.

## Install

With [npm](https://npmjs.org/package/postcss-instagram) do:

```
npm install postcss-instagram --save
```

## Example

### Input

```html




```

```css
.boo {
filter: earlybird;
}
```

### Output

```css
.boo:after {
box-shadow:inset 0 0 3em #222;
position:absolute;
top:0;
right:0;
bottom:2px;
left:0;
z-index:1;
content:'';
}

.boo img{
filter:url('data:image/svg+xml;charset=utf-8,#filter');
-webkit-filter:sepia(0.4) saturate(1.8) contrast(1.1) brightness(0.9) hue-rotate(-20deg);
filter:sepia(0.4) saturate(1.8) contrast(1.1) brightness(0.9) hue-rotate(-20deg);
}

.boo {
position:relative;
display:inline-block;
}
```

### Filters

Here is a full list of plugin filters:
* 1977
* amaro
* brannan
* earlybird
* inkwell
* kalvin
* lo-fi
* nashville
* toaster

You can look filter examples [here](https://github.com/azat-io/postcss-instagram/blob/master/LIST.md).

## Contributing

Pull requests are welcome.

## License

MIT © [Azat S.](http://azat.io)

[ci]: https://travis-ci.org/azat-io/postcss-instagram
[deps]: https://gemnasium.com/azat-io/postcss-instagram
[npm]: http://badge.fury.io/js/postcss-instagram
[postcss]: https://github.com/postcss/postcss