Socket
Socket
Sign inDemoInstall

postcss-icon.airpwn

Package Overview
Dependencies
186
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    postcss-icon.airpwn

Icon set data for [postcss-icon plugin](https://github.com/retyui/postcss-icon), based on [css icon set, a pen by airpwn](https://codepen.io/airpwn/pen/hgdBc)


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

postcss-icon.airpwn

Icon set data for postcss-icon plugin, based on css icon set, a pen by airpwn

postcss-icon.airpwn

Install

npm install -D postcss-icon.airpwn postcss-icon
# or
yarn add -D postcss-icon.airpwn postcss-icon

Input

.custom-selector {
  @icon: airpwn-heart; /* 'airpwn-' is Prefix , 'heart' is name Icon*/
  color: gold;
  /* ... your css code */
}

Output

.custom-selector::after{
  content: '';
  /* ... */
}
/* after before i span if needed */
.custom-selector{
  color: #000;
  width: 20px;
  heigth: 20px;
  /* ... */
  color: gold;
  /* ... your css code */
}

Use (more examples)

const     postcss = require('postcss');
const postcssIcon = require('postcss-icon');

const CSS = `
.custom-selector {
  @icon: airpwn-heart;
}`;

postcss(
  postcssIcon({
    "postcss-icon.airpwn": {
      prefix: 'airpwn-' /* required when using multiple Icon data sets */
    },
    "postcss-icon.OtherSetName": { /* Options */ }
  })
).process(CSS).then(({css, messages}) => {
  console.log(css);
  messages
    .filter(i => i.type === "warning")
    .map(e => console.log(e.toString()));
});

Other icon sets:

Font icons:

Css only icons:

All name icons (count: 39) result demo

akku, arrowdown, arrowleft, arrowright, arrowup, back, box, browser, calendar, cam, clock, cloud, comment, doc, download, heart, iphone, key, link, macbook, mail, marker, next, no, pause, phone, play, points, profil, search, share, stop, stripes, trash, upload, video, wheels, yes, youtube

FAQs

Last updated on 15 Jan 2018

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