npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@washingtonpost/icon-tokens

v1.9.1

Published

WaPo Design System Icons

Downloads

5,754

Maintainers

mballenwp1mballenwp1hannah.goodhannah.goodgregmanifoldgregmanifolddnparmardnparmarvladimirjvvladimirjvcatherine1234catherine1234mfernanda-sosamfernanda-sosadev-javudev-javuvviswavviswanetolm-wpnetolm-wpyeswapoyeswapoharmanwapoharmanwapolpadillac4slpadillac4srjayarjayagranadoslopezgranadoslopezcashackcashackcourtneybeeschcourtneybeeschjoshhoegenjoshhoegenthiago_srptthiago_srptalefkowalefkowmichelle_markmichelle_markysmildeysmildeshrddhawashpostshrddhawashposthanj.washposthanj.washpostkarenwangkarenwangcarsonologycarsonologyyuyanleiyuyanleidbnappdbnappcolemanc4colemanc4vpenneyvpenneystevethedevstevethedevdkaodkaoelenalaceyelenalaceyzhoyoyozhoyoyodwuandjunedwuandjunefransandifransandiashendrukashendrukmichaeldominemichaeldominemark-a-wapomark-a-wapolenacohenlenacohenchris93007chris93007sabrinamochisabrinamochijorgemhc-devjorgemhc-devcarlyncarlyndgreen19dgreen19josephjamesjosephjamesniko_komniko_komnicrocsnicrocsavalbuenaavalbuenasotojlsotojlhaileyhaymondhaileyhaymondlukaskeelwapolukaskeelwapotimborisenkotimborisenkobantupallikbantupallikkt-prrykt-prryjesse.post.washpojesse.post.washpothreeteaspoonsthreeteaspoonsemilycsabensemilycsabensluciovillaluciovillatam.stephtam.stephagillespieagillespieani512ani512vonoehsenevonoehseneemmakumeremmakumeraggyjleeaggyjleelavanderoilavanderoiemily.engemily.englmelgarlmelgarsadbumblebeesadbumblebeejanicekchenjanicekchenjamelhendricksjamelhendricksryanpicouryanpicoucrunchwrap78crunchwrap78welchkwelchkval-l-hoslerval-l-hoslernick.mourtoupalasnick.mourtoupalasbenjakibenjakibattandbattandjon.rosadojon.rosadojacknugent27jacknugent27asamireissaasamireissacourthcourthmahigmahigjchaskelljchaskelllorenzoglorenzogln-washpostln-washpoststericsonstericsontalpert022talpert022gengelgengeltuckabelletuckabellenauticaharvinnauticaharvinaadittambeaadittambenatalievinebergnatalievinebergkrbrookskrbrookskatty-huertaskatty-huertasmariaalconadabrooksmariaalconadabrooksjuniorh28juniorh28atomictangerineatomictangerineemlorraineemlorrainehelmschelmsctriticotriticopranavganorepranavganoredanacasidydanacasidyterrywpterrywpksemanur8ksemanur8dreyvitserdreyvitsermvoneshmvoneshchelseaconradchelseaconradarnolda-wparnolda-wphermionewyhermionewywp-abergwp-abergsheamus-heisheamus-heihaysstephaniehaysstephaniebroadwaternebroadwaterneandrevincandrevinckat-alokat-alodaniellersauldaniellersaulstevefuenteswpstevefuenteswprekha26rekha26marcnahedmarcnahedamiemunozamiemunozchloelangstonchloelangstonmartinezymartinezyseanwaposeanwapoducroquetducroquetjakekarajakekarajtotoolejtotoolemjperalesmjperalesarturgalochaarturgalochaebgrangerebgrangerramyalamatiramyalamatiadamsrobwadamsrobwluke.connorsluke.connorswrneffwrneffmcdohmcdohfloresafloresataliatrackimtaliatrackimlennybronnerlennybronnerbitsoglassbitsoglassit_procurementit_procurementdavidchaiwapodavidchaiwapomaddoxnelsonmaddoxnelsonjuliebaconjuliebaconstephanie.clarkstephanie.clarkjasonvuongjasonvuongjkoo87jkoo87kankelcrkankelcrgregoryauld2014gregoryauld2014uncompileduncompiledjbrown4jbrown4scarothersscarotherskhan.salauddinkhan.salauddinrowhawnrowhawnsubs-npm-buildersubs-npm-buildernealhumphreywaponealhumphreywapoashlynstillashlynstillptnielsenptnielsenleslie-sleslie-scourtney-kancourtney-kankevin.schaulkevin.schauljakecrumpjakecrumpmacallahmacallahjmuyskensjmuyskensmadisonwallsmadisonwallsbrianaabrianaadsantamarinadsantamarinaartmsilvaartmsilvaashtolashtolsberhanusberhanujjalcantarajjalcantaraalyssa.fowersalyssa.fowersjoemfoxjoemfoxreubenfbreubenfbcalcantaracalcantaraadrianblancoadrianblancochiquiestebanchiquiestebaniuraizeeiuraizeebdgrossbdgrossulmonicaulmonicabmferrillbmferrilldankeatingdankeatingemamdemamdtimmekotimmekokevinuhrmacherkevinuhrmachershellytanshellytanharrystevensharrystevenschrisrukanchrisrukanallisonnmannallisonnmannaaronsteckelbergaaronsteckelbergshruthagandlashruthagandlabrafordabrafordahannahmahonhannahmahonadityajain15adityajain15linorabolinilinorabolinianthonyjpesceanthonyjpesce1313davidlee1313davidleekate.rabinowitzkate.rabinowitzfontcfontccecepascualcecepascualvsingarayarvsingarayararamzsaramzsruxkruxknader_heidarinader_heidarithompsond3thompsond3tylerremmeltylerremmeltmac0201tmac0201joemoore-postjoemoore-postealvarez79ealvarez79hdormidohdormidosgpottssgpottsyutaochenyutaochennwalker_wpnwalker_wpapbestapbestbriannaschroerbriannaschroershikha-subshikha-subnaemanaemachloemeisterchloemeisterjulia.ledurjulia.ledursolomonsscottsolomonsscottbetchavarriabetchavarriaeewrighteewrightnickkirkpatricknickkirkpatricktrann_wapotrann_wapotobefrankhjtobefrankhjessiekimessiekimsergio.pecanhasergio.pecanhameganwaltermeganwalteralyssabartuchalyssabartuchalexisbarnesalexisbarnesdmoriarty6dmoriarty6mokhtar.alimokhtar.alidpham5dpham5klimenkovdklimenkovddavisshaverdavisshaveraaronbrezelaaronbrezelmoodypaige.emoodypaige.ekastningjkastningj

