← ツール一覧へ戻る

CSSグラデーション生成

グラデーションを視覚的に作成し、CSSコードをコピーできます。

What is CSS Gradient Generator?

CSS Gradient Generator lets you create linear CSS gradients visually by picking colors, adjusting stops, and setting the angle. The tool outputs production-ready CSS code that you can copy directly into your stylesheet.

How to use

  1. Choose the start and end colors using the color pickers.
  2. Adjust the gradient angle (0° = top-to-bottom, 90° = left-to-right).
  3. Preview updates in real time. Copy the CSS output with the Copy button.

Notes

  • The generated CSS uses linear-gradient(), which is supported by all modern browsers.
  • For radial gradients, use radial-gradient() — this tool currently generates linear gradients only.
  • You can add transparency by choosing colors with alpha values in RGBA format.

FAQ

What is a linear gradient in CSS?
A linear-gradient() transitions between two or more colors along a straight line at a specified angle. It is set as a background-image or background property in CSS.
How do I set the gradient angle?
Angles in linear-gradient() are measured clockwise from the top. 0° flows downward, 90° flows to the right, 180° flows upward, and 270° flows to the left. You can also use direction keywords like to right or to bottom right.
Can I use more than two colors?
Yes. Add additional color stops in the CSS manually: linear-gradient(90deg, red, yellow, green). This tool generates two-stop gradients — add more stops in your editor as needed.

概要

2色と角度を選ぶだけで線形CSSグラデーションを視覚的に作成し、そのまま使えるCSSをコピーできます。構文を覚えなくても背景・ボタン・ヒーローセクションの装飾が作れます。

使い方

  1. 開始色と終了色を選びます。
  2. ライブプレビューを見ながら角度を調整します。
  3. 生成された linear-gradient() のCSSをコピーしてスタイルシートに貼り付けます。

使用例

補足

よくある質問

3色以上のグラデーションは作れますか?
出力は2色です。linear-gradient(90deg, red, yellow, green) のように手動で停止点を追加してください。
角度はどういう意味ですか?
0deg が上方向で、時計回りに増えます。90deg は左→右、180deg は上→下です。
グラデーションは表示性能に影響しますか?
CSSグラデーションはブラウザ描画のため、画像ファイルより一般に軽量です。

Embed this tool

Paste this iframe into any HTML page to embed CSSグラデーション生成 on your site:

関連ツール