CSSテキストグラデーションジェネレーター
Create beautiful gradient text effects. Adjust colours, angle and preview text, then copy the CSS.
How It Works
- Choose your colors: Select two or more colors for the gradient using the color pickers.
- Set the angle and style: Choose linear or radial gradient, adjust the angle, and optionally add a color stop position.
- Copy the CSS: The generated CSS code uses background-clip: text and -webkit-background-clip: text for the gradient text effect — copy it directly into your stylesheet.
Why Use CSS Text Gradient Generator?
Gradient text is one of the most popular modern CSS effects for headings, logos, and call-to-action text. Achieving it requires a specific combination of CSS properties (background, background-clip, -webkit-text-fill-color) that is easy to get wrong. This generator handles the cross-browser syntax automatically and gives you a live preview so you can perfect your gradient before writing a single line of code.
Features
- Multi-color stops: Add as many color stops as you need for complex gradient effects.
- Linear and radial: Choose between directional linear gradients and centered radial gradients.
- Angle control: Set the gradient angle from 0° to 360° with a visual dial.
- Live preview: See your gradient text update in real time with your chosen sample text.
- Cross-browser CSS: Output includes -webkit prefixes and fallbacks for maximum compatibility.
Frequently Asked Questions
How does CSS gradient text work?
CSS gradient text works by applying a gradient as the element's background, then clipping the background to the text shape using background-clip: text and making the text color transparent with -webkit-text-fill-color: transparent (or color: transparent). Only the text-shaped cutout of the gradient is visible.
Does gradient text work in all browsers?
CSS gradient text works in all modern browsers including Chrome, Firefox, Safari, and Edge. The -webkit-background-clip: text property is well-supported. Always provide a solid color fallback for very old browsers using the color property.
Can I use this on any font size?
Yes. Gradient text scales perfectly with font size — it is pure CSS, not an image, so it remains crisp at any resolution including high-DPI displays.