Giter Site home page Giter Site logo

ionic-team / ionicons Goto Github PK

View Code? Open in Web Editor NEW
17.4K 391.0 2.1K 28.3 MB

Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere ๐ŸŒŽ

Home Page: http://ionicons.com

License: MIT License

CSS 4.25% HTML 15.47% TypeScript 78.54% JavaScript 1.74%
ionicons icons icon-pack iconset ionic stenciljs webcomponents

ionicons's Introduction

Ionicons

Ionicons is a completely open-source icon set with 1,300 icons crafted for web, iOS, Android, and desktop apps. Ionicons was built for Ionic Framework, so icons have both Material Design and iOS versions.

Note: All brand icons are trademarks of their respective owners. The use of these trademarks does not indicate endorsement of the trademark holder by Ionic, nor vice versa.

We intend for this icon pack to be used with Ionic, but itโ€™s by no means limited to it. Use them wherever you see fit, personal or commercial. They are free to use and licensed under MIT.

Contributing

Thanks for your interest in contributing! Read up on our guidelines for contributing and then look through our issues with a help wanted label.

Using the Web Component

The Ionicons Web Component is an easy and performant way to use Ionicons in your app. The component will dynamically load an SVG for each icon, so your app is only requesting the icons that you need.

Also note that only visible icons are loaded, and icons which are "below the fold" and hidden from the user's view do not make fetch requests for the svg resource.

Installation

If you're using Ionic Framework, Ionicons is packaged by default, so no installation is necessary. Want to use Ionicons without Ionic Framework? Place the following <script> near the end of your page, right before the closing tag, to enable them.

<script type="module" src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://cdn.jsdelivr.net/npm/ionicons@latest/dist/ionicons/ionicons.js"></script>

Basic usage

To use a built-in icon from the Ionicons package, populate the name attribute on the ion-icon component:

<ion-icon name="heart"></ion-icon>

Custom icons

To use a custom SVG, provide its url in the src attribute to request the external SVG file. The src attribute works the same as <img src="..."> in that the url must be accessible from the webpage that's making a request for the image. Additionally, the external file can only be a valid svg and does not allow scripts or events within the svg element.

<ion-icon src="/path/to/external/file.svg"></ion-icon>

Variants

Each app icon in Ionicons has a filled, outline and sharp variant. These different variants are provided to make your app feel native to a variety of platforms. The filled variant uses the default name without a suffix. Note: Logo icons do not have outline or sharp variants.

<ion-icon name="heart"></ion-icon> <!--filled-->
<ion-icon name="heart-outline"></ion-icon> <!--outline-->
<ion-icon name="heart-sharp"></ion-icon> <!--sharp-->

Platform specificity

When using icons in Ionic Framework you can specify different icons per platform. Use the md and ios attributes and provide the platform specific icon/variant name.

<ion-icon ios="heart-outline" md="heart-sharp"></ion-icon>

Size

To specify the icon size, you can use the size attribute for our pre-defined font sizes.

<ion-icon size="small"></ion-icon>
<ion-icon size="large"></ion-icon>

Or you can set a specific size by applying the font-size CSS property on the ion-icon component. It's recommended to use pixel sizes that are a multiple of 8 (8, 16, 32, 64, etc.)

ion-icon {
  font-size: 64px;
}

Color

Specify the icon color by applying the color CSS property on the ion-icon component.

ion-icon {
  color: blue;
}

Stroke width

When using an outline icon variant it is possible to adjust the stroke width, for improved visual balance relative to the icon's size or relative to the width of adjacent text. You can set a specific size by applying the --ionicon-stroke-width CSS custom property to the ion-icon component. The default value is 32px.

<ion-icon name="heart-outline"></ion-icon>
ion-icon {
  --ionicon-stroke-width: 16px;
}

Migrating from v4

See the 5.0 release notes for a list of icon deletions/renames.

License

Ionicons is licensed under the MIT license.

Related

ionicons's People

Contributors

adamdbradley avatar amandaejohnston avatar bensperry avatar brandyscarney avatar camwiegert avatar elylucas avatar ianstormtaylor avatar ionitron avatar kensodemann avatar kevinports avatar liamdebeasi avatar manucorporat avatar mapsandapps avatar mlynch avatar patrickjs avatar perrygovier avatar peterennis avatar peterpeterparker avatar piotrtomiak avatar rafaelkr avatar readmecritic avatar rionmonster avatar sandermuller avatar sean-perkins avatar simonhaenisch avatar thatkookooguy avatar thetapc avatar thomaschaaf avatar tyleraholden avatar zwacky avatar

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  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

ionicons's Issues

Request: travel modes icons

Hi guys,

your set is great but travel modes icons are missing.

could be nice to have:

  • walking guy
  • bicycling
  • bus
  • plane

really useful when you are working with maps, what do you think?
thanks

We need a bug icon.

Hey,

I love the icons so far! I'd like to have a bug icon for reporting bugs. Thanks!

Vimeo icon is incorrect

The correct path is this:

<path d="M31.277,18.832c-0.14,3.052-2.27,7.229-6.39,12.531c-4.259,5.536-7.863,8.306-10.811,8.306c-1.825,0-3.371-1.687-4.633-5.059c-0.843-3.092-1.686-6.185-2.529-9.275c-0.938-3.372-1.943-5.06-3.019-5.06c-0.234,0-1.054,0.494-2.458,1.477l-1.474-1.901c1.546-1.358,3.071-2.717,4.572-4.078c2.062-1.783,3.609-2.72,4.642-2.814c2.438-0.234,3.938,1.433,4.502,5.001c0.608,3.851,1.03,6.246,1.266,7.182c0.704,3.195,1.476,4.791,2.321,4.791c0.657,0,1.641-1.037,2.954-3.108c1.312-2.072,2.015-3.649,2.109-4.732c0.188-1.789-0.516-2.686-2.109-2.686c-0.75,0-1.522,0.173-2.318,0.514c1.54-5.044,4.481-7.495,8.823-7.355C29.945,12.661,31.462,14.75,31.277,18.832z"/>

