<?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: Kareem Dabbeet</title>
    <description>The latest articles on DEV Community by Kareem Dabbeet (@kareemdabbeet).</description>
    <link>https://dev.to/kareemdabbeet</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%2F897613%2Fd7f55036-b03e-423b-8c1a-73793e4886d7.jpeg</url>
      <title>DEV Community: Kareem Dabbeet</title>
      <link>https://dev.to/kareemdabbeet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kareemdabbeet"/>
    <language>en</language>
    <item>
      <title>How to Generate Gradient text using CSS</title>
      <dc:creator>Kareem Dabbeet</dc:creator>
      <pubDate>Wed, 27 Jul 2022 12:57:00 +0000</pubDate>
      <link>https://dev.to/kareemdabbeet/how-to-generate-gradient-text-using-css-572o</link>
      <guid>https://dev.to/kareemdabbeet/how-to-generate-gradient-text-using-css-572o</guid>
      <description>&lt;p&gt;Recently, Gradient Text is being used more on popular sites and becoming a trend!&lt;/p&gt;

&lt;p&gt;Both &lt;a href="https://vuejs.org/" rel="noopener noreferrer"&gt;Vuejs&lt;/a&gt; and &lt;a href="https://netlify.com/" rel="noopener noreferrer"&gt;Netlify&lt;/a&gt; are using gradient text on their hero scetion in the homepage!&lt;/p&gt;

&lt;p&gt;Have you ever wondered how to achieve this style using CSS only?&lt;/p&gt;

&lt;p&gt;In this article, I want to show you how a use an easy website to generate CSS gradient text, and how to implement it manually using CSS only. &lt;/p&gt;

&lt;h2&gt;
  
  
  how to Generate CSS Gradient Text using an online website:
&lt;/h2&gt;

&lt;p&gt;I've published a helpful website: CSS gradient text | free online gradient text generator.&lt;/p&gt;

&lt;p&gt;🔗 Website URL: &lt;a href="https://www.cssgradienttext.com" rel="noopener noreferrer"&gt;cssgradienttext.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Using this tool, you customize gradient colors (add, remove, re-order them) and angle, then copy the generated code!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2Fgoss903bupqgkz98jzm0.png" class="article-body-image-wrapper"&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-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgoss903bupqgkz98jzm0.png" alt="cssgradienttext.com"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I'm looking forward to getting your feedback and suggestions in the comments below!. &lt;/p&gt;

&lt;h2&gt;
  
  
  how to Manually Implement Gradient Text using CSS only
&lt;/h2&gt;

&lt;p&gt;The idea behind this is only to set three different CSS properties to the text we want to style:&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;

&lt;p&gt;&lt;span class="nt"&gt;div&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;br&gt;
  &lt;span class="nl"&gt;-webkit-background-clip&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;text&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;br&gt;
  &lt;span class="nl"&gt;-webkit-text-fill-color&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;transparent&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;br&gt;
  &lt;span class="nl"&gt;background&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;//&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt; &lt;span class="n"&gt;gradient&lt;/span&gt; &lt;span class="n"&gt;here&lt;/span&gt;&lt;br&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  How does it work?&lt;br&gt;
&lt;/h3&gt;

&lt;p&gt;the first property is &lt;code&gt;-webkit-background-clip&lt;/code&gt; which is responsible for only rendering the background where there's text.&lt;/p&gt;

&lt;p&gt;Second property is &lt;code&gt;text-fill-color&lt;/code&gt; which is set to &lt;code&gt;transparent&lt;/code&gt;. because we want to hide the text to be able to show the gradient background behind it!.&lt;/p&gt;

&lt;p&gt;Third property is simple which is: &lt;code&gt;background-image: linear-gradient(45deg, #f3ec78, #af4261);&lt;/code&gt;. you can change the angle, and colors, and add multiple colors.&lt;/p&gt;

&lt;p&gt;Check &lt;a href="https://developer.mozilla.org/en-US/docs/Web/CSS/gradient/linear-gradient" rel="noopener noreferrer"&gt;Mozilla Docs for linear-gradient&lt;/a&gt; to see all options. &lt;/p&gt;

&lt;p&gt;If you want to see more cool things You can hit the Follow Button! I'll regularly add more content related to CSS, Javascript, Vue, and Nuxt in the future!&lt;/p&gt;

&lt;p&gt;Thank you for reading 🤓&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>frontend</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
