Diamond GridA faint canvas grid of diamonds.

BackgroundsHero sectionLanding pageSection divider

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/diamond-grid
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Install with AI Canvas MCP

With AI Canvas MCP, your AI knows every component we ship. Ask for one inside Claude Code, Codex, or Cursor and it installs the component you pick. Works with any AI Canvas account, free or premium.

About Diamond Grid

Diamond Grid is a full-bleed canvas background built from a near-invisible square grid, rotated forty-five degrees so it reads as diamonds. Thirty-four seeded ignition points fire in sequence, lighting up as four-point stars and sending light outward along the four grid axes with one continuous ease-out, until opposing fronts meet and reveal the pattern. A broad top-left-to-bottom-right mask keeps the center bright while the other two corners fade away. The 64-second loop is seamless and deterministic from a seed prop, replaying on reload. Built on plain canvas with zero dependencies beyond React, it suits hero sections, landing pages, and section dividers that want ambient motion without competing with foreground copy.

Built with

CanvasTailwind CSS

Frequently asked questions

Is Diamond Grid free to use?
Yes. Diamond Grid is part of the free AI Canvas library and is open source under the MIT license, so you can use it in personal and commercial projects.
How do I install Diamond Grid?
One command: npx shadcn@latest add https://aicanvas.me/r/diamond-grid.json, free with a free AI Canvas account. Or connect the AI Canvas MCP server and ask your AI editor to install Diamond Grid for you. You can also copy the source straight from the Code tab, no account needed. It works in any React project with Tailwind CSS.
What is Diamond Grid built with?
Diamond Grid is built with React and TypeScript, using Canvas and Tailwind CSS. It ships with both light and dark styling.
Where would I use Diamond Grid?
Common uses include Hero section, Landing page, and Section divider. Like every AI Canvas component, it is self-contained and drops into any React project.
Can I remix Diamond Grid with AI?
Yes. Diamond Grid ships with one comprehensive AI prompt written against the real source code. Open "Remix with AI" on this page to read and copy it into Claude, Cursor, ChatGPT, or any AI tool. Prompts are for remixing your own variation; for the exact component, install it with the one-command CLI.

Featured in collections

More like this