<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Daniel Adepoju on Medium]]></title>
        <description><![CDATA[Stories by Daniel Adepoju on Medium]]></description>
        <link>https://medium.com/@adebalanced02?source=rss-51146f971fa3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bIdtXjeP70q5f12k21E6bg.jpeg</url>
            <title>Stories by Daniel Adepoju on Medium</title>
            <link>https://medium.com/@adebalanced02?source=rss-51146f971fa3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 03:44:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adebalanced02/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Using Fontello with React]]></title>
            <link>https://medium.com/@adebalanced02/using-fontello-with-react-6bdc32b3c868?source=rss-51146f971fa3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6bdc32b3c868</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[icons]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[reactjs]]></category>
            <dc:creator><![CDATA[Daniel Adepoju]]></dc:creator>
            <pubDate>Mon, 10 Dec 2018 10:38:38 GMT</pubDate>
            <atom:updated>2018-12-10T10:51:04.296Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple of days ago, I was trying to figure out how to use different icons from fontawesome and iconic without having to link both cdn to my codebase. I came across fontello and it came in real handy for me.</p><h3><strong>Why Use Fontello?</strong></h3><p>Fontello actually allows you to only the icons needed in your project and gives you the package that contains the font design and css of only the icons selected or needed.</p><p>This article is focused on how to use fontello with our react applications.</p><p>Let’s get started…</p><h4>Step 1: Install fontello-cli globally</h4><p>npm install fontello-cli -g</p><p>Running fontello-cli --version should bring out the version number of fontello-cli installed</p><h4>Step 2: Open fontello and choose icons needed</h4><p>Open your web browser and open <a href="http://fontello.com/">http://fontello.com/</a> Choose icons that you want to use from the collections there. You could upload an svg file to create a custom icon you want to use too in your project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7d1lmmeLFXNM0em0clR7Ag.png" /><figcaption>Fontello</figcaption></figure><h4>Step 3: Download the config file of the icons selected</h4><p>Click on the dropdown arrow by Download Webfont located at the top right and click Get Config Only</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*WlTu2ScRh4DeGeiVEpEs9Q.png" /></figure><p>This downloads the config.json to your system</p><h4>Step 4: Installation to your react app</h4><p>Place the config.json file in the root of your react app. Open your terminal and run fontello-cli install in the root of your react app</p><p>It’ll create a folder with some arbitrary name starting with fontello-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/188/1*BV3G9akDTet417fg59ldjw.png" /><figcaption>config.json and fontello-9c9a… folder</figcaption></figure><p>For import sake, I personally rename the folder to just fontello and move it into your projects’ src directory</p><h4>Step 5: Importing and usage in your React App</h4><p>Your fontello folder looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*-C0qkqJXLV1cPhmVHqyiWQ.png" /><figcaption>fontello folder structure</figcaption></figure><p>You could decide to import your fontello.css in your App.jsx file so it’s accessible throughout your app</p><p>So, in your App.js import fontello</p><p>import &quot;./fontello/css/fontello.css&quot;</p><h4>Step 6: Usage</h4><p>&lt;i className=&quot;icon-download&quot; style={{ fontSize: “80px” }} /&gt;</p><p>Someone is saying, how’d I know the icon name. Don’t worry, I got you covered.</p><p>Open your config.json file and you’ll see the css key in each of the glyphs object.</p><h4>Bonus note:</h4><p>Running fontello-cli open in the root of your project opens fontello site with your already selected icons. So, in the event you want to add more icons or remove some icons, this could come in handy.</p><p>Thanks for reading</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6bdc32b3c868" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>