<?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>DEV Community: Ub Labs</title>
    <description>The latest articles on DEV Community by Ub Labs (@ub).</description>
    <link>https://dev.to/ub</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%2Forganization%2Fprofile_image%2F3794%2F314f0c7c-6e34-4ce3-a981-d3e9d16d4397.png</url>
      <title>DEV Community: Ub Labs</title>
      <link>https://dev.to/ub</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ub"/>
    <language>en</language>
    <item>
      <title>How to add brand colors on TailwindCSS</title>
      <dc:creator>Adrián UB</dc:creator>
      <pubDate>Mon, 05 Jul 2021 21:40:19 +0000</pubDate>
      <link>https://dev.to/ub/how-to-add-brands-colors-on-tailwindcss-45f5</link>
      <guid>https://dev.to/ub/how-to-add-brands-colors-on-tailwindcss-45f5</guid>
      <description>&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--566lAguM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ublabs"&gt;
        ublabs
      &lt;/a&gt; / &lt;a href="https://github.com/ublabs/tailwindcss-brand-colors"&gt;
        tailwindcss-brand-colors
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      Tailwind plugin for adding brands colors.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;h3&gt;

TailwindCSS Brand Colors
&lt;/h3&gt;
&lt;p&gt;
  Tailwind plugin for adding brands colors.
&lt;/p&gt;




&lt;h2&gt;
Install&lt;/h2&gt;

&lt;div class="highlight highlight-source-shell position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;npm install @ublabs/tailwindcss-brand-colors&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;or&lt;/p&gt;

&lt;div class="highlight highlight-source-shell position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;yarn add @ublabs/tailwindcss-brand-colors&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Add the plugin to your tailwind.config.js file:&lt;/p&gt;

&lt;div class="highlight highlight-source-js position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-c"&gt;// tailwind.config.js&lt;/span&gt;
&lt;span class="pl-smi"&gt;module&lt;/span&gt;&lt;span class="pl-kos"&gt;.&lt;/span&gt;&lt;span class="pl-c1"&gt;exports&lt;/span&gt; &lt;span class="pl-c1"&gt;=&lt;/span&gt; &lt;span class="pl-kos"&gt;{&lt;/span&gt;
  &lt;span class="pl-c1"&gt;theme&lt;/span&gt;: &lt;span class="pl-kos"&gt;{&lt;/span&gt;
    &lt;span class="pl-c"&gt;// ...&lt;/span&gt;
  &lt;span class="pl-kos"&gt;}&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt;
  &lt;span class="pl-c1"&gt;plugins&lt;/span&gt;: &lt;span class="pl-kos"&gt;[&lt;/span&gt;
    &lt;span class="pl-c"&gt;//  for all list&lt;/span&gt;
    &lt;span class="pl-en"&gt;require&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;'@ublabs/tailwindcss-brand-colors'&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt;
    &lt;span class="pl-c"&gt;// select the brands&lt;/span&gt;
    &lt;span class="pl-en"&gt;require&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-s"&gt;'@ublabs/tailwindcss-brand-colors'&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;(&lt;/span&gt;&lt;span class="pl-kos"&gt;[&lt;/span&gt;&lt;span class="pl-s"&gt;'angular'&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt; &lt;span class="pl-s"&gt;'tailwindcss'&lt;/span&gt;&lt;span class="pl-kos"&gt;]&lt;/span&gt;&lt;span class="pl-kos"&gt;)&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt;
    &lt;span class="pl-c"&gt;// ...&lt;/span&gt;
  &lt;span class="pl-kos"&gt;]&lt;/span&gt;&lt;span class="pl-kos"&gt;,&lt;/span&gt;
&lt;span class="pl-kos"&gt;}&lt;/span&gt;&lt;span class="pl-kos"&gt;;&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;p&gt;&lt;a href="https://tailwindcss-brand-colors.pages.dev/" rel="nofollow"&gt;See the list of all brand colors available here&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
How to add a new brand color?&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Fork/Clone Repository&lt;/p&gt;
&lt;div class="highlight highlight-source-shell position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;git clone https://github.com/YOUR-USERNAME/tailwindcss-brand-colors&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install Dependencies&lt;/p&gt;
&lt;div class="highlight highlight-source-shell position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;yarn install&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select Color&lt;/p&gt;
&lt;p&gt;Ex: &lt;code&gt;#111827&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set Brand Color&lt;/p&gt;
&lt;div class="highlight highlight-source-shell position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;yarn nx workspace-schematic add-brand --name=&lt;span class="pl-k"&gt;&amp;lt;&lt;/span&gt;brand-name&lt;span class="pl-k"&gt;&amp;gt;&lt;/span&gt; --hex=&lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt;111827&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
Credits&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/adrian-ub"&gt;Adrián UB&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/ublabs/tailwindcss-brand-colors../../contributors"&gt;All Contributors&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Inspired by &lt;a href="https://github.com/simple-icons/simple-icons"&gt;Simple Icons&lt;/a&gt;.&lt;/p&gt;
&lt;h2&gt;
License&lt;/h2&gt;
&lt;p&gt;The MIT License (MIT). Please see &lt;a href="https://github.com/ublabs/tailwindcss-brand-colorsLICENSE.md"&gt;License File&lt;/a&gt; for more information.&lt;/p&gt;
&lt;/div&gt;

  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ublabs/tailwindcss-brand-colors"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



