my/ui

Command Palette

Search for a command to run...

All components

Dusty Grass

gradients

A "Dusty Grass" CSS gradient.

responsive · 600px

Install

Same command in any shadcn project — React (Vite/CRA), Next.js, Remix, Astro, and more:

$npx shadcn@latest add https://your-domain/r/gradient-dusty-grass.json

Usage

import { GradientDustyGrass } from "@/registry/gradients/dusty-grass";

export default function Demo() {
  return <GradientDustyGrass />;
}

Component source

import * as React from "react";
import { cn } from "@/lib/utils";

/** "Dusty Grass" gradient. */
export const GradientDustyGrass_CSS = "linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%)";

export function GradientDustyGrass({ className, style, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      className={cn("h-40 w-full rounded-xl", className)}
      style={{ backgroundImage: "linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%)", ...style }}
      {...props}
    />
  );
}

Source: WebGradients