Code Monkey home page Code Monkey logo

weather-underground-icons's Introduction

Buy Me Coffee

Weather Underground Icons

These icons were created by the Graphic Designer Ashley Jager. She released these icons in a beautiful Adobe Illustrator file. This project simply breaks that AI file up into web friendly icons that can be used in your projects.

tstorms

Demo Website

http://peter.build/weather-underground-icons/

Example Application

Here is an Example Application that uses these icons. You can access the Github Repo for source code.

Usage Instructions

Weather Underground has an API where you can fetch data remotely. The API returns an icon parameter as part of their JSON response that you can use to load custom icons.

Image Usage Instructions

If you just want to use the image files directly, and not use the CSS file you can just copy over the images directly from the dist/icons folder. See the Icon Key below to see which icons will be used.

CSS Usage Instructions

If you wish to use the use the CSS version of this project, you just need to copy this dist folder into your project.

Then you can use the icon keys with a wu- prefix to load whichever icon you want:

<i class="wu wu-white wu-64 wu-chanceflurries"></i>

All CSS Icons will default to using SVG files. However, you can use PNG sprites by adding a no-svg class to the parent element that contains the weather icons. no-svg classnames will be added to your HTML tag automatically if you are using Modernizr and the browser does not support SVG.

Icon Class Colors:

  • wu-black icons with black lines
<i class="wu wu-black wu-32 wu-chanceflurries"></i>

tstorms

  • wu-white icons with white lines
<i class="wu wu-white wu-32 wu-chancerain"></i>

tstorms

Icon Class Day & Night:

  • Default is to use Day Icons
<i class="wu wu-black wu-32 wu-clear"></i>

clear

  • wu-night to use Night Icons
<i class="wu wu-white wu-32 wu-clear wu-night"></i>

clear

Icon Class Sizes:

  • wu-16 16x16px icons
<i class="wu wu-black wu-16 wu-chancesnow"></i>

chancesnow

  • wu-32 32x32px icons
<i class="wu wu-black wu-32 wu-chancetstorms"></i>

chancetstorms

  • wu-64 64x64px icons
<i class="wu wu-black wu-64 wu-clear"></i>

clear

  • wu-128 128x128px icons
<i class="wu wu-black wu-128 wu-cloudy"></i>

cloudy

  • wu-256 256x256px icons
<i class="wu wu-black wu-256 wu-flurries"></i>

flurries

Day Icon Key

Here are the icon options for each weather option:

ICON KEY DESCRIPTION
chanceflurries chanceflurries Chance of Flurries
chancerain chancerain Chance of Rain
chancesleet chancesleet Chance Freezing Rain
chancesnow chancesnow Chance of Snow
chancetstorms chancetstorms Chance of Thunderstorms
clear clear Clear
cloudy cloudy Cloudy
flurries flurries Flurries
fog fog Fog
hazy hazy Haze
mostlycloudy mostlycloudy Mostly Cloudy
mostlysunny mostlysunny Mostly Sunny
partlycloudy partlycloudy Partly Cloudy
partlysunny partlysunny Partly Sunny
rain rain Rain
sleet sleet Freezing Rain
snow snow Snow
sunny sunny Sunny
tstorms tstorms Thunderstorms
unknown unknown Unknown

Night Icon Key

Here are the icon options for each weather option:

ICON KEY DESCRIPTION
chanceflurries chanceflurries Chance of Flurries
chancerain chancerain Chance of Rain
chancesleet chancesleet Chance Freezing Rain
chancesnow chancesnow Chance of Snow
chancetstorms chancetstorms Chance of Thunderstorms
clear clear Clear
cloudy cloudy Cloudy
flurries flurries Flurries
fog fog Fog
hazy hazy Haze
mostlycloudy mostlycloudy Mostly Cloudy
mostlysunny mostlysunny Mostly Sunny
partlycloudy partlycloudy Partly Cloudy
partlysunny partlysunny Partly Sunny
rain rain Rain
sleet sleet Freezing Rain
snow snow Snow
sunny sunny Sunny
tstorms tstorms Thunderstorms
unknown unknown Unknown

Day Icon Preview

White Day Icons

Black Day Icons

White Day Icons

Black Day Icons

Night Icon Preview

White Night Icons

Black Night Icons

White Day Icons

Black Day Icons

weather-underground-icons's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

weather-underground-icons's Issues

Windy Icon?

It would be great to have a windy icon. I think thats the only one thats missing as it can be used to cyclones/hurricanes as well

Night version of icons

Hi,

very nice set of Wunderground icons, would be very nice to have a night version, moon instead of sun.
Maybe you've got the muse to create them. ๐Ÿ•บ

Cheers.

JavaScript Example

Overview:

Can you please provide an example on how to use these icons with the Weather Underground JSON using JavaScript? Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.