niceui

Black Gradient

A free linear gradient you can copy as CSS or Tailwind. Deep, low-contrast gradients for dark mode heroes and app backgrounds.

CSS

.black-bg {
  background: linear-gradient(135deg, #000000 0%, #1c1e22 100%);
}

Tailwind CSS

With Tailwind's gradient utilities:

bg-gradient-to-br from-[#000000] to-[#1c1e22]

Or the exact gradient as an arbitrary value:

bg-[image:linear-gradient(135deg,#000000_0%,#1c1e22_100%)]
Edit this gradient in the Gradient MakerMesh, conic and animated shader gradients, grain, PNG export and one-click CSS, Tailwind, React or HTML.

FAQ

How do I use the black gradient in CSS?

Set background: linear-gradient(135deg, #000000 0%, #1c1e22 100%); on any element. It works in every modern browser.

How do I use the black gradient in Tailwind?

Use bg-gradient-to-br from-[#000000] to-[#1c1e22], or the exact arbitrary value bg-[image:linear-gradient(135deg,#000000_0%,#1c1e22_100%)].

Similar gradients

More: Dark gradientsAll gradients