Css text gradient

How to add css gradient on text

CSS Gradient is a modern and stylish web design technique used to create smooth color transitions in backgrounds, text, borders, buttons, and images. This technique helps colors blend softly from one shade to another, making a design look more attractive and professional.

There are different types of gradients such as linear, radial, and conic gradients, which allow designers to create unique visual styles according to their creativity.

The best part is that gradients can make a website look vibrant and eye-catching without using heavy image files, helping pages load faster. While using CSS gradients, it’s important to maintain proper color contrast and readability to keep the design both beautiful and user-friendly. In today’s modern web design world, gradient effects have become a strong visual trend that adds depth and style to any website.

What is a Text Gradient?

A text gradient is a visual effect where text color smoothly transitions between multiple colors — like from blue to pink or orange to red.
It’s widely used in modern UI design, logos, and titles because it grabs attention without heavy graphics.

How CSS Text Gradient Works

To apply a gradient to text, we can’t just use color: linear-gradient() — CSS doesn’t allow that directly.
So, we use a small CSS trick:

Basic code example:

<h1 class="gradient-text">Hello Gradient!</h1>
.gradient-text {
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff6900, #ee0979);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

Demo:

Hello Gradient!


More 50 Professional Text Gradients Showcase for you 🙂

Here is css code for you to copy and paste where you want to use gradient for text and replace color according to your need

background: linear-gradient(90deg, #f093fb, #f5576c);
 -webkit-background-clip: text;
 -webkit-text-fill-color: transparent;
 background-clip: text;

Sapphire Dreams

#0f2027 → #203a43 → #2c5364

Royal Indigo

#2b5876 → #4e4376

Emerald Horizon

#11998e → #38ef7d

Slate Dawn

#283048 → #859398

Golden Steel

#f7971e → #ffd200

Charcoal Silver

#232526 → #414345

Coral Ember

#ff512f → #dd2476

Skyline Blue

#2193b0 → #6dd5ed

Ruby Flame

#e52d27 → #b31217

Titanium Grey

#757f9a → #d7dde8

Ocean Depth

#4b6cb7 → #182848

Sunset Bloom

#ff416c → #ff4b2b

Cool Sky

#56ccf2 → #2f80ed

Autumn Flame

#de6262 → #ffb88c

Aqua Violet

#8360c3 → #2ebf91

Tropical Coral

#ff9966 → #ff5e62

Marine Aqua

#43cea2 → #185a9d

Crimson Night

#c31432 → #240b36

Pink Heat

#ff6a00 → #ee0979

Violet Blaze

#7f00ff → #e100ff

Royal Purple

#8e2de2 → #4a00e0

Crimson Surge

#f00000 → #dc281e

Steel Wave

#373b44 → #4286f4

Neo Mint

#0cebeb → #20e3b2 → #29ffc6

Cyan Gold

#22c1c3 → #fdbb2d

Rose Mist

#ee9ca7 → #ffdde1

Amber Flame

#1a2a6c → #b21f1f → #fdbb2d

Aqua Sun

#00c3ff → #ffff1c

Candy Burst

#12c2e9 → #c471ed → #f64f59

Peach Sky

#fc5c7d → #6a82fb

Cool Breeze

#4facfe → #00f2fe

Minty Fresh

#a8ff78 → #78ffd6

Soft Cream

#fddb92 → #d1fdff

Royal Glow

#4158d0 → #c850c0 → #ffcc70

Lime Stream

#00b09b → #96c93d

Frost White

#fdfbfb → #ebedee

Sweet Blush

#ff9a9e → #fad0c4

Clear Sky

#a1c4fd → #c2e9fb

Golden Peach

#ffecd2 → #fcb69f

Blue Horizon

#89f7fe → #66a6ff

Lavender Rose

#fbc2eb → #a6c1ee

Neon Coral

#ff8177 → #b12a5b

Amethyst Pink

#654ea3 → #eaafc8

Soft Bloom

#ffafbd → #ffc3a0

Icy Rose

#a8edea → #fed6e3

Warm Dusk

#f6d365 → #fda085

Candy Crush

#f093fb → #f5576c

Aero Blue

#48c6ef → #6f86d6

Golden Sunset

#ffb347 → #ffcc33

Purple Sky

#6a11cb → #2575fc

How to apply CSS Style to an <Object><object> child</object>

CSS-Only Masonry Layout — Easy Step-by-Step Guide

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Posts