Socket
Socket
Sign inDemoInstall

postcss-emoji

Package Overview
Dependencies
15
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    postcss-emoji

PostCSS plugin that converts CSS selectors into emojis


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
1.51 MB
Created
Weekly downloads
 

Readme

Source

PostCSS Emoji Build Status

PostCSS plugin that converts CSS selectors into emojis.

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 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

/* Before */

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

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

Usage

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

See PostCSS docs for examples for your environment.

Keywords

FAQs

Last updated on 10 Nov 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc