CSS漸層產生器
建立線性和放射狀CSS漸層。以視覺化方式選擇顏色,並複製產生的CSS。
background: linear-gradient(135deg, #535beb, #7c3aed);
如何使用本工具
- 1
Click the Color 1 swatch and choose your starting color from the native color picker.
- 2
Click the Color 2 swatch and choose the color the gradient fades into.
- 3
Drag the Angle slider from 0 to 360 degrees to set the gradient direction; the live preview updates instantly.
- 4
Copy the generated background: linear-gradient(...) line from the code box into your stylesheet.
什麼是CSS漸層產生器?
CSS漸層是兩種或多種顏色之間的顏色過渡。線性漸層沿一個方向流動;放射狀漸層則從一個點向外發散。本產生器涵蓋常見場景;對於帶有自訂位置的複雜多色標漸層,請手動建立。
常見使用場景
Creating a hero section or landing page banner background that fades between two brand colors.
Generating button and card backgrounds with a subtle two-tone diagonal fade.
Producing a gradient overlay placed above a photo to improve text contrast.
Prototyping color direction quickly by dragging the angle slider before committing to final values.
Grabbing a ready-to-paste linear-gradient string for a Tailwind, styled-components, or plain CSS file.
Teaching or demonstrating how gradient angle changes the visual direction of a fade.
常見問題
漸層的效能高嗎?▼
我可以為漸層加入動畫嗎?▼
相關工具
顏色轉換工具(HEX/RGB/HSL)
在HEX、RGB和HSL格式之間轉換顏色。可視化選取顏色,或手動輸入數值。
CSS Box Shadow 產生器
以視覺化方式建立 CSS box-shadow 值。即時預覽並複製產生的 CSS。
Cubic Bezier緩動曲線產生器
為CSS建立cubic-bezier緩動曲線。內建標準預設。
配色方案產生器
從任意基準色產生和諧的配色方案。支援互補色、鄰近色、三角色和單色方案。
CSS Border Radius 產生器
以視覺化方式建立複雜的 CSS border-radius 值。可獨立控制每個圓角。
CSS Clamp()產生器
使用clamp()產生流式、響應式的CSS數值。在視口範圍內於最小值與最大值之間平滑縮放。