Simple gradient background with CSS

Simple gradient playground

Choose a color pair and direction. The preview and visible CSS update together—no JavaScript required.

Color pair
Direction

A little color, simply

A static CSS background with readable content on a solid card.

background-color: #183154;
background-image: linear-gradient(to bottom rightto rightto bottom, #2563eb, #06b6d4#be185d, #f97316#065f46, #14b8a6);

Select and copy the visible CSS manually. Keyboard users can Tab to a radio group and use arrow keys to change its choice. This demo does not animate or save your choices.

Your browser is showing the default static gradient and its CSS. Interactive choices require CSS :has() support.