Skip to content

retyui/postcss-icon.icono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcss-icon.icono

Icon set data for postcss-icon plugin, based on Icono

postcss-icon.icono

Install

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

Input

.custom-selector {
  @icon: icono-search; /* 'icono-' is Prefix , 'search' 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 */
}
const     postcss = require('postcss');
const postcssIcon = require('postcss-icon');

const CSS = `
.custom-selector {
  @icon: icono-search;
}`;

postcss(
  postcssIcon({
    "postcss-icon.icono": {
      prefix: 'icono-' /* 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: 131) result demo

areaChart, asterisk, barChart, blogger, book, bookmark, bookmarkEmpty, calendar, camera, caretDown, caretDownCircle, caretDownSquare, caretLeft, caretLeftCircle, caretLeftSquare, caretRight, caretRightCircle, caretRightSquare, caretUp, caretUpCircle, caretUpSquare, cart, chain, check, checkCircle, clock, codepen, comment, commentEmpty, creditCard, crop, cross, crossCircle, cup, delicious, display, disqus, document, downArrow, dribbble, dropper, exclamation, exclamationCircle, eye, facebook, file, filter, flag, flickr, folder, forbidden, forward, frown, gear, gplus, hamburger, headphone, heart, home, icono, imac, imacBold, image, indent, infinity, instagram, iphone, iphoneBold, keyboard, leftArrow, linkedIn, list, locationArrow, macbook, macbookBold, mail, market, meh, microphone, moon, mouse, music, next, nexus, outdent, paperClip, pause, piano, pieChart, pin, play, plus, plusCircle, power, previous, rename, reset, rewind, rightArrow, rss, ruler, search, share, signIn, signOut, sitemap, sliders, smile, stop, sun, support, sync, tag, terminal, textAlignCenter, textAlignLeft, textAlignRight, tiles, trash, twitter, upArrow, user, video, volume, volumeDecrease, volumeHigh, volumeIncrease, volumeLow, volumeMedium, volumeMute, youtube

About

Icons data for postcss-icon plugin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published