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

@easypost/easy-ui-icons

v1.0.0-alpha.28

Published

Easy UI Icons is a package containing the icons that experiences can use to build on the EasyPost platform, and contains SVG files in the `svg` directory.

Downloads

533

Readme

Easy UI Icons

Easy UI Icons is a package containing the icons that experiences can use to build on the EasyPost platform, and contains SVG files in the svg directory.

Easy UI Icons generally uses a subset of Material Symbols.

Set: Material Symbols
Style: Outlined
Fill: 0
Weight: 300
Grade: Normal
Size: 48dp

Getting started

Although it’s possible to use this package directly, we recommend using the icons in this package through Easy UI React in combination with the Icon component.

Installation

  1. Install Easy UI React (instructions) if you haven’t already.

  2. Install Easy UI Icons as a dependency:

    Using npm:

    npm install @easypost/easy-ui-icons --save

Usage

Import the Icon component from Easy UI React and any icon from Easy UI Icons into your project.

  1. Import the icon component from Easy UI React:

    import Icon from "@easypost/easy-ui/Icon";
  2. Import an icon from Easy UI Icons:

    import CheckCircleIcon from "@easypost/easy-ui-icons/CheckCircle";
  3. Pass the imported Easy UI icon to the symbol prop of the Icon component:

    <Icon symbol={CheckCircleIcon} />

Icons imported as illustrated above will assume a weight of 300. To import an icon with a different weight, add the weight as a suffix to the path.

import Icon400 from "@easypost/easy-ui/Icon400";

SVG files

For projects that don’t use React and need the raw SVG, icons are available as *.svg files in the svg folder.

import svgFile from "@easypost/easy-ui-icons/svg/Info.svg";

Development

Commands

| Command | Runs | | :-------------- | :--------------------------------------- | | npm run build | Builds the icons project | | npm run clean | Removes temp directories | | npm run dev | Builds the icons project on file changes |

Adding an icon

Add icons to the src/ folder. Easy UI Icons supports custom SVG files and JSON files referencing Material Symbol configurations.

All icons in src/ are transpiled to React components and re-exported as raw SVGs on build.

Material Symbols

Add a new Material Symbol icon by specifying a named JSON file with a Material Symbols configuration.

Check.json:

{
  "name": "check",
  "style": "outlined",
  "source": "@material-symbols/svg-300"
}

To add a new Material Symbol icon with a weight other than 300, update the above to reflect it as so; using a weight of 400 as an example:

Check400.json:

{
  "name": "check",
  "style": "outlined",
  "source": "@material-symbols/svg-400"
}