</description>
      <category>tailwindcss</category>
      <category>plugin</category>
    </item>
    <item>
      <title>How to use Simple Icons on Laravel Blade</title>
      <dc:creator>Adrián UB</dc:creator>
      <pubDate>Sun, 11 Apr 2021 17:55:25 +0000</pubDate>
      <link>https://dev.to/ub/how-to-use-simple-icons-on-laravel-blade-2155</link>
      <guid>https://dev.to/ub/how-to-use-simple-icons-on-laravel-blade-2155</guid>
      <description>&lt;h1&gt;
  
  
  Blade Simple Icons
&lt;/h1&gt;

&lt;p&gt;A package to easily make use of &lt;a href="https://simpleicons.org/" rel="noopener noreferrer"&gt;Simple Icons&lt;/a&gt; in your Laravel Blade views.&lt;/p&gt;

&lt;h2&gt;
  
  
  Requirements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;PHP 7.4 or higher&lt;/li&gt;
&lt;li&gt;Laravel 8.0 or higher&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;You can install the package via composer:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;composer require ublabs/blade-simple-icons
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;Icons can be used as self-closing Blade components which will be compiled to SVG icons:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;x-simpleicon-laravel /&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;You can also pass classes to your icon components:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;x-simpleicon-laravel class="w-6 h-6 text-red-500"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;And even use inline styles:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;x-simpleicon-laravel style="color: #FF2D20"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h3&gt;
  
  
  Raw SVG Icons
&lt;/h3&gt;

&lt;p&gt;If you want to use the raw SVG icons as assets, you can publish them using:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;php artisan vendor:publish &lt;span class="nt"&gt;--tag&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;blade-simple-icons &lt;span class="nt"&gt;--force&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then use them in your views like:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;img src="{{ asset('vendor/blade-simple-icons/laravel.svg') }}" width="10" height="10"/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/ublabs" rel="noopener noreferrer"&gt;
        ublabs
      &lt;/a&gt; / &lt;a href="https://github.com/ublabs/blade-simple-icons" rel="noopener noreferrer"&gt;
        blade-simple-icons
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A package to easily make use of Simple Icons in your Laravel Blade views.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;
    Blade Simple Icons
&lt;/h3&gt;
&lt;/div&gt;

