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

@tethys/icons

v1.4.75

Published

Tethys Icons

Downloads

262

Readme

Design Specification

  • 所有图标的大小为 16px,准确的来说是 viewBox 为 0 0 16 16
  • 图标类型分三种:outline(普通)、fill(填充的)、two-tone(双色图标)
  • 图标分普通、粗和细,普通的为 1.2px,粗的为 1.4px,细的为 1px

Naming Specification

  • 填充图标以 -fill 结尾,双色图标以 -tt 结尾
  • 加粗图标以 -bold 结尾,纤细图标以 -thin 结尾
  • 图标以 -circle-square 结尾分别表示是圆形和正方形
  • 命名尽量以图标含义命名,比如 eye 表示一个眼睛,通常用于查看, clock-circle 表示一个圆形的时钟

Installation

npm i @tethys/icons -S

文件结构

.
├── defs        // 雪碧图 SVG defs 类型文件
├── fonts       // 字体图标文件
├── symbol      // 雪碧图 SVG symbol 类型文件
├── glyphs.json // 所有图标的名字和分类
├── README.md
└── package.json

Usage

Usage with Angular

Copy assets using angular.json

    "assets": [
        ...
        {
            "glob": "**/*",
            "input": "./node_modules/@tethys/icons",
            "output": "/assets/icons/"
        }
    ]

or using npm script to install and copy to assets directory

script:{
    ...
    "update-tethys-icons": "npm i @tethys/icons && cpx 'node_modules/@tethys/icons/**' 'src/assets/icons'"
}

Using thy-icon component in tethys library

ThyIconRegistry.addSvgIconSet(`src/assets/icons/defs/svg/sprite.defs.svg`)  // Load svg files

<thy-icon thyIconName="plus"></thy-icon>                                    // Use in template

Usage with IconFont

@import '@tethys/icons/fonts/tethys-icons.scss';    // Import tethys icons scss file

<i class="tethys-icon tethys-icon-plus"></i>        // 

Development

Clone

In order to build the @tethys/icons, ensure that you have Git and Node.js (>= 10.0.0) installed.

git clone [email protected]:atinc/wt-design-icons.git  // Clone repository

cd wt-design-icons && npm install                   // Install node dependencies

Build

npm run build:icons     // Build icons

npm run build           // Build icons and demo

npm run start           // Start demo, open http://localhost:8887 to review

Release

npm run release         // Pull request release commit, add tag, changelog

Publish

npm run pub             // Publish to npm