SVG Icons Sprite generated by Orion Icon Library
Congratulations, your SVG Sprite from Varkala Collection
from Orion Icon Library was
created successfully!
In the downloaded folder, you will find the file called orion-svg-sprite.svg
which
contains your SVG Sprite [Open]. Please find below different
techniques on how to use your Icons in your Web Project.
The first technique consists in including the content of the orion-svg-sprite.svg
in
your HTML
like in the example below:
<body>
<svg width="0" height="0" class="hidden" style="display:none">
<symbol id="myIcon-1">
<path d="..."></path>
<path d="..." stroke="..."></path>
</symbol>
<symbol id="myIcon-2">
<circle rx="..."></circle>
<path d="..."></path>
</symbol>
<symbol>...</symbol>
</svg>
<section>Here we will call the Icons references to show them!</section>
</body>
Then you can call whenever you want any of the SVG Icons from the sprite,
referencing them with the <use>
element,
like:
<body>
<svg width="0" height="0" class="hidden" style="display:none">The SVG Sprite</svg>
<section>
<svg>
<use xlink:href="#myIcon-1"></use>
</svg>
<svg>
<use xlink:href="#myIcon-2"></use>
</svg>
</section>
</body>
Pros: Easy to implement, cross-browser
support, unique HTTP request.
Cons: Adds extra markup in the HTML document,
SVG Sprite cannot be cached.
Tips: Put the SVG Sprite markup before calling them (
bugin Safari).
The second technique consists in referencing the Icons from the SVG sprite as an external file. This allows to display different parts of the SVG Sprite by specifying the fragment identifier at the end of the URL.
In the HTML
markup you include your
Icons using <use>
to reference
the orion-svg-sprite.svg
file with
the specific #fragment
ID of each
Icon you need. Below an example:
<body>
<section>
<svg>
<use xlink:href="orion-svg-sprite.svg#myIcon-1"></use>
</svg>
<svg>
<use xlink:href="orion-svg-sprite.svg#myIcon-2"></use>
</svg>
</section>
</body>
Pros: Less cluttered markup. External
file is cachable, which helps with page load speed.
Cons: The browser support is good except
for older Internet Explorer versions (IE<9).
Tips: In case you need to support IE older versions, you
can use the great svg4everybody plugin.
Use one of the techniques described before to call the SVG Sprite.
Then select the Icons you need below to easily copy the <use>
reference
and paste it in your Project.
Hint Select the technique you want to
use with the switch button.
The use code reference will update with the correct url below the icons
Plus You can set a specific size for
your Icons instances.
This is useful if you need a fixed size and will not style with css
.
#add-to-cart-1
<svg class="theme-line-0"><use xlink:href="#add-to-cart-1"></use></svg>
#checkout-cart-1
<svg class="theme-line-0"><use xlink:href="#checkout-cart-1"></use></svg>
#remove-from-cart-1
<svg class="theme-line-0"><use xlink:href="#remove-from-cart-1"></use></svg>
#settings-1
<svg class="theme-line-0"><use xlink:href="#settings-1"></use></svg>
#update-cart-1
<svg class="theme-line-0"><use xlink:href="#update-cart-1"></use></svg>
#shopping-basket-1
<svg class="theme-line-5"><use xlink:href="#shopping-basket-1"></use></svg>
#basket-1
<svg class="theme-line-5"><use xlink:href="#basket-1"></use></svg>
#paper-bag-1
<svg class="theme-line-0"><use xlink:href="#paper-bag-1"></use></svg>
#shopping-bag-1
<svg class="theme-line-0"><use xlink:href="#shopping-bag-1"></use></svg>
#retail-bag-1
<svg class="theme-line-0"><use xlink:href="#retail-bag-1"></use></svg>
#shopping-bag-2
<svg class="theme-line-0"><use xlink:href="#shopping-bag-2"></use></svg>
#woman-bag-1
<svg class="theme-line-0"><use xlink:href="#woman-bag-1"></use></svg>
#us-dollar-1
<svg class="theme-line-12"><use xlink:href="#us-dollar-1"></use></svg>
#dollar-sign-1
<svg class="theme-line-0"><use xlink:href="#dollar-sign-1"></use></svg>
#dollar-badge-1
<svg class="theme-line-12"><use xlink:href="#dollar-badge-1"></use></svg>
#euro-1
<svg class="theme-line-0"><use xlink:href="#euro-1"></use></svg>
#euro-sign-1
<svg class="theme-line-0"><use xlink:href="#euro-sign-1"></use></svg>
#euro-badge-1
<svg class="theme-line-0"><use xlink:href="#euro-badge-1"></use></svg>
#japanese-yen-1
<svg class="theme-line-0"><use xlink:href="#japanese-yen-1"></use></svg>
#yen-sign-1
<svg class="theme-line-0"><use xlink:href="#yen-sign-1"></use></svg>
#yen-badge-1
<svg class="theme-line-0"><use xlink:href="#yen-badge-1"></use></svg>
#british-pound-1
<svg class="theme-line-0"><use xlink:href="#british-pound-1"></use></svg>
#british-pound-sign-1
<svg class="theme-line-0"><use xlink:href="#british-pound-sign-1"></use></svg>
#british-pound-badge-1
<svg class="theme-line-0"><use xlink:href="#british-pound-badge-1"></use></svg>
#percentage-1
<svg class="theme-line-0"><use xlink:href="#percentage-1"></use></svg>
#discount-1
<svg class="theme-line-0"><use xlink:href="#discount-1"></use></svg>
#special-price-1
<svg class="theme-line-0"><use xlink:href="#special-price-1"></use></svg>
#bitcoin-1
<svg class="theme-line-0"><use xlink:href="#bitcoin-1"></use></svg>
#bitcoin-sign-1
<svg class="theme-line-0"><use xlink:href="#bitcoin-sign-1"></use></svg>
#bitcoin-badge-1
<svg class="theme-line-0"><use xlink:href="#bitcoin-badge-1"></use></svg>
#new-1
<svg class="theme-line-0"><use xlink:href="#new-1"></use></svg>
#new-badge-1
<svg class="theme-line-0"><use xlink:href="#new-badge-1"></use></svg>
#on-sale-sticker-1
<svg class="theme-line-5"><use xlink:href="#on-sale-sticker-1"></use></svg>
#credit-card-1
<svg class="theme-line-0"><use xlink:href="#credit-card-1"></use></svg>
#secure-payment-1
<svg class="theme-line-0"><use xlink:href="#secure-payment-1"></use></svg>
#pay-by-card-1
<svg class="theme-line-5"><use xlink:href="#pay-by-card-1"></use></svg>
#bill-1
<svg class="theme-line-5"><use xlink:href="#bill-1"></use></svg>
#coins-1
<svg class="theme-line-0"><use xlink:href="#coins-1"></use></svg>
#money-bag-1
<svg class="theme-line-0"><use xlink:href="#money-bag-1"></use></svg>
#money-bag-euro-1
<svg class="theme-line-0"><use xlink:href="#money-bag-euro-1"></use></svg>
#money-bag-yen-1
<svg class="theme-line-0"><use xlink:href="#money-bag-yen-1"></use></svg>
#money-bag-pound-1
<svg class="theme-line-0"><use xlink:href="#money-bag-pound-1"></use></svg>
#money-1
<svg class="theme-line-5"><use xlink:href="#money-1"></use></svg>
#pay-1
<svg class="theme-line-5"><use xlink:href="#pay-1"></use></svg>
#money-box-1
<svg class="theme-line-5"><use xlink:href="#money-box-1"></use></svg>
#purchase-order-1
<svg class="theme-line-0"><use xlink:href="#purchase-order-1"></use></svg>
#invoice-1
<svg class="theme-line-0"><use xlink:href="#invoice-1"></use></svg>
#shipping-box-1
<svg class="theme-line-0"><use xlink:href="#shipping-box-1"></use></svg>
#archive-box-1
<svg class="theme-line-5"><use xlink:href="#archive-box-1"></use></svg>
#open-box-1
<svg class="theme-line-0"><use xlink:href="#open-box-1"></use></svg>
#delivery-truck-1
<svg class="theme-line-5"><use xlink:href="#delivery-truck-1"></use></svg>
#delivery-1
<svg class="theme-line-0"><use xlink:href="#delivery-1"></use></svg>
#delivery-time-1
<svg class="theme-line-0"><use xlink:href="#delivery-time-1"></use></svg>
#label-tag-1
<svg class="theme-line-0"><use xlink:href="#label-tag-1"></use></svg>
#price-tag-1
<svg class="theme-line-0"><use xlink:href="#price-tag-1"></use></svg>
#tag-1
<svg class="theme-line-0"><use xlink:href="#tag-1"></use></svg>
#label-1
<svg class="theme-line-0"><use xlink:href="#label-1"></use></svg>
#giftbox-1
<svg class="theme-line-0"><use xlink:href="#giftbox-1"></use></svg>
#store-1
<svg class="theme-line-0"><use xlink:href="#store-1"></use></svg>
#ribbon-1
<svg class="theme-line-0"><use xlink:href="#ribbon-1"></use></svg>
#add-1
<svg class="theme-line-60"><use xlink:href="#add-1"></use></svg>
#minus-1
<svg class="theme-line-60"><use xlink:href="#minus-1"></use></svg>
#close-1
<svg class="theme-line-60"><use xlink:href="#close-1"></use></svg>
#checkmark-1
<svg class="theme-line-60"><use xlink:href="#checkmark-1"></use></svg>
#checkmark-2
<svg class="theme-line-60"><use xlink:href="#checkmark-2"></use></svg>
#angle-up-1
<svg class="theme-line-60"><use xlink:href="#angle-up-1"></use></svg>
#angle-left-1
<svg class="theme-line-60"><use xlink:href="#angle-left-1"></use></svg>
#angle-right-1
<svg class="theme-line-60"><use xlink:href="#angle-right-1"></use></svg>
#menu-1
<svg class="theme-line-0"><use xlink:href="#menu-1"></use></svg>
#menu-hamburger-1
<svg class="theme-line-0"><use xlink:href="#menu-hamburger-1"></use></svg>
#search-1
<svg class="theme-line-0"><use xlink:href="#search-1"></use></svg>
#search-glass-1
<svg class="theme-line-0"><use xlink:href="#search-glass-1"></use></svg>
#delete-circle-1
<svg class="theme-line-0"><use xlink:href="#delete-circle-1"></use></svg>
#checked-circle-1
<svg class="theme-line-0"><use xlink:href="#checked-circle-1"></use></svg>
#rotate-left-1
<svg class="theme-line-0"><use xlink:href="#rotate-left-1"></use></svg>
#expand-1
<svg class="theme-line-5"><use xlink:href="#expand-1"></use></svg>
#priority-warning-1
<svg class="theme-line-0"><use xlink:href="#priority-warning-1"></use></svg>
#question-1
<svg class="theme-line-0"><use xlink:href="#question-1"></use></svg>
#shutdown-1
<svg class="theme-line-0"><use xlink:href="#shutdown-1"></use></svg>
#speed-1
<svg class="theme-line-0"><use xlink:href="#speed-1"></use></svg>
#security-shield-1
<svg class="theme-line-0"><use xlink:href="#security-shield-1"></use></svg>
#real-estate-1
<svg class="theme-line-5"><use xlink:href="#real-estate-1"></use></svg>
#property-1
<svg class="theme-line-0"><use xlink:href="#property-1"></use></svg>
#settings-2
<svg class="theme-line-0"><use xlink:href="#settings-2"></use></svg>
#shield-security-1
<svg class="theme-line-0"><use xlink:href="#shield-security-1"></use></svg>
#iphone-1
<svg class="theme-line-0"><use xlink:href="#iphone-1"></use></svg>
#pro-laptop-1
<svg class="theme-line-0"><use xlink:href="#pro-laptop-1"></use></svg>
#imac-screen-1
<svg class="theme-line-0"><use xlink:href="#imac-screen-1"></use></svg>
#avatar-1
<svg class="theme-line-0"><use xlink:href="#avatar-1"></use></svg>
#men-1
<svg class="theme-line-60"><use xlink:href="#men-1"></use></svg>
#male-user-1
<svg class="theme-line-0"><use xlink:href="#male-user-1"></use></svg>
#female-user-1
<svg class="theme-line-0"><use xlink:href="#female-user-1"></use></svg>
#diploma-1
<svg class="theme-line-0"><use xlink:href="#diploma-1"></use></svg>
#heart-1
<svg class="theme-line-60"><use xlink:href="#heart-1"></use></svg>
#like-1
<svg class="theme-line-0"><use xlink:href="#like-1"></use></svg>
#unlike-1
<svg class="theme-line-0"><use xlink:href="#unlike-1"></use></svg>
#quality-1
<svg class="theme-line-0"><use xlink:href="#quality-1"></use></svg>
#camera-1
<svg class="theme-line-0"><use xlink:href="#camera-1"></use></svg>
#time-1
<svg class="theme-line-0"><use xlink:href="#time-1"></use></svg>
#appointment-1
<svg class="theme-line-0"><use xlink:href="#appointment-1"></use></svg>
#pin-1
<svg class="theme-line-0"><use xlink:href="#pin-1"></use></svg>
#map-location-1
<svg class="theme-line-0"><use xlink:href="#map-location-1"></use></svg>
#travel-map-1
<svg class="theme-line-5"><use xlink:href="#travel-map-1"></use></svg>
#map-marker-1
<svg class="theme-line-0"><use xlink:href="#map-marker-1"></use></svg>
#compass-direction-1
<svg class="theme-line-0"><use xlink:href="#compass-direction-1"></use></svg>
#world-map-1
<svg class="theme-line-0"><use xlink:href="#world-map-1"></use></svg>
#fountain-pen-1
<svg class="theme-line-0"><use xlink:href="#fountain-pen-1"></use></svg>
#pen-1
<svg class="theme-line-0"><use xlink:href="#pen-1"></use></svg>
#bin-1
<svg class="theme-line-0"><use xlink:href="#bin-1"></use></svg>
#backpack-1
<svg class="theme-line-60"><use xlink:href="#backpack-1"></use></svg>
#glasses-1
<svg class="theme-line-0"><use xlink:href="#glasses-1"></use></svg>
#flip-flops-1
<svg class="theme-line-0"><use xlink:href="#flip-flops-1"></use></svg>
#calls-1
<svg class="theme-line-60"><use xlink:href="#calls-1"></use></svg>
#landline-1
<svg class="theme-line-0"><use xlink:href="#landline-1"></use></svg>
#smartphone-1
<svg class="theme-line-0"><use xlink:href="#smartphone-1"></use></svg>
#telephone-operator-1
<svg class="theme-line-0"><use xlink:href="#telephone-operator-1"></use></svg>
#customer-support-1
<svg class="theme-line-0"><use xlink:href="#customer-support-1"></use></svg>
#support-1
<svg class="theme-line-0"><use xlink:href="#support-1"></use></svg>
#exit-1
<svg class="theme-line-0"><use xlink:href="#exit-1"></use></svg>
#login-1
<svg class="theme-line-0"><use xlink:href="#login-1"></use></svg>
#logout-1
<svg class="theme-line-0"><use xlink:href="#logout-1"></use></svg>
#export-1
<svg class="theme-line-0"><use xlink:href="#export-1"></use></svg>
#import-1
<svg class="theme-line-0"><use xlink:href="#import-1"></use></svg>
#external-link-1
<svg class="theme-line-0"><use xlink:href="#external-link-1"></use></svg>
#envelope-1
<svg class="theme-line-0"><use xlink:href="#envelope-1"></use></svg>
#open-mail-1
<svg class="theme-line-0"><use xlink:href="#open-mail-1"></use></svg>
#inbox-1
<svg class="theme-line-0"><use xlink:href="#inbox-1"></use></svg>
#search-magnify-1
<svg class="theme-line-0"><use xlink:href="#search-magnify-1"></use></svg>
#cart-1
<svg class="theme-line-0"><use xlink:href="#cart-1"></use></svg>
#shopping-cart-1
<svg class="theme-line-0"><use xlink:href="#shopping-cart-1"></use></svg>
#grocery-cart-1
<svg class="theme-line-0"><use xlink:href="#grocery-cart-1"></use></svg>
#ecommerce-cart-1
<svg class="theme-line-5"><use xlink:href="#ecommerce-cart-1"></use></svg>
#design-1
<svg class="theme-line-5"><use xlink:href="#design-1"></use></svg>
#stack-1
<svg class="theme-line-133"><use xlink:href="#stack-1"></use></svg>
#color-palette-1
<svg class="theme-line-0"><use xlink:href="#color-palette-1"></use></svg>
#google-chrome-1
<svg class="theme-line-60"><use xlink:href="#google-chrome-1"></use></svg>
#page-1
<svg class="theme-line-5"><use xlink:href="#page-1"></use></svg>
#reload-1
<svg class="theme-line-5"><use xlink:href="#reload-1"></use></svg>
#refresh-window-1
<svg class="theme-line-0"><use xlink:href="#refresh-window-1"></use></svg>
You selected the options to generate the SVG Sprite with external color
css
classes.
That means that Orion detected if your icons
had different color layers and created a class and stylesheet for you to
edit the icons color properties.
Try me! The color classes below are editable.
Make your changes in real time and paste it directly into your project.
Support: Since our Icons can have several
Layers, this technique take advantage of the CSS Custom Properties.
This has a good browser support except
for older IE versions. In those browsers the original color will be used
as a fallback.
You can find a lot of information on the Internet about SVG
.
We made a little selection for you if you want to learn more.