Gradient Text Generator

Generate CSS for gradient text

Preview

Gradient Text

Settings

px
px
Type
°

Color stops

Click the band to add a color stop at that position.

%
%
Presets
Output
.gradient-text {
  font-family: system-ui, sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0px;
  line-height: normal;
  background-image: linear-gradient(90deg, #fef3c7 0%, #fbbf24 60%, #d97706 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

What is Gradient Text Generator?

Gradient Text Generator creates CSS that fills headings and logo text with a gradient. Choose your text and font, adjust the colors, angle, and color stops, and the preview and CSS update together. Switch between a light and dark background to judge the result against the surface where you will use it.

How to Use

  1. Enter the text and choose a font.
  2. Pick a preset or choose the gradient type and angle.
  3. Adjust the color, position, and opacity of each color stop.
  4. Copy the generated CSS and paste it into your heading or logo style.

Pin the preview to keep it visible while you scroll through the settings.

Main Settings

Text

Change the text shown in the preview. The tool is intended for short headings, taglines, and logo-style words.

Font

Choose a system font or a Google font. Google fonts load for the preview and add an @import at the top of the output. Available weights vary by font. Weight, size, and letter spacing are set here too.

Gradient

Switch between linear and radial gradients. Linear gradients use an angle, while radial gradients let you choose the shape and center position.

Color Stops

Color stops define where one color changes into the next. Add two or more stops, then adjust the color, opacity, and position of each. You can also add, move, and delete stops, or distribute them evenly.

Presets

Presets give you a starting palette. Each one replaces the gradient type, angle, shape, center position, and color stops, so you can refine the values from there.

Background

Switch the preview background between light and dark. The background is for preview only and is not included in the output CSS.

Output

Copy the CSS for the .gradient-text class. Rename the selector to match your own class. When you choose a Google font, the output starts with an @import, which must be placed at the top of your stylesheet.

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

.gradient-text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0px;
  line-height: normal;
  background-image: linear-gradient(90deg, #fef3c7 0%, #fbbf24 60%, #d97706 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

Use Cases

  • Making a landing page headline stand out
  • Trying logo-like text treatments
  • Adding emphasis to a section title or short tagline
  • Deciding whether gradient text works better on a light or dark background

Things to Keep in Mind

  • Gradient text is decorative and a poor fit for long body text
  • Readability depends on the background and palette, so check the result on the surface where you will use it
  • Transparent color stops can make parts of the text blend into the background