Keywords

Readme

Icons

We have three icon sizes, 16, 24, and 32. Some icons have fill rules. All have a single path.

Contributing

  1. The designer should provide the correct sizes and files needed for all three sizes of icons.
  2. Check to make sure each icon is on one path.
  3. Optimized the SVG. A good tool for this is svgomg. The default setting of SVGOMG should do most of the work, but check precision to make sure the SVG has the smallest file size without compromising path accuracy,
  4. After optimization add the path data object to token.js. The icon should have a name from the designer. That should be the name of the object. Order alphabetically.
  5. Be sure to add each size path data and the fill-rule for the icon (ex: evenodd, nonzero)
  6. Create a PR, review dev, and design, get approval!
  7. Work with a site component or design tokens contributor to cut a release.
  8. If you’re importing icons via site-components, drop a note in the slack room #site-components to bump the design token package and make a release with your icons.

Build Process v1

  1. We generate SVG files from the ./tokens.json configuration file. This file was moved over from site-components. It's part of a phased plan to improve and streamline our icons. Below is an example of the HTML of the SVG.
<svg
  className="fill-current icon-add icon-size-16"
  width="16"
  height="16"
  view-box="0 0 16 16"
  xmlns="http://www.w3.org/2000/svg"
>
  <title>add</title>
  <path d="M7 7V1h2v6h5.929v2H9v5.929H7V9H1V7h6z" fillRule="nonzero" />
</svg>
  1. They are organized into directories by their size (16, 24, 32). i.e. ./dist/16/add.svg
  2. We also copy over the ./icons.json file to let any consumer of this package transform their icons in any way they see fit.

The generated SVG files do not contain fill colors. We recommend using CSS's currentColor property. We added three helper classes to the SVG: fill-current, icon-${name}, and icon-${size}.