<?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: Raja Krishna</title>
    <description>The latest articles on DEV Community by Raja Krishna (@rajakrishna).</description>
    <link>https://dev.to/rajakrishna</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%2F171463%2Fce835752-74d0-421a-8913-27145d1211f8.jpg</url>
      <title>DEV Community: Raja Krishna</title>
      <link>https://dev.to/rajakrishna</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rajakrishna"/>
    <language>en</language>
    <item>
      <title>Different use for CSS gradients</title>
      <dc:creator>Raja Krishna</dc:creator>
      <pubDate>Fri, 24 May 2019 16:59:43 +0000</pubDate>
      <link>https://dev.to/rajakrishna/different-use-for-css-gradients-3fj9</link>
      <guid>https://dev.to/rajakrishna/different-use-for-css-gradients-3fj9</guid>
      <description>&lt;p&gt;Recently i was working on a small project of making a digital clock chrome extension. I wanted to keep the design as minimal as possible and also reduce the size of the extension. So instead of regular BORING backgrounds, i tried to use CSS gradients to see if i could come up with something.&lt;/p&gt;

&lt;p&gt;Tried every possible way and the gradients were bad. So as a last resort i googled to see if i could have a multi-colored CSS gradient without actually having a transition from color to color. Then i stumbled upon this post:&lt;br&gt;
&lt;a href="https://blog.prototypr.io/css-only-multi-color-backgrounds-4d96a5569a20" rel="noopener noreferrer"&gt;https://blog.prototypr.io/css-only-multi-color-backgrounds-4d96a5569a20&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The simple logic here is that we stop the first color at x% and start the second color at x% or &amp;lt;x%. This removes the gradient from the linear-gradient and defines a clear edge between both colors giving the background a multi-colored-material effect. You can check out more in the post.&lt;/p&gt;

&lt;p&gt;You can check out the extension here: &lt;a href="https://chrome.google.com/webstore/detail/simple-clock/fngkigemfllijjloedplghepagidclef" rel="noopener noreferrer"&gt;https://chrome.google.com/webstore/detail/simple-clock/fngkigemfllijjloedplghepagidclef&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsvtgl4tbk2gdgp3kgf5c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsvtgl4tbk2gdgp3kgf5c.png" width="800" height="500"&gt;&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;GitHub link to the project: &lt;a href="https://github.com/Raja-Krishna/Simple-Clock" rel="noopener noreferrer"&gt;https://github.com/Raja-Krishna/Simple-Clock&lt;/a&gt;&lt;/p&gt;

</description>
      <category>css</category>
      <category>discuss</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