Apple (but perhaps also Windows and Android) icons

Going by what I can read in the legal stuff on the Apple site, I'm wondering if the inclusion of the Apple logo (and possible the Windows logo and Android logo) in the ionicons is entirely legal?

I'm talking about stuff like http://www.apple.com/legal/intellectual-property/guidelinesfor3rdparties.html , particularly the stuff under "Unauthorized Use of Apple Trademarks".

Perhaps someone already looked into this, but it doesn't hurt to double check...

Add Ionicon to Fontello

I'd like to add this font to fontello

There is a process to do this on their github page.

I wanted to check to make sure you were okay with this before doing that.

thanks.

This is my new favorite font.

Download icon

If there is an upload icon, then what about a download icon in the same style? :-)

Need one IOS7 close icon.

there is already an IOS7 checkmark icon, would you add one close icon?
Amazing icons! thank you so much!

No icon with an arrows in a circle

Really very nice icon set, but there is no icon with a left or right arrow in a circle, these are commonly used icons too. Hope you can add them.

Mapping icons

Would be nice to have some mapping related icons, ie:

  • draw circle
  • draw polygon
  • clear points

Is this too specific for this project?

Why is there the 'icon' class?

Is it useful? I know, it is useful for additional styling, but on the websites, there it is also without that class. And in some files of the project it is, somewhere it isn't. I'm confused...

Contains trademarked logos

This font contains a plethora of trademarked logos. I'm pretty sure you can't MIT license the Apple or Windows 8 or Twitter or LinkedIn or Skype or Dropbox logo.

Excess whitespace

All the icons are padded to the same width, which makes it difficult to control spacing between the icons and other elements. Have you considered cropping the SVGs to get rid of excess whitespace? IMO that would make the icons more flexible.

Edit icons

We need some icons that refer to editing, like a pencil or something. We have compose, but nothing to indicate changing something.

PNG Version

I have a friend who loves these beautiful icons but is left in the dark since he can only use Png's in Filemaker. I understand how SVG's are the future but If there's any chance someone could make a Png set it would be greatly appreciated! I also understand it's no small job so if there's anyway I can help let me know. Thanks :D

"Eye with strike through" / "Hide" icon

It might be useful to have an icon similar to the ion-volume-mute for ion-eye.

I could even see a case where it would be useful to be able to do ion-eye disabled and it would overlay the circle + strike on top of any icon - although it wouldn't be worth it if were to end up being a significant contributor to the size of the CSS file.

Cheers.

Linux/BSD icons

To give love to the hackers, we should a Tux icon, maybe the FreeBSD devil.

Request: Game console icons

There's enough activity surrounding platforms like Xbox, Playstation and Steam that icons for those could be justified. They all have flat variations too, which would match the style of the font. Would love to see this!

Register repository on Bower

Bower is a package management system, typically used for client-side libraries. It would be convenient if ionicons was registered there for easy pulling of the project.

Build Instructions

Thanks for this beautiful icon font! ๐Ÿ‘

It'd be great if you could include build instructions for those of us who want to generate a more compact font with just some of the icons. Thanks!

Is it possible to insert a ionicon in the placeholder of an <input> tag?

Hi all and thanks for this awesome project!
I'm trying to use Ionic and Ionicons to develop a mobile website.
I would to add in the placeholder of an tag, this text: "(ion-ios7-search) Search" (like the search input in Facebook for iOS 7, in the online friend list).
Placeholder can be only a text string, so how could I realize it?

Thanks in advance, I'm newbie in web developing :)

Failure when trying to install the TrueType font on OS X

Installation (double clicking ionicons.ttf and selecting Install) fails with the following error in the console:

10/31/2013 8:41:51.571 AM Font Book[6324]: ##### ERROR:
    file:///Home/stefan//ionicons/fonts/ionicons.ttf#postscript-name=Ionicons has no family name

I understand installing this font is not the primary use-case, but I do the same with FontAwesome and it is very helpful for prototyping in desktop apps.

Support for LESS & SASS

Sometimes the directory the fonts are located vs. the stylesheet can get mangled depending on the project, especially when being served up by a server & managed in a backend asset management process.

For these cases, support for LESS and/or SASS would be excellent so that a user can manually set the path of the font locations & work worry free.

LICENSE?

you must include license text for MIT license

Preview a color icons

Hi!
I'm new to all of this. My first issue is how to preview the icons, under "src" they are all showed as a webpage ico, and clicking through 350 is impossible.
( I don't know what to do with the fonts folder)

Also it would be nice to have them in color also.

Same-sized alternatives for 'Circled' icons

First: I really like these icons, and the non-ios7 icons are nicely minimalistic without being dogmatic.

Allt the circled ios7 icons have alternative icons with no circle and the icon itself being the same size. This is useful for mouse-overs like the close tab icon in the Chrome Browser (Windows).
Could the non-ios-7 cicular icons have similar alternative icons. For example for icons like 'ion-close-circled'.

Photoshop Font for Designers

Hello, I liked of your icons, just noticed that you could improve the way the designer uses the icons in photoshop.

Because there is currently no way to use the icons in photoshop like font.

ion-ios7-close-outline does not show

In the latest release the ion-ios7-close-outline icon does not show (I think it was added in 1.4.0). Irrespective of whether I used it as a class or in css content.
The container always has a height of 0.

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.