Gradient Generator — Create CSS Gradients

Create beautiful CSS gradients with full control over colors, positions, and types. Generate code for CSS, TailwindCSS, and use saved gradients.

Gradient Preview

Gradient Settings

Color Stops

Stop 1

Stop 2

Generated Code

.gradient {
  background: linear-gradient(to right, #3498db 0%, #e74c3c 100%);
}

Similar Tools

Discover other useful color tools

Complete Guide to Using Gradient Generator

Gradient Generator is a powerful online tool for creating beautiful CSS gradients with full control over colors, positions, and types. With this service, you can create professional gradients for your design.

Step 1: Choose Gradient Type

Select gradient type: linear or radial. Linear gradients create smooth transitions in a specific direction, while radial gradients transition from center to edges.

Step 2: Configure Direction or Shape

For linear gradients, choose direction (to top, to right, to bottom, to left, or diagonal directions). For radial gradients, choose shape: circle or ellipse.

Step 3: Add Color Stops

Add color stops by clicking 'Add Stop' button. For each stop, set color (using color picker or HEX input) and position (0-100%). Minimum 2 stops are required for a gradient.

Step 4: Use Additional Features

Use 'Random Gradient' button to generate a random gradient, 'Smooth Distribution' to evenly distribute stop positions, and 'Reverse Gradient' to change color order.

Step 5: Copy Generated Code

Select code format (CSS, TailwindCSS, or string) and click 'Copy' button. Code will be copied to clipboard and ready to use in your project.

Step 6: Save Gradient

Click 'Save Gradient' button to save current gradient to history. Saved gradients can be loaded later or deleted.

How to Use Gradient Generator

How to Create Linear Gradient

Select 'Linear' type and direction (e.g., 'to right'). Add at least 2 color stops with different colors and positions. Gradient will be created automatically.

How to Create Radial Gradient

Select 'Radial' type and shape (circle or ellipse). Add color stops. Radial gradient will create smooth transition from center to edges.

How to Use TailwindCSS Gradients

After creating gradient, select 'TailwindCSS' format in code block. Copy generated classes and use them in your HTML with TailwindCSS.

How to Save and Load Gradients

Click 'Save Gradient' button to save current gradient. Saved gradients are displayed in history section. Click on gradient to load or 'Delete' button to remove.

How to Use Random Gradient

Click 'Random Gradient' button to automatically generate a random gradient with random colors, type, and direction. This is great for inspiration.

How to Evenly Distribute Stops

Click 'Smooth Distribution' button to automatically evenly distribute positions of all color stops. This is useful for creating symmetrical gradients.

Frequently Asked Questions About Gradient Generator

What gradient types are supported?

Generator supports two gradient types: linear and radial. Linear gradients create smooth transitions in a specific direction, while radial gradients transition from center to edges.

How many color stops can I add?

You can add any number of color stops, but minimum 2 stops are required to create a gradient. More stops allow creating more complex and interesting gradients.

Can I use gradients in TailwindCSS?

Yes, generator creates TailwindCSS classes for your gradients. Select 'TailwindCSS' format in code block and copy generated classes.

How to save gradient?

Click 'Save Gradient' button to save current gradient to history. Saved gradients are stored in browser's localStorage and available on next visit.

What is smooth distribution?

Smooth distribution automatically distributes positions of all color stops evenly from 0% to 100%. This is useful for creating symmetrical gradients.

Can I use gradients for website background?

Yes, gradients are perfect for website backgrounds. Copy generated CSS code and use it in background property of your element.

How to reverse gradient?

Click 'Reverse Gradient' button to change color order in gradient. This will flip positions of all stops, creating reverse effect.

Can I use gradients for mobile design?

Yes, gradients work great on mobile devices. CSS gradients are fully supported by modern browsers and mobile devices.