# postcss-emoji

> PostCSS plugin that converts CSS selectors into emojis

Latest version **1.0.0** (published 2015-11-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install postcss-emoji
pnpm add postcss-emoji
yarn add postcss-emoji
bun add postcss-emoji
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-11-10 |
| First published | 2015-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | thuongvu |
| Maintainers | thuongvu |
| Keywords | postcss, css, postcss-plugin, emoji, processor |

## Links

- npm: https://www.npmjs.com/package/postcss-emoji
- Repository: https://github.com/thuongvu/postcss-emoji
- Issues: https://github.com/thuongvu/postcss-emoji/issues
- npm.io page: https://npm.io/package/postcss-emoji

## Dependencies (2)

- [postcss](https://npm.io/package/postcss.md) ^5.0.9
- [postcss-selector-parser](https://npm.io/package/postcss-selector-parser.md) ^1.3.0

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-11-10

## README

# PostCSS Emoji [![Build Status][ci-img]][ci]

[PostCSS] plugin that converts CSS selectors into emojis.

[PostCSS]: https://github.com/postcss/postcss
[ci-img]:  https://travis-ci.org/thuongvu/postcss-emoji.svg
[ci]:      https://travis-ci.org/thuongvu/postcss-emoji

## Motivation
While the use case of converting all CSS selectors to emojis isn’t quite useful, I was inspired by a [post on Hacker News](https://news.ycombinator.com/item?id=10395008) in which the author worked on an iteration of the Google homepage where they abbreviated CSS class names to 1-3 letters to decrease page weight.  I wonder if they would’ve considered emoji Unicode class names, as .👌may be more memorable than .xmw.

## Output

```css
/* Before */

.widget {
	transition: 1s;
}
.tool {
	color: orange;
}
.widget.tool {
	transition: 1s;
}
.tool:first-child {
	color: blue;
}
```

```css
/* After */

.🎬 {
	transition: 1s;
}
.🎭 {
	color: orange;
}
.🎬.🎭 {
	transition: 1s;
}
.🎭:first-child {
	color: blue;
}
```

## Usage

```js
postcss([ require('postcss-emoji') ])
```

See [PostCSS] docs for examples for your environment.

---
_Source: https://npm.io/package/postcss-emoji · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
