niceui

Dark Gradient

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

CSS

.dark-bg {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
}

Tailwind CSS

With Tailwind's gradient utilities:

bg-gradient-to-b from-[#18181b] to-[#09090b]

Or the exact gradient as an arbitrary value:

bg-[image:linear-gradient(180deg,#18181b_0%,#09090b_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 dark gradient in CSS?

Set background: linear-gradient(180deg, #18181b 0%, #09090b 100%); on any element. It works in every modern browser.

How do I use the dark gradient in Tailwind?

Use bg-gradient-to-b from-[#18181b] to-[#09090b], or the exact arbitrary value bg-[image:linear-gradient(180deg,#18181b_0%,#09090b_100%)].

Similar gradients

More: Dark gradientsAll gradients