GamutDesk Logo
GamutDesk

CSS Linear & Radial Gradient Maker

Create visual linear and radial CSS gradients with 360-degree angle control and multi-stop positioning. Export clean CSS.

Client-Side ArchitecturePrivate Client-Side Processing
135° Linear Gradient
Gradient Type
Angle135°
Color Stops (3/8)
0%
50%
100%
Generated CSS Code
background: #1E3A8A;
background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 50%, #10B981 100%);

Technical Specification & Mathematical Principles

CSS gradients mathematically interpolate color channels between discrete color stops using linear sRGB vector equations.

Linear gradients calculate position vectors [x(t), y(t)] = t * [cos(θ), sin(θ)], while radial gradients calculate Euclidean distance r = √((x - cx)² + (y - cy)²) from the origin anchor.

Specialized Gradient Instruments

Frequently Asked Questions

How do linear gradient angles work in CSS?
In modern CSS specifications, 0deg points upward (to top), 90deg points to the right, 180deg points downward (to bottom), and 270deg points to the left.
Why should color stops be sorted by percentage?
While CSS allows out-of-order stops, browsers automatically clamp subsequent stops so positions increase monotonically. Keeping them ordered ensures predictable color transitions.
Is fallback solid background included in export?
Yes, the exported snippet includes a solid background color rule using your first stop color as a fallback for legacy browsers that do not support CSS3 gradient rendering.

Related Design & Color Instruments