All Projects → phosphor-icons → Phosphor Icons

phosphor-icons / Phosphor Icons

Licence: mit
A flexible icon family for the web

Projects that are alternatives of or similar to Phosphor Icons

Boxicons
High Quality web friendly icons
Stars: ✭ 1,104 (+1871.43%)
Mutual labels:  svg, icons, svg-icons, icon-font, icon-pack
Coreui Icons
CoreUI Free Icons - Premium designed free icon set with marks in SVG, Webfont and raster formats
Stars: ✭ 1,813 (+3137.5%)
Mutual labels:  svg, icons, svg-icons, icon-font, icon-pack
Phosphor React
A flexible icon family for React
Stars: ✭ 97 (+73.21%)
Mutual labels:  svg, icons, svg-icons, icon-font, icon-pack
Tabler Icons
A set of over 1400 free MIT-licensed high-quality SVG icons for you to use in your web projects.
Stars: ✭ 10,858 (+19289.29%)
Mutual labels:  svg, icons, svg-icons, icon-pack
Icons
The premium icon font for @uiwjs Component Library. https://uiwjs.github.io/icons
Stars: ✭ 99 (+76.79%)
Mutual labels:  svg, icons, svg-icons, icon-font
Simple Icons
SVG icons for popular brands
Stars: ✭ 12,090 (+21489.29%)
Mutual labels:  svg, icons, svg-icons, icon-pack
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (+148.21%)
Mutual labels:  svg, icons, svg-icons, icon-pack
Vue Unicons
1000+ Pixel-perfect svg icons for your next project as Vue components
Stars: ✭ 828 (+1378.57%)
Mutual labels:  svg, icons, svg-icons, icon-pack
Ikonate
Fully customisable & accessible vector icons
Stars: ✭ 3,392 (+5957.14%)
Mutual labels:  svg, icons, icon-pack
Bytesize Icons
Tiny style-controlled SVG iconset (101 icons, 12kb)
Stars: ✭ 3,662 (+6439.29%)
Mutual labels:  svg, icons, svg-icons
Mono Icons
Stars: ✭ 899 (+1505.36%)
Mutual labels:  svg, icons, svg-icons
Remixicon
Open source neutral style icon system
Stars: ✭ 3,956 (+6964.29%)
Mutual labels:  svg, icon-font, icon-pack
Grayshift
A lightweight front-end component library for developing fast and powerful web interfaces.
Stars: ✭ 304 (+442.86%)
Mutual labels:  svg, icons, svg-icons
icons
Simple, minimal line, and clean icon pack in vector formats — free for public use.
Stars: ✭ 24 (-57.14%)
Mutual labels:  icons, icon-pack, icon-font
Evil Icons
Simple and clean SVG icon pack with the code to support Rails, Sprockets, Node.js, Gulp, Grunt and CDN
Stars: ✭ 4,944 (+8728.57%)
Mutual labels:  svg, icons, svg-icons
Jam
Jam icons is a set of SVG icons designed for web projects, illustrations, print projects, etc. Licensed under MIT
Stars: ✭ 398 (+610.71%)
Mutual labels:  svg, icons, svg-icons
icons-flat-osx
Free Flat icons For OSX
Stars: ✭ 371 (+562.5%)
Mutual labels:  icons, icon-pack, svg-icons
Icons Flat Osx
Free Flat icons For OSX
Stars: ✭ 366 (+553.57%)
Mutual labels:  icons, svg-icons, icon-pack
Icons
All SVG icons available on http://game-icons.net
Stars: ✭ 598 (+967.86%)
Mutual labels:  svg, icons, svg-icons
Awesome Icons
A curated list of awesome Web Font Icons
Stars: ✭ 758 (+1253.57%)
Mutual labels:  icons, svg-icons, icon-font

phosphor-icons

Phosphor is a flexible icon family for interfaces, diagrams, presentations — whatever, really. Explore all our icons at phosphoricons.com.

NPM JavaScript Style Guide Travis

GitHub stars GitHub forks GitHub watchers Follow on GitHub

Usage

Getting Started

We use a similar approach as many other icon sets out there, providing icons as a webfont that uses Unicode's Private Use Area character codes to map normally non-rendering characters to icons. But you don't need to know that. All you need to do is add the script to the document <head>, and drop in icons with an <i/> tag and the appropriate class:

<!DOCTYPE html>
<html>
  <head>
    <script src="https://unpkg.com/phosphor-icons"></script>
  </head>
  <body>
    <i class="ph-smiley"></i>
    <i class="ph-heart-fill" style="color: hotpink"></i>
    <i class="ph-cube-thin"></i>
  </body>
</html>

Note: For stability, you may choose to source a specific version of Phosphor by adding the version to the script URL, for example: https://unpkg.com/[email protected]. The CDN supports version ranges.

Styling

Since the icons are just text under the hood, they can be colored and styled with CSS like any other font, including font-size, color, etc. We include several helper classes to provide easy sizing if you need it:

.ph-xxs { font-size: 0.5em; }
.ph-xs { font-size: 0.75em; }
.ph-sm { font-size: 0.875em; }
.ph-lg { font-size: 1.3333em; line-height: 0.75em; vertical-align: -0.0667em; }
.ph-xl { font-size: 1.5em; line-height: 0.6666em; vertical-align: -0.075em; }
.ph-1x { font-size: 1em; }
.ph-2x { font-size: 2em; }
.ph-3x { font-size: 3em; }
.ph-4x { font-size: 4em; }
.ph-5x { font-size: 5em; }
.ph-6x { font-size: 6em; }
.ph-7x { font-size: 7em; }
.ph-8x { font-size: 8em; }
.ph-9x { font-size: 9em; }
.ph-10x { font-size: 10em; }
.ph-fw { text-align: center; width: 1.25em; }

Note: Overriding the font-family, font-style, font-weight, font-variant, or text-transform may break the icons and render unprintable characters. Don't do it.

Note: The duotone weight is not yet available for this implementation, as fonts do not support baked-in alpha/opacity. In future we plan to move to an SVG-based approach with full support for all icon weights.

Ligatures

The icon font now supports ligatures, meaning that in any text using font-family: "Phosphor", writing the name of an icon (without the ph- prefix) will convert to the corresponding icon. The largest possible string will be matched, meaning you can use any available weight, and print multiple icons without separating with spaces or other characters if you choose.

<!DOCTYPE html>
<html>
  <head>
    <script src="https://unpkg.com/phosphor-icons"></script>
  </head>
  <body>
    <!-- Renders as sword and shield icons -->
    <p style="font-family: Phosphor">sword-fill shield</p>
  </body>
</html>

Related Projects

License

MIT © Phosphor Icons

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].