Color Palette Generator
Generate complementary, analogous and triadic palettes from one colour.
Put a gradient on a border — and keep the rounded corners.
The CSS appears here
The Gradient Border Generator produces all three techniques from the same settings — border-image, the double-background trick and the mask approach — so the corner-radius problem is visible rather than described.
A gradient border sounds simple and is not, because border-color takes a colour and a gradient is an image. There are three ways around it, and they have different trade-offs — this generates all three so you can take the one that fits.
border-image is the direct answer and the shortest code, but it ignores border-radius entirely: the corners come out square no matter what you set. The double-background technique — a padding box in your surface colour over a border box holding the gradient — keeps the radius perfectly and is what most design systems use. The mask approach handles the hardest case, a gradient border on a transparent element, at the cost of slightly more CSS.
All three are previewed live with the same settings, so you can see the corner difference rather than read about it, and each comes with the browser support note that decides it.
border-image ignores border-radius entirely. Seeing the square corners next to the round ones settles the choice in a second.
Two backgrounds with different clip boxes — the method most design systems use, and the one that keeps the radius.
For the hard case: a gradient border on an element that has to stay transparent.
Linear, radial and conic, including the rotating conic border.
Each technique carries the browser note that actually decides which one you use.
Colours, angle and type — linear, radial or conic.
Width and corner radius, which is where the techniques differ.
The same settings rendered by each method, side by side.
Each comes with its browser support note.
Because you are using border-image, which does not respect border-radius — this is specified behaviour, not a bug. Use the double-background or mask technique instead.
The double-background one, for almost everything: it keeps the radius, works everywhere and needs no masking. Switch to the mask version only when the element behind the border has to stay transparent.
Two backgrounds on one element. The first is your surface colour clipped to the padding box; the second is the gradient clipped to the border box. The gradient only shows in the strip the first one does not cover — the border.
Yes. Animate the background-position, or register an angle custom property with @property and animate that for a rotating conic border. Animating the gradient stops themselves does not interpolate.
What people who use the Gradient Border Generator think of it. Reviews come from visitors and are posted as written.
No ratings yet
Yours would be the first.
0 reviews
Newest first
No reviews yet
Be the first to rate the Gradient Border Generator. It takes half a minute and no account.
Write the first reviewGenerate complementary, analogous and triadic palettes from one colour.
Generate random colours you would actually use.
Turn one colour into a full 50–950 Tailwind scale.
Convert to and from HWB, the hue-whiteness-blackness notation.
Score every colour in a palette against every other one.
Convert HSL to HEX and back, with the maths written out.
Score a colour pair with APCA, the contrast model behind WCAG 3.
An interactive colour wheel with every classical harmony.