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
- Choose the start and end colors using the color pickers.
- Adjust the gradient angle (0° = top-to-bottom, 90° = left-to-right).
- 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 abackground-imageorbackgroundproperty 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 liketo rightorto 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をコピーできます。構文を覚えなくても背景・ボタン・ヒーローセクションの装飾が作れます。
使い方
- 開始色と終了色を選びます。
- ライブプレビューを見ながら角度を調整します。
- 生成された linear-gradient() のCSSをコピーしてスタイルシートに貼り付けます。
使用例
-
ヒーロー背景
入力: 紫から青、135deg
出力: background: linear-gradient(135deg, #8b5cf6, #3b82f6);
-
ボタンのアクセント
入力: オレンジからピンク、90deg
出力: CTAボタン用の水平2色グラデーション
補足
- 生成できるのは線形グラデーションです。放射状は radial-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: