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

@oqton/icons

v1.0.9

Published

Oqton's icon library.

Downloads

7

Readme

Oqton Icons

Naming Icons

  • Icons are not named after what they look like but after their purpose.
    • e.g. Delete instead of Trashcan.
    • This avoids problems when we want to change the visual paradigm of actions.

  • Icon names cannot begin with a number. This is due to javascript not allowing variable names that begin with numbers.
    • Instead of 3D-Viewer, use ThreeD-Viewer.
  • The icon name should contain no spaces. If a separation is necessary between words, use a hyphen.
    • e.g. Foo-Bar instead of Foo Bar
  • Different sized icons with the same purpose should be named identically.
    • e.g. Icons - 12px/Add.svg and Icons - 16px/Add.svg

Export from Sketch to Front End

  1. Select new artboards and choose Make Exportable in the .svg format.
  2. Create new local branch in the Oqton/Platform repo.
  3. Choose File > Export in Components - Icons.sketch.
  4. Save Files in src/svgs.
  5. Navigate to that folder in Finder, select the folder and choose CMD+C
  6. Open Terminal and type cd and then choose CMD+V
  7. Type yarn update-icon-library
  8. Review and commit all changes
  9. Create new PR from the branch

Some icons are animated or dynamically generated. Those artboards don't export svgs.

Converting svgs to React components.

yarn update-icon-library

Generate a named export for every svg file to be used in our icon library. This should be run whenever new svgs are added to the icon library.

NOTE: SVGs should not contain or tags with generic "IDs". These can cause unexpected behaviour when styling icons colours.