<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Michelle Radomski</title>
    <description>The latest articles on Forem by Michelle Radomski (@michelleradomski).</description>
    <link>https://forem.com/michelleradomski</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F875249%2F7fd81614-4b75-4a63-a2e9-aba6cb6b16bc.jpeg</url>
      <title>Forem: Michelle Radomski</title>
      <link>https://forem.com/michelleradomski</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/michelleradomski"/>
    <language>en</language>
    <item>
      <title>Blade Icons - Blade UI</title>
      <dc:creator>Michelle Radomski</dc:creator>
      <pubDate>Fri, 10 Jun 2022 12:48:40 +0000</pubDate>
      <link>https://forem.com/michelleradomski/blade-icons-blade-ui-3351</link>
      <guid>https://forem.com/michelleradomski/blade-icons-blade-ui-3351</guid>
      <description>&lt;h2&gt;
  
  
  Nani? (or What? for you non-anime watching people 😛)
&lt;/h2&gt;

&lt;p&gt;Some of you may have already heard of &lt;strong&gt;React Icons&lt;/strong&gt; (if you haven't, go make your life easier and &lt;a href="https://react-icons.github.io/react-icons/"&gt;check it out&lt;/a&gt;! But did you know there's also something for Laravel?&lt;/p&gt;

&lt;p&gt;The title gives it away but you can integrate &lt;a href="https://blade-ui-kit.com/blade-icons"&gt;&lt;strong&gt;Blade Icons&lt;/strong&gt;&lt;/a&gt; with  your laravel project in no time! No more worrying about copyright or styling your icons. It made my life a bit easier 😄 &lt;/p&gt;

&lt;p&gt;It uses SVG's and instead of using something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- camera.svg --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;svg&lt;/span&gt; &lt;span class="na"&gt;fill=&lt;/span&gt;&lt;span class="s"&gt;"none"&lt;/span&gt; &lt;span class="na"&gt;viewBox=&lt;/span&gt;&lt;span class="s"&gt;"0 0 24 24"&lt;/span&gt; &lt;span class="na"&gt;stroke=&lt;/span&gt;&lt;span class="s"&gt;"currentColor"&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"w-6 h-6"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;path&lt;/span&gt; &lt;span class="na"&gt;stroke-linecap=&lt;/span&gt;&lt;span class="s"&gt;"round"&lt;/span&gt; &lt;span class="na"&gt;stroke-linejoin=&lt;/span&gt;&lt;span class="s"&gt;"round"&lt;/span&gt; &lt;span class="na"&gt;stroke-width=&lt;/span&gt;&lt;span class="s"&gt;"2"&lt;/span&gt; &lt;span class="na"&gt;d=&lt;/span&gt;&lt;span class="s"&gt;"M3 9a2 2 0 012-2h.93a2 2 0 001.664-.89l.812-1.22A2 2 0 0110.07 4h3.86a2 2 0 011.664.89l.812 1.22A2 2 0 0018.07 7H19a2 2 0 012 2v9a2 2 0 01-2 2H5a2 2 0 01-2-2V9z"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;path&lt;/span&gt; &lt;span class="na"&gt;stroke-linecap=&lt;/span&gt;&lt;span class="s"&gt;"round"&lt;/span&gt; &lt;span class="na"&gt;stroke-linejoin=&lt;/span&gt;&lt;span class="s"&gt;"round"&lt;/span&gt; &lt;span class="na"&gt;stroke-width=&lt;/span&gt;&lt;span class="s"&gt;"2"&lt;/span&gt; &lt;span class="na"&gt;d=&lt;/span&gt;&lt;span class="s"&gt;"M15 13a3 3 0 11-6 0 3 3 0 016 0z"&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/svg&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can use blade components instead:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;x-icon-camera&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"w-6 h-6"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It already looks so much cleaner, right? 😄 &lt;/p&gt;

&lt;h2&gt;
  
  
  How did I use it in my project?
&lt;/h2&gt;

&lt;p&gt;First of, I went through the documentation. For all the newbies out there (including me) that's step 1! 😁&lt;/p&gt;

&lt;p&gt;It can be confusing but the documentation is actually in 2 places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://blade-ui-kit.com/docs/0.x/introduction"&gt;Documentation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/blade-ui-kit/blade-icons"&gt;Get started&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Documentation will bring you to the docs on the same website. I personally am not a fan of what I found there so I opted for the Get started one which was so much clearer on how and what to install. &lt;/p&gt;

&lt;p&gt;For the project I worked on I used Tailwind CSS to style my icons and I can tell you it's super easy using the blade component. A simple example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;x-ri-arrow-right-s-line&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"h-7 w-7 text-emerald-600 hover:translate-x-1"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The styling made the icon look like this:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--B7_7A4Xi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9nipgtwmbyx2jcpkgg9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--B7_7A4Xi--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t9nipgtwmbyx2jcpkgg9.png" alt="Green arrow using Tailwind CSS and Blade Icons" width="45" height="26"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I got the above arrow by browsing through the Blade Icons &lt;a href="https://blade-ui-kit.com/blade-icons#search"&gt;library&lt;/a&gt;. When you click on an icon you like, it opens up this screen: &lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--JMsNMs_D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlhkzg8b3w104glp50o2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--JMsNMs_D--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vlhkzg8b3w104glp50o2.png" alt="Screenshot of arrow icon on Blade Icons" width="880" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As you can see, it gives you some options on the right how you can use the icon inside your projects. The way I did it is through installing via composer and then using that specific icon via the component option. I haven't tried using it as a directive or helper so I don't know if there's a difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  Tip: I installed an icon via composer but it doesn't show?
&lt;/h2&gt;

&lt;p&gt;If at some point you get stuck (like me) and you installed everything correctly and the icon still doesn't show up/your terminal gives you errors, here's a solution that worked for me:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--HYzaSC-a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/66k9fhhzhesoicbpkety.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--HYzaSC-a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/66k9fhhzhesoicbpkety.png" alt="Screenshot of VS Code Blade Icons config" width="825" height="651"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the picture above you can see I &lt;strong&gt;did not&lt;/strong&gt; uncomment the default icon set although that's step 2 of the installation. On my first try I did follow the installation process step by step but I kept getting errors. So I decided to ignore that step and BAM💥 it worked like a charm!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>laravel</category>
    </item>
  </channel>
</rss>
