my/ui

Command Palette

Search for a command to run...

All components

Mean Fruit

gradients

A "Mean Fruit" 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-mean-fruit.json

Usage

import { GradientMeanFruit } from "@/registry/gradients/mean-fruit";

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

Component source

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

/** "Mean Fruit" gradient. */
export const GradientMeanFruit_CSS = "linear-gradient(120deg, #fccb90 0%, #d57eeb 100%)";

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

Source: WebGradients