&lt;p&gt;
    &lt;a href="https://github.com/ublabs/blade-simple-icons/actions?query=workflow%3ATests" rel="noopener noreferrer"&gt;
        &lt;img src="https://github.com/ublabs/blade-simple-icons/workflows/Tests/badge.svg" alt="Tests"&gt;
    &lt;/a&gt;
    &lt;a href="https://packagist.org/packages/ublabs/blade-simple-icons" rel="nofollow noopener noreferrer"&gt;
        &lt;img src="https://camo.githubusercontent.com/e038f0bf968a4def065f9d1efaaffa21c39b41a494901b7ce67551669f54d56f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f75626c6162732f626c6164652d73696d706c652d69636f6e73" alt="Latest Stable Version"&gt;
    &lt;/a&gt;
    &lt;a href="https://packagist.org/packages/ublabs/blade-simple-icons" rel="nofollow noopener noreferrer"&gt;
        &lt;img src="https://camo.githubusercontent.com/9e259fa83c6a04949b52b526bb6e1e029b654f111477fa4e32f889e98cf4ac35/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75626c6162732f626c6164652d73696d706c652d69636f6e73" alt="Total Downloads"&gt;
    &lt;/a&gt;
&lt;/p&gt;




&lt;p&gt;A package to easily make use of &lt;a href="https://simpleicons.org/" rel="nofollow noopener noreferrer"&gt;Simple Icons&lt;/a&gt; in your Laravel Blade views.&lt;/p&gt;

&lt;p&gt;For a full list of available icons see the &lt;a href="https://github.com/ublabs/blade-simple-icons./resources/svg" rel="noopener noreferrer"&gt;SVG directory&lt;/a&gt;.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Requirements&lt;/h2&gt;
&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;PHP 7.4 or higher&lt;/li&gt;
&lt;li&gt;Laravel 8.0 or higher&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Installation&lt;/h2&gt;
&lt;/div&gt;

&lt;p&gt;You can install the package via composer:&lt;/p&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;composer require ublabs/blade-simple-icons&lt;/pre&gt;

&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Usage&lt;/h2&gt;

&lt;/div&gt;

&lt;p&gt;Icons can be used as self-closing Blade components which will be compiled to SVG icons:&lt;/p&gt;

&lt;div class="highlight highlight-text-html-php-blade notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&amp;lt;&lt;span class="pl-ent"&gt;x-simpleicon-laravel&lt;/span&gt; /&amp;gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;You can also pass classes to your icon components:&lt;/p&gt;

&lt;div class="highlight highlight-text-html-php-blade notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&amp;lt;&lt;span class="pl-ent"&gt;x-simpleicon-laravel&lt;/span&gt; &lt;span class="pl-e"&gt;class&lt;/span&gt;=&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;w-6 h-6 text-red-500&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;And even use inline styles:&lt;/p&gt;

&lt;div class="highlight highlight-text-html-php-blade notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&amp;lt;&lt;span class="pl-ent"&gt;x-simpleicon-laravel&lt;/span&gt; &lt;span class="pl-e"&gt;style&lt;/span&gt;=&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;span class="pl-s1"&gt;&lt;span class="pl-c1"&gt;&lt;span class="pl-c1"&gt;color&lt;/span&gt;&lt;/span&gt;: &lt;span class="pl-c1"&gt;#FF2D20&lt;/span&gt;&lt;/span&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;/&amp;gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Raw SVG Icons&lt;/h3&gt;

&lt;/div&gt;

&lt;p&gt;If you want to use the raw SVG icons as assets, you can publish them using:&lt;/p&gt;

&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;php artisan vendor:publish --tag=blade-simple-icons --force&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Then use them in your views like:&lt;/p&gt;

&lt;div class="highlight highlight-text-html-php-blade notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&amp;lt;&lt;span class="pl-ent"&gt;img&lt;/span&gt; &lt;span class="pl-e"&gt;src&lt;/span&gt;=&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;span class="pl-c1"&gt;{{&lt;/span&gt;&lt;span class="pl-s1"&gt; &lt;span class="pl-en"&gt;asset&lt;/span&gt;(&lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;'&lt;/span&gt;vendor/blade-simple-icons/laravel.svg&lt;span class="pl-pds"&gt;'&lt;/span&gt;&lt;/span&gt;) &lt;/span&gt;&lt;span class="pl-c1"&gt;&lt;span class="pl-s1"&gt;}&lt;/span&gt;}&lt;/span&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt; &lt;span class="pl-e"&gt;width&lt;/span&gt;=&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/ublabs/blade-simple-icons" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



</description>
      <category>laravel</category>
      <category>svg</category>
      <category>blade</category>
    </item>
  </channel>
</rss>
