<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ionic Development Archives - Nicholas Rowe</title>
	<atom:link href="https://www.nicholas-rowe.com/category/ionic-development/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.nicholas-rowe.com/category/ionic-development/</link>
	<description>CEO &#38; Co-Founder - Saigon Digital</description>
	<lastBuildDate>Fri, 30 Jun 2017 13:17:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://www.nicholas-rowe.com/wp-content/uploads/2025/12/cropped-nick-whitebg-e1765901896660-32x32.png</url>
	<title>Ionic Development Archives - Nicholas Rowe</title>
	<link>https://www.nicholas-rowe.com/category/ionic-development/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Custom icon fonts in Ionic 2</title>
		<link>https://www.nicholas-rowe.com/custom-icon-fonts-in-ionic-2/</link>
					<comments>https://www.nicholas-rowe.com/custom-icon-fonts-in-ionic-2/#comments</comments>
		
		<dc:creator><![CDATA[Nicholas Rowe]]></dc:creator>
		<pubDate>Fri, 30 Jun 2017 12:27:36 +0000</pubDate>
				<category><![CDATA[Ionic Development]]></category>
		<guid isPermaLink="false">https://www.nicholas-rowe.com/?p=597</guid>

					<description><![CDATA[<p>This tutorial will show you how to use custom icons within your Ionic 2 app. Step 1 Gather your SVG icons and head over to https://icomoon.io. Here create a new icon pack and upload your custom svgs. Once done download and extract the iconmoon.zip file and put the fonts inside src/assets/fonts/iconmoon/ Now create a new scss [&#8230;]</p>
<p>The post <a href="https://www.nicholas-rowe.com/custom-icon-fonts-in-ionic-2/">Custom icon fonts in Ionic 2</a> appeared first on <a href="https://www.nicholas-rowe.com">Nicholas Rowe</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This tutorial will show you how to use custom icons within your Ionic 2 app.</p>
<h2><strong>Step 1</strong></h2>
<p>Gather your SVG icons and head over to https://icomoon.io. Here create a new icon pack and upload your custom svgs.</p>
<p>Once done download and extract the iconmoon.zip file and put the fonts inside src/assets/fonts/iconmoon/</p>
<p>Now create a new scss file inside src/theme/iconmoon.scss, make sure your paths to the fonts match up.</p>
<p>Include the following:</p>
<pre>

@font-face {
font-family: 'icomoon';
src: url('../assets/fonts/iconmoon/icomoon.eot?3e91zf');
src: url('../assets/fonts/iconmoon/icomoon.eot?3e91zf#iefix') format('embedded-opentype'),
url('../assets/fonts/iconmoon/icomoon.ttf?3e91zf') format('truetype'),
url('../assets/fonts/iconmoon/icomoon.woff?3e91zf') format('woff'),
url('../assets/fonts/iconmoon/icomoon.svg?3e91zf#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}

@mixin makeIcon($arg, $val) {
.ion-ios-#{$arg}:before ,
.ion-ios-#{$arg}-circle:before ,
.ion-ios-#{$arg}-circle-outline:before ,
.ion-ios-#{$arg}-outline:before ,
.ion-md-#{$arg}:before ,
.ion-md-#{$arg}-circle:before ,
.ion-md-#{$arg}-circle-outline:before ,
.ion-md-#{$arg}-outline:before {
font-family: "icomoon" !important;
content: $val;
}
}

@include makeIcon(icon-new-calendar, '\e904');

</pre>
<h2><strong>Step 2</strong></h2>
<p>Make sure to import the iconmoon.scss file in to variables.scss inside the theme directory.</p>
<h2><strong>Step 3</strong></h2>
<p>Now inside our .html files we can then apply the fonts by applying the class appropriately, eg:</p>
<pre>

&lt;ion-tabs [selectedIndex]="selectedIndex" class="c-tabsnav"&gt;
&lt;ion-tab [root]="tab4Root" tabTitle="Profile" tabIcon="icon-new-calendar,"&gt;&lt;/ion-tab&gt;
&lt;/ion-tabs&gt;

</pre>
<p>Below are some custom icons that have been included in to an app I&#8217;ve been working on recently.</p>
<p><a href="https://www.nicholas-rowe.com/custom-icon-fonts-in-ionic-2/icons/#main" rel="attachment wp-att-603"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-603" src="https://www.nicholas-rowe.com/wp-content/uploads/2017/06/icons.jpg" alt="" width="731" height="89" srcset="https://www.nicholas-rowe.com/wp-content/uploads/2017/06/icons.jpg 731w, https://www.nicholas-rowe.com/wp-content/uploads/2017/06/icons-300x37.jpg 300w" sizes="(max-width: 731px) 100vw, 731px" /></a></p>
<p>References:<br />
<a href="https://stackoverflow.com/questions/38462885/add-custom-icon-in-ionic-2">Stack Overflow</a></p>
<p>The post <a href="https://www.nicholas-rowe.com/custom-icon-fonts-in-ionic-2/">Custom icon fonts in Ionic 2</a> appeared first on <a href="https://www.nicholas-rowe.com">Nicholas Rowe</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.nicholas-rowe.com/custom-icon-fonts-in-ionic-2/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
