Guide
CSS Text Gradient Generator online
Build gradient typography from editable stops and real text. Choose six gradient types, highlight selected phrases, simulate metallic effects and export standalone code with safe fallbacks.
developer tool
Create CSS gradient text with editable colors, typography, word highlights, outlines, shadows and animations. Preview real device widths and export HTML, CSS, Tailwind v4 code or supported SVG outlines.
Guide
Build gradient typography from editable stops and real text. Choose six gradient types, highlight selected phrases, simulate metallic effects and export standalone code with safe fallbacks.
Write up to 1000 characters, keep line breaks, and choose full text, selected ranges, individual words or phrase highlights.
Edit two to twelve color stops, opacity, positions, direction and sizing. Choose local fonts, responsive sizes, outlines and decorative shadows.
Inspect actual mobile, tablet and desktop iframe widths. Try a realistic heading context, check readability and use accessible play, pause and replay controls.
Export HTML, CSS, CSS variables, Tailwind v4 utilities with supplemental styles, or supported SVG outlines. Save validated configuration JSON to continue editing later.
This visual editor turns plain text, color stops and typography settings into reusable gradient text. It generates semantic markup, scoped CSS, Tailwind v4 utilities with supplemental CSS, and complete examples. The preview and downloads use the same validated configuration.
Start with a solid fallback: .gradient-text { color: #6366f1; }. Inside @supports ((background-clip:text) or (-webkit-background-clip:text)), set background-image:linear-gradient(90deg,#6366f1,#ec4899), background-clip:text, -webkit-background-clip:text, color:transparent and -webkit-text-fill-color:transparent. The background becomes visible through the glyphs.
A background gradient normally fills an element’s rectangle. Clipping it to text exposes only the glyph shapes. Text-sized pieces and full-container paint boxes can produce very different color distributions, especially in multiline headings. Choose the paint box deliberately rather than assuming a block heading fits its visible letters.
Set the angle directly or use one of eight direction buttons. Linear and radial stops use percentages or pixels. Repeating gradients need a positive interval after CSS fixes decreasing stop positions; equal first and last positions are rejected. Duplicate positions inside the interval intentionally create sharp boundaries.
Choose circle or ellipse, a closest/farthest side or corner extent, and a horizontal/vertical center. A radial gradient spreads from that center across the paint box. Use repeating radial mode for rings. The appearance depends on both the text box dimensions and the authored stops.
Conic gradients rotate around a center, beginning at the configured angle. Stops use percentages, degrees or turns. Repeating conic gradients repeat their angular interval. The editor uses one shared unit per gradient so pointer positions, numeric bounds and repeat validation remain predictable.
Rainbow effects populate a real sequence of editable colors. Hard-edge effects retain duplicate positions, such as red 0%, red 33%, yellow 33%, yellow 66%. Reordering changes authored color order; CSS clamps decreasing positions rather than silently sorting or deleting stops.
Gold, silver, copper, rose gold and chrome presets alternate dark tones and narrow highlights. These are visual simulations, not physically realistic materials. Font weight, gradient angle, paint-box size and the final background strongly affect their appearance.
Neon and glow presets combine bright color stops with editable shadow layers. Up to four shadows render in a separate decorative text layer behind the fill, with aria-hidden to avoid duplicate accessible text. Test the actual background; a glow cannot guarantee readable glyphs.
Enable a flow, shine, pulse or hue-flow recipe, then customize timing, positions, sizing and playback direction. Animation defaults off. Examples include a labeled pause checkbox, optional hover pause and prefers-reduced-motion rules. Ordinary position flows can show a restart jump; they are not described as seamless.
Choose Selected Text or Highlight mode, select text in the editor and add the range, or match an exact phrase. Ranges use browser UTF-16 offsets, cannot overlap and cannot split grapheme clusters such as emoji or combining sequences. Text changes clear ranges so old offsets do not silently highlight different words.
Word mode paints each word separately while preserving reading order, spaces and line breaks. Choose the same gradient, alternate its direction, or vary its hue. International word boundaries use the browser’s Intl.Segmenter when available; the fallback groups text separated by whitespace.
Use local system stacks or a validated custom font name. Sizes are entered as PX equivalents and converted to PX, REM or EM using the configured root/parent size. Optional clamp() sizing reuses the shared fluid-typography calculation. Custom fonts must already be installed or supplied by the destination site.
-webkit-text-stroke accepts a solid color, not a gradient. Ordinary text supports configurable solid stroke width, color, opacity and fill visibility. True multicolor outlines use generated SVG with unique gradient identifiers. SVG mode is limited to single-line full text, linear percentage stops, fixed PX sizing, no shadows and no animation; fitted textLength controls its width.
The Tailwind tab produces arbitrary-value classes for the actual gradient, background size and position. Compile the complete class strings in your destination project and append the supplied scoped CSS for clipping fallbacks, typography, selected ranges, shadows, strokes and motion. Ordinary HTML exports do not require Tailwind.
Convert class to className and any inline style attributes to React style objects, then add the scoped CSS. CSS gradients and the exported pause checkbox need no carousel or animation library. In Next.js, keep suitable text markup server rendered and preserve page-level metadata ownership.
Place the HTML in a supported Custom HTML block or theme template and add the stylesheet through your theme’s supported mechanism. Update the class scope when combining distinct designs. Check the published heading, actual font availability, final background, wrapping and reduced-motion behavior.
A solid fallback remains outside the background-clip feature query. Forced-colors mode removes decorative backgrounds, strokes, shadows and animation and uses CanvasText. Color emoji and available font weights can differ by platform. Verify the final target browsers; this generator does not certify universal rendering parity.
For known opaque solid preview backgrounds, the tool samples stop colors and intermediate sRGB mixtures with alpha compositing and reports the lowest estimated ratio. This is an estimate, not a WCAG pass claim: gradient geometry, actual browser interpolation, outlines, glyph coverage and the final background can change readability. Gradient and checkerboard backgrounds require visual inspection.
Versioned JSON validates color syntax, stop counts, IDs, numeric bounds, font names, CSS identifiers, ranges and supported SVG combinations. User text is escaped and never executed as markup. Download reusable CSS, a standalone HTML example, or SVG when supported. PNG export is not included because CSS-to-image parity is not available here.
Avoid transparent text without a clipping fallback, tiny unreadable color bands, zero-length repeating intervals, inaccessible continuous animation and duplicate readable shadow text. Keep typography responsive, use a deliberate paint box, and inspect intermediate colors rather than checking only the first and last stops.
It is a visual editor for gradient typography that exports reusable HTML, CSS, Tailwind v4 code and supported SVG outlines.
Add a gradient background, clip it to text inside a feature query, and make the supported text fill transparent while keeping a solid fallback outside that query.
It restricts an element’s background paint to the shapes of its text glyphs.
Yes. Ordinary exported effects, CSS animations and the pause checkbox work through HTML and CSS.
Yes. Add two to twelve stops using validated HEX, RGB, RGBA, HSL or HSLA values, with separate opacity and position controls.
Yes. Rainbow and pastel presets load editable multicolor stops. Individual words can use the same palette, alternating directions or hue variation.
Yes. Gold and other metallic presets use alternating colors and highlights to simulate a metallic appearance.
Yes. Ten editable animation recipes include flows, shine, pulse and hue movement, with pause controls and reduced-motion support.
Yes. Select text, add validated ranges or match exact phrases. Editing the underlying text clears old ranges.
Yes. Use PX, REM or EM output, weights from 100 to 900, local font stacks and optional responsive clamp() sizing.
Yes. CSS supports a solid stroke. Supported single-line linear designs can instead use generated SVG for a true gradient stroke.
Yes. Use up to four editable shadow layers or load one of seven shadow presets. Decorative duplicate text is hidden from assistive technologies.
The tool provides wrapping and fluid sizing with actual device-width previews. Check the generated design in your target browsers and fonts.
Yes. The output uses Tailwind v4 arbitrary-value utilities and includes supplemental scoped CSS for advanced behavior and fallbacks.
Yes. Adapt HTML attributes to JSX and add the generated scoped stylesheet. Ordinary exports need no JavaScript initializer.
Yes. Add the markup and styles through supported blocks or theme mechanisms, then inspect the published page.
Yes. Download CSS, complete HTML and versioned configuration JSON, plus SVG for supported outline designs.
Accessibility depends on the finished design. The output keeps real text, supplies clipping and forced-color fallbacks, hides decorative duplicates and respects reduced motion. Contrast estimates do not certify compliance.
Yes. Editing, previewing, copying and downloading require no account or payment.
Yes, for single-line full text with linear percentage stops, fixed PX sizing, zero stop offset, no shadows and no animation. Text is safely serialized and fitted to a configurable SVG width.
Create linear and radial CSS gradients with editable color stops.
Create layered text shadows, neon glow and 3D typography with live previews.
Create CSS keyframe animations with live playback, presets and custom stops.
Generate fluid font sizes, modular scales and typography tokens with CSS clamp().
Build editable gradient typography and export reusable code.
Text and configuration are processed locally. No fonts are downloaded by this tool. Metallic, chrome and holographic looks are visual simulations.
Linear and radial stops support % or px; conic stops support %, degrees or turns. Each gradient uses one shared unit. Repeating types need a positive interval.
Drag a stop, use arrow keys (Shift for larger steps), or edit its numeric position below. Handles represent the full unit range. Authored order and duplicate positions are preserved; CSS clamps decreasing positions.
The angle input is the custom direction. Conic gradients use it as their starting angle.
Text-sized pieces paint their own boxes; container sizing spans the heading width in Full Text mode. Auto, cover and contain can look alike for gradients without intrinsic dimensions. Changing scale converts sizing keywords to percentages.
Sizes use PX equivalents; REM and EM exports convert using the configured root/parent size. Custom fonts must already be installed or loaded by your destination website. Available weights and color emoji behavior depend on the font.
Effects change real gradient stops, outlines and shadows. All remain editable. Metallic bands simulate materials.
CSS text-stroke is solid color. True multicolor outlines use safely generated SVG, limited to single-line full text, linear % stops, fixed PX size, zero stop offset, no shadows and no animation. SVG text fits the configured width using textLength; wrapping and paint-box settings are unavailable.
Up to four shadow layers sit in a separate decorative text layer hidden from assistive technologies, behind the gradient fill.
Animation defaults off. Recipes load editable sizing and positions. Exported examples include a keyboard-accessible pause checkbox. Reduced motion keeps text static. Ordinary flow recipes may show a restart jump and are not described as seamless.
Background controls always affect the preview. They enter the complete example only when included; reusable text CSS remains separate.
Sampled sRGB gradient-fill contrast estimate against this preview background: 3.53:1 (lowest sampled value). Intermediate colors and alpha are sampled; this does not certify readability or WCAG compliance.
Fluid sizes interpolate between the configured viewport bounds and clamp outside them. The iframe uses actual viewport dimensions.
32 presets preserve your text. Only presets labeled animated enable motion. The SVG outline preset requires compatible single-line text.
Imports validate the version, fields, stops, color formats, typography, ranges, fonts, CSS names, shadows and animation bounds. Plain text is escaped; arbitrary HTML/CSS/SVG is not accepted.
Wide devices scroll inside this panel. Text remains real selectable text. Color emoji may retain their native colors. Motion honors reduced-motion preferences and pauses outside the visible preview.
.gradient-text-example{box-sizing:border-box;max-width:100%;min-width:0;text-align:center}
.gradient-text{display:block;box-sizing:border-box;min-width:0;width:100%;max-width:1000px;margin:0 auto;font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;font-size:64px;font-weight:800;font-style:normal;line-height:1.2;letter-spacing:-1px;word-spacing:0px;text-align:center;text-transform:none;color:rgba(15,23,42,1);white-space:pre-wrap;overflow-wrap:anywhere;}
.gradient-text .tg-piece{position:relative;isolation:isolate;display:inline-block;vertical-align:baseline;max-width:100%;}
.gradient-text .tg-paint{position:relative;display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone;color:rgba(99,102,241,1)}
@supports ((background-clip:text) or (-webkit-background-clip:text)) and (background-image:linear-gradient(90deg, #6366F1 0%, #A855F7 50%, #EC4899 100%)) and (background-image:var(--tg-gradient,linear-gradient(90deg, #6366F1 0%, #A855F7 50%, #EC4899 100%))){.gradient-text .tg-paint{display:inline-block;max-width:100%;background-image:var(--tg-gradient,linear-gradient(90deg, #6366F1 0%, #A855F7 50%, #EC4899 100%));background-size:100% 100%;background-position:50% 50%;background-repeat:no-repeat;background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;}}
.gradient-text-example :focus-visible{outline:3px solid #6366F1;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.gradient-text .tg-paint{animation:none!important;transition:none!important}}
@media(forced-colors:active){.gradient-text,.gradient-text .tg-paint{background:none!important;color:CanvasText!important;-webkit-text-fill-color:CanvasText!important;-webkit-text-stroke:0!important;text-shadow:none!important;filter:none!important;animation:none!important}.gradient-text .tg-shadow{display:none!important}.gradient-text .tg-svg-glyph{fill:CanvasText!important;stroke:none!important}}HTML download is a complete document; the HTML tab is the reusable fragment. Tailwind v4 output includes real arbitrary-value utilities and supplemental CSS for fallback, ranges, shadows, outlines and motion. Compile the full generated class strings in your destination project.
CSS text-stroke is a solid outline. Choose SVG outline for supported multicolor strokes. PNG export is not included.