ShareYourGroupShareYourGroupCSS Lab

CSS gradient presets

20 gradients you can copy. Each is a complete background declaration.

How to use these

Press Copy on a card and paste the line into the rule of your element. Every gradient here was checked in current Chrome and WebKit on 13 November 2026. To change the colours or the angle, open the gradient generator and type your own, or read the guide to gradients to understand each part.

Check the contrast of your text against the whole gradient, not only against the colour at one end. Light gradients such as Mint and Peach need dark text, and dark ones such as Night sky and Plum need light text. The Photo fade is meant to sit on top of a picture, as a second background layer, to make white text readable.

This is an independent site. It is not connected with the W3C, MDN, Google, Apple, Mozilla or Microsoft. Browser and product names belong to their owners.