All Projects → rastasheep → ionicons-sprite

rastasheep / ionicons-sprite

Licence: MIT license
SVG sprite icon set based on Ionicons icons

Programming Languages

HTML
75241 projects

Projects that are alternatives of or similar to ionicons-sprite

Coreui Icons
CoreUI Free Icons - Premium designed free icon set with marks in SVG, Webfont and raster formats
Stars: ✭ 1,813 (+8140.91%)
Mutual labels:  icons, svg-icons, svg-sprites
Svgsprit.es
Public endpoint to generate SVG Sprites
Stars: ✭ 73 (+231.82%)
Mutual labels:  icons, svg-icons, svg-sprites
Feathericon
simply generic vector icon collection - including sketch file, svg files, and font files.
Stars: ✭ 178 (+709.09%)
Mutual labels:  icons, svg-icons, svg-sprites
Font Awesome
The iconic SVG, font, and CSS toolkit
Stars: ✭ 66,937 (+304159.09%)
Mutual labels:  icons, svg-icons, svg-sprites
Vue Eva Icons
Is a pack of more than 480 beautiful open source Eva icons as Vue components
Stars: ✭ 189 (+759.09%)
Mutual labels:  icons, svg-icons
File Icon Vectors
A collection of file type icons in SVG format
Stars: ✭ 171 (+677.27%)
Mutual labels:  icons, svg-icons
Small N Flat
svg icons on a 24px grid
Stars: ✭ 205 (+831.82%)
Mutual labels:  icons, svg-icons
react-crud-icons
57 SVG icons for CRUD applications, packaged as a React component with light & dark themes and tooltip.
Stars: ✭ 19 (-13.64%)
Mutual labels:  svg-icons, svg-sprites
Svgtofont
Read a set of SVG icons and ouput a TTF/EOT/WOFF/WOFF2/SVG font.
Stars: ✭ 149 (+577.27%)
Mutual labels:  icons, svg-icons
React Kawaii
Cute SVG React Components
Stars: ✭ 2,709 (+12213.64%)
Mutual labels:  icons, svg-icons
Ionicons
Premium hand-crafted icons built by Ionic, for Ionic apps and web apps everywhere 🌎
Stars: ✭ 15,802 (+71727.27%)
Mutual labels:  icons, ionicons
Webfont
Awesome generator of webfont
Stars: ✭ 170 (+672.73%)
Mutual labels:  icons, svg-icons
Materialdesign Svg
@mdi/svg Dist for Material Design Icons.
Stars: ✭ 166 (+654.55%)
Mutual labels:  icons, svg-icons
Cryptocurrency Icons
A set of icons for all the main cryptocurrencies and altcoins, in a range of styles and sizes.
Stars: ✭ 2,116 (+9518.18%)
Mutual labels:  icons, svg-icons
majesticons
A versatile, beautiful, and scalable iconset. 760 icons each in line and solid style.
Stars: ✭ 98 (+345.45%)
Mutual labels:  icons, svg-icons
Vectorlogozone
3,000+ gorgeous SVG logos, perfect for your README or credits page
Stars: ✭ 239 (+986.36%)
Mutual labels:  icons, svg-icons
flexicon
SVG icon collection.
Stars: ✭ 23 (+4.55%)
Mutual labels:  svg-icons, svg-sprites
svgpack
A tool for generating and managing SVG Sprites.
Stars: ✭ 28 (+27.27%)
Mutual labels:  svg-icons, svg-sprites
Circle Flags
A collection of 300+ minimal circular SVG country flags
Stars: ✭ 139 (+531.82%)
Mutual labels:  icons, svg-icons
webpack-svg-sprite-sample
a webpack SVG sprite sample when using Vue and React
Stars: ✭ 19 (-13.64%)
Mutual labels:  svg-icons, svg-sprites

Ionicons sprite

SVG sprite icon set based on Ionicons icons.

What, why, how?

Quite a few people have already written articles about this topic,so this one will be short.

• What?

Icon fonts suck on so many levels. So this is my two cents on making life with SVGs and popular ionicon font a little bit easier. Inline only symbols that you need and forget about additional requests, icon flickering and other stuff.

• Why?

There are basically three options we have when it comes to icon systems:

  • Font/glyph icons
  • CSS-based data URIs
  • SVG icons

SVG icons are superior. I'm (not) sorry — they are. SVG is scalable, widely-supported, and allows for much more flexibility and dynamic editing.

Font icons and data URI's in CSS content are a hack, while SVG icons represent visualizations in the format we expect without weird workarounds for breaking accessibility due to re-defining native DOM elements.

~ Una Kravets

• How?

Firstly, you need to add to your page inline <svg> with <defs> tag in it (it just means that you are defining stuff to use later) which will contain all definitions. Each <symbol> tag will have a unique ID, and will wrap all the paths and whatnot thus forming an icon.

<svg width="0" height="0" style="position:absolute">
  <defs>
    <symbol viewBox="0 0 512 512" id="ion-university">
      <!-- all the paths and shapes and whatnot for this icon -->
    </symbol>

    <symbol viewBox="0 0 512 512" id="ion-wand">
      <!-- all the paths and shapes and whatnot for this icon -->
    </symbol>

    <!-- etc -->
  </defs>
</svg>

You can get symbols with example for all icons by clicking on them on demo site, or finding them in sprite file in the repo.

When you add all desired icons you can use them wherever, for example:

<svg class="ion ion-wand">
  <use xlink:href="#ion-wand"></use>
</svg>

As this is plain html, you have the ability to style them with CSS. For that purpose you can use class names added to SVGs. Note that the icon will be enormous (100% wide) if you don't specify it's dimensions.

/* Example icon styling */
.ion {
  display: inline-block;
  width: 32px;
  height: 32px;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

/* Single-colored icons can be modified like so */
.ion-wand {
  width: 42px;
  height: 42px;
  color: red;
}

License

Ionicons is licensed under the MIT license.

Ionicons-sprite is licensed under the MIT license.

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