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

social-logos

v2.5.9

Published

A repository of all the social logos used on WordPress.com.

Downloads

10,812

Readme

Social Logos

A repository of all the social logos used on WordPress.com.

Each logo was pulled from the official branding resource of each service. Branding guidelines were adhered to as much as possible.

Some logos include an official alternate version, if it's provided by the guideline resource. Sometimes it is desirable to have a visually consistent row of icons, all enclosed with the same shape. If the guidelines permit it, then an alternate version was created with a 18dp square or 20dp circle.

For example, the Tumblr guidelines state that it's ok to enclose the logo in any shape, so there's an alternate logo with an 18dp square.

Official guideline resources:

  • Facebook: https://www.facebookbrand.com
  • Twitter: https://about.twitter.com/company/brand-assets
  • Instagram: https://www.instagram-brand.com
  • LinkedIn: https://brand.linkedin.com
  • Google+: https://developers.google.com/+/branding-guidelines and http://gplus-brand.appspot.com
  • Pinterest: https://business.pinterest.com/en/brand-guidelines
  • Squarespace: http://www.squarespace.com/brand-guidelines/
  • reddit: https://www.reddit.com/about/alien/
  • Mastodon: https://joinmastodon.org/branding
  • Fediverse: https://commons.wikimedia.org/wiki/File:Fediverse_logo_proposal.svg
  • Nextdoor: https://about.nextdoor.com/gb/media/
  • http://findguidelin.es
  • Threads: https://en.wikipedia.org/wiki/File:Threads_(app)_logo.svg
  • X: https://about.twitter.com/en/who-we-are/brand-toolkit

Using the SocialLogo Component in your project:

Note that this component requires react to be installed in your project.

SocialLogo renders a single social-logo svg based on an icon prop. It takes a size property but defaults to 24px. For greater sharpness, the icons should only be shown at either 18px, 24px, 36px or 48px.

There's a gallery with all the available icons in https://wpcalypso.wordpress.com/devdocs/design/social-logo.

npm install social-logos --save

Usage

import SocialLogo from 'social-logos';
//...
render() {
    return <SocialLogo icon="twitter" size={ 48 } />;
}

Props

  • icon: String - the icon name.
  • size: Number - (default: 24) set the size of the icon.
  • onClick: Function - (optional) if you need a click callback.

Notes & Pixel Grid

SVGs were generated by the exporter-multi.jsx script.

The icon grid is based on Gridicons and adheres to the same rules. That is to say, the set is designed on a 24px base grid. That means logos will look their sharpest and crispest when SVGs are inserted with 24px width/height, or the icon font is used at font-size: 24px;.

Logos will also scale well to other sizes, like 18px (75% size), or 36px (150% size). Normally, using icon-sets outside of their pixelgrid is a surefire way to get fuzzy icons. This is also true in the case of this logo set, however unlike custom-designed icons, this is almost unavoidable in the case of logos. The problem is, every single logo is designed with its own dimensions. If we are to respect branding guidelines (which we should), no hinting or pixel-tuning is applied to any logo added to this set. Which means even at the base 24px size, logos could appear fuzzy and less than optimal. That is the way of the world, and a tradeoff between flexibility and respecting the original logo design on one hand, and pixel-perfect logos on the other hand.

So to summarize:

  • Do use Social Logos at 48px, 36px, 24px, 18px, 12px. Prioritize 24px or above if you can.
  • Try to avoid using Social logos at 16px, 17px, or any arbitrary pixel-size that's incompatible with the base 24px grid. For example, don't size the icon font in EMs.

Generate New Artifacts using Grunt

Installing

  1. Go to http://nodejs.org/ and press "Install". Follow instructions.
  2. Open a terminal. Change to your social-logo directory.
  3. Type npm install

Installing webfont dependencies

Additional system dependencies need to be installed to create a finer icon font. Follow the documentation found in https://github.com/sapegin/grunt-webfont

Running

In the commandline, type npm run build. This will clean up, polish, and generate the following:

  • A folder called svg-min. This folder contains minimized SVGs of every Social Logo. These SVGs can be dragged directly into Sketch for mockups.
  • A folder called svg-sprite. This folder contains a single SVG sprite called social-logos.svg, which can be referenced using use. But this doesn't work in IE at all yet, eventually it will work in Edge and newer.
  • A folder called icon-font. This folder contains different icon font files and css files.
  • A folder called build. This folder contains the minified component and example that will be exported to npm

Do remember to update the React components where they are used, when you add a new icon.

Publishing to NPM

  • Follow install instructions
  • Check in changes if any and follow PR process.
  • Bump package version in package.json to the next desired version and add an alpha postfix 1.1.0-alpha.1
  • While testing changes publish using the next tag npm publish --tag next
  • If changes look good remove postfix in the version 1.1.0
  • Publish using the latest tag npm publish --tag latest

License

Social Logos is licensed under GNU General Public License v2 (or later).