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

@striblab/strib-icons

v0.0.10

Published

Icons used in projects as different formats.

Downloads

6

Readme

Star Tribune Icons

Icons used in projects as different formats.

Usage

See the striblab.github.io/strib-icons.

Adding and managing icons.

Icons

  • Icons should be in SVG format. The canvas/artboard should be tight around the icon with a slight bit of padding (i.e. not flush to the canvas).
  • Do not set a fill color unless the color is very important, such as with the Star Tribune star logo.
    • Manage fills with a CSS variable that has the strib- prefix; for example:
      fill="var(--strib-strib-star-top, #61BF1A)"
    • You may need to set a "white" color to create a "hole", though this should be avoided if possible. Use the following:
      fill="var(--strib-icon-background, #FFFFFF)"
    • You may need to manually edit the SVG to do these things.
  • Put icons in source/icons/
    • The file name of the icon will become the class name of the icon in CSS, so be consistent and reasonable, use only lowercase and dashes, i.e. category-name-modifier.svg
  • Add an entry in sources/icons.yml. This is used for the SVG version of the icons for accessibility.

Developing and building

  • Make sure NodeJS is installed and run: npm install
  • To compile the fonts one time, run: npm run build
  • To watch for changes and run a local server to see the example page: npm run develop

Templates

Templates are managed in source/templates/ and are used to output the CSS and HTML.

Publishing

NPM

To publish up to npm:

  1. Make sure you have an account and are in the Star Tribune organization.
  2. Update version in package.json
  3. Run npm install (this updates the package lock file)
  4. Commit
  5. Push changes up
  6. Run npm run npm-publish

CDN

To publish up to our CDN, use static-libs.

Example

Example page is hosted with Github. Run npm run gh-publish to easily push up.

License

All images, content are copyright material of Star Tribune and require permission for re-use. Other code or similar assets fall under the LICENSE.code license.