Serafim

Pixel Canvas

Buttons 936

About

Pixel Canvas

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Pixel Canvas to your project and fits it to your theme.

Code

How Pixel Canvas is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { CodeIcon } from "lucide-react"
import { PixelCanvas } from "@/components/ui/pixel-canvas"

function PixelCanvasDemo() {
  return (
    <div className="w-[300px] mx-auto">
      <button 
        className="group relative w-full overflow-hidden border border-border rounded-[32px] aspect-square transition-colors duration-200 hover:border-[#0ea5e9] focus:outline-[5px] focus:outline-[Highlight]"
        style={{ "--active-color": "#0ea5e9" } as React.CSSProperties}
      >
        <PixelCanvas
          gap={10}
          speed={25}
          colors={["#e0f2fe", "#7dd3fc", "#0ea5e9"]}
          variant="icon"
        />
        <div className="relative z-10 h-full w-full flex items-center justify-center">
          <CodeIcon className="w-20 h-20 text-muted-foreground transition-all duration-300 ease-out group-hover:scale-110 group-hover:text-[var(--active-color)]" />
        </div>
      </button>
    </div>
  )
}

export { PixelCanvasDemo }

Dependencies

More by Serafim

View all
  • Spline Scene

    Spline Scene

    9.9K
  • Testimonials with Marquee

    Testimonials with Marquee

    2.5K
  • Gradient Button

    Gradient Button

    2.1K
  • Animated Blur Number

    Animated Blur Number

    841
  • Balloons

    Balloons

    822
  • Empty State

    Empty State

    812
  • Status Badge

    Status Badge

    708
  • Hover Button

    Hover Button

    561

More in Buttons

View all
  • Button

    Button

    166
  • Texture Button

    Texture Button

    121
  • Button

    Button

    21
  • Figma File Button

    Figma File Button

    39
  • Native Button

    Native Button

    12
  • Button

    Button

    88
  • HeroUI Button Group

    HeroUI Button Group

    11
  • Great UI Button

    Great UI Button

    19