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

solar-icon

v2.2.0

Published

An icon library for runcloud-related products

Downloads

7

Readme

solar-icon

An icon library for runcloud-related repos

Installation

    yarn add git+ssh://[email protected]:runcloud/solar-icon.git

Import for Project Usage (runcloud-dashboard / runcloud-agency)

This library expects you to have bundler such as Webpack or Rollup, to build your application. For runcloud-dashboard or runcloud-agency, please use runcloudnicon.css build.

CSS / Sass

@import '~solar-icon/dist/runcloudnicon.css';
  • As both projects are using Webpack, you need to set { ... processCssUrls: true } to let Webpack include the font icon binary into the final build.

JS

import 'solar-icon'
  • No further action required if you import through JS.

Import for Library (solar-ui)

This library expects you to have bundler such as Webpack or Rollup, to build your application. For solar-ui, use _runcloudnicon.scss*

CSS / Sass

@import '~solar-icon/dist/runcloudnicon';

*_runcloudnicon.scss is configured to NOT include the font-binary (runcloudnicon.woff2) but only the unicode - class pairings.

Usage

  1. All icons in runcloud- repos are used with the itallic tag <i>.
  2. Icons are called inside CSS classes. To use an icon, simply add rc rc-ln-[insert-icon-here] to the class
  3. Icons are treated as text. To change size or color, use text-based CSS classes such as font-size, color.
  4. For a full list of icons, you can preview them here on the browser: runcloudnicon preview

Example:

    // eg. Edit button

    <a>
        <i class="rc rc-ln-pencil"></i> 
        <span>Edit</span>
    </a>

Developing solar-icon

This part is for developing solar-icon as a package. You can ignore this part if you only need to consume the package.

Local Development

    git clone [email protected]:runcloud/solar-icon.git

    cd solar-ui
    yarn install

Local Package to Another App

    cd solar-icon
    yarn link

    cd [another-app]
    yarn link solar-icon

You should be able to see solar-icon inside your node_modules after running yarn link

Useful Commands

    yarn link                       -- Register package to yarn global registry. Must be called from package dir
    yarn unlink                     -- Deregisters package from yarn global registry. Must be called from package dir
    yarn unlink <package-name>      -- Unlinks package from the local yarn registry
    yarn prod                       -- Builds the package for production. 

Building solar-icon

This library uses fantasticon-cli to build the icons. Don't worry, you already have it locally if you have run yarn install

    yarn prod

Advanced Config

You can change the config file inside .fantasticonrc.js.

This config file contains options to:

  • Icon library name

  • Input dir

  • Output dir

  • Output asset types

  • Icon naming convention

  • Map typings for Typescript autocomplete

To learn more: https://github.com/tancredi/fantasticon


if anything, can ask the devs below:

  • irfanismail

  • nadia

Last updated: 14/03/2022 - irfanismail