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 🙏

© 2025 – Pkg Stats / Ryan Hefner

weather-iconic

v2.2.0

Published

A minimal multi-color weather icon set containing 100 icons offered in multiple integration options.

Readme

Icon

Weather Iconic

npm version npm downloads npm total downloads License: CC BY-SA 3.0 minified size

A minimal multi-color weather icon set containing 100 icons offered in multiple integration options.

✨Features

  • 100 minimal weather icons
  • Multi-color support for enhanced visual communication
  • TypeScript support with auto-completion
  • Tree-shaking for optimal bundle sizes
  • Accessibility features (ARIA labels)
  • Customizable props (size, color, className)
  • SVG sprites for performance optimization
  • Webfont generation (WOFF2, WOFF, TTF, EOT)
  • PNG exports in multiple sizes (16px to 128px) with retina support

[!NOTE] Originally made for the weather app temps.

🪄 Icons

All 100 weather icons with exemplary multi-color visual previews:

[!TIP] Search for specific icons within the landing page: https://jackd248.github.io/weather-iconic/

[!NOTE] Icons are also available in single-color versions in the same packages.

🔥 Installation

npm install weather-iconic

⚡ Usage

Webfonts

Webfont Usage Webfont Usage

<!-- Include the CSS -->
<link rel="stylesheet" href="node_modules/weather-iconic/dist/weather-iconic.css">

<!-- Use icons with proper classes -->
<i class="weather weather-sun"></i>
<i class="weather weather-cloud-rain weather-icon--lg"></i>

[!TIP] See the CodePen example for more details.

SVG Sprites

Sprite Usage Sprite Usage

<!-- Use sprite icons directly -->
<svg width="32" height="32">
  <use xlink:href="/path/to/sprites.svg#weather-sun"></use>
</svg>
<svg width="32" height="32">
  <use xlink:href="/path/to/sprites.svg#weather-moon"></use>
</svg>

🌈 Multi-Color Support

Weather Iconic supports multi-color icons for enhanced visual communication. Many weather icons contain multiple elements (e.g., thermometer mercury + body, sun + cloud) that can be styled with different colors.

[!TIP] Color Philosophy: The primary color (--weather-primary-fill) is used for highlight elements like lightning bolts, sun rays, or thermometer mercury. The secondary color (--weather-secondary-fill) serves as the base color for clouds, thermometer bodies, and single-element icons. This creates a natural visual hierarchy where important elements stand out.

CSS Multi-Color

CSS Multi-Color

<!-- Include enhanced CSS for multi-color support -->
<link rel="stylesheet" href="node_modules/weather-iconic/dist/weather-iconic-enhanced.css">
/* Basic multi-color usage with CSS custom properties */
.weather-multi-color {
  --weather-primary-fill: #80BBB2;   /* Highlight color (lightning, sun rays, mercury) */
  --weather-secondary-fill: #666666; /* Base color (clouds, bodies, single elements) */
}

HTML Usage

<!-- Multi-color with CSS custom properties -->
<div class="weather-multi-color" style="--weather-primary-fill: #80BBB2; --weather-secondary-fill: #666666;">
  <svg><use xlink:href="/path/to/sprites.svg#weather-sun-cloud-lightning"></use></svg>
</div>

<!-- Multi-color with utility classes -->
<div class="weather-multi-color weather-primary-teal">
  <svg><use xlink:href="/path/to/sprites.svg#weather-sun-cloud-lightning"></use></svg>
</div>

Custom Utility Classes

/* Primary color utilities */
.weather-primary-red    { --weather-primary-fill: #dc3545; }
.weather-primary-blue   { --weather-primary-fill: #007bff; }
.weather-primary-green  { --weather-primary-fill: #28a745; }
.weather-primary-yellow { --weather-primary-fill: #ffc107; }

/* Secondary color utilities */
.weather-secondary-red    { --weather-secondary-fill: #dc3545; }
.weather-secondary-blue   { --weather-secondary-fill: #007bff; }
.weather-secondary-green  { --weather-secondary-fill: #28a745; }
.weather-secondary-yellow { --weather-secondary-fill: #ffc107; }

Dark Mode Support

/* Automatic dark mode detection */
@media (prefers-color-scheme: dark) {
  .weather-multi-color {
    --weather-secondary-fill: #cccccc;
  }
}

/* Manual dark mode toggle */
[data-theme="dark"] .weather-multi-color {
  --weather-secondary-fill: #cccccc;
}

[!NOTE] Multi-color support works with icons that have multiple paths or groups. Single-path icons will use the primary color for the entire icon.

🧑‍💻Development

Build Commands

npm run build:icons      # Process and optimize SVGs
npm run build:components # Generate React/Vue components
npm run build:sprite     # Create SVG sprite
npm run build:fonts      # Generate webfonts (WOFF2, WOFF, TTF, EOT)
npm run build:png        # Export PNG images (multiple sizes + retina)
npm run build           # Full build pipeline

Testing

# open test page
cd tests
npm install
open index.html

Package Information

  • Bundle Sizes: SVG Sprite (~189KB), Webfonts (~100KB), JS Bundles (~14KB)
  • Total Package: ~390KB (optimized distribution without PNG assets)
  • Formats: SVG sprites, webfonts with TypeScript definitions, ES/CJS modules
  • Font Formats: WOFF2, WOFF, TTF, EOT for maximum browser support
  • Node.js: Requires Node.js >=16.0.0

⭐ License

This work is licensed under Creative Commons' Attribution-ShareAlike 3.0 United States (CC BY-SA 3.0)