Grid Glow Background
Add a faint grid, a warm glow, and shaded edges behind a hero section.
- Dependencies
- No extra packages
- Size
- 139 lines
- Controls
- 8 controls
Installation
CLI · shadcn registry
npx shadcn@latest add https://ui.onycx.dev/r/grid-glow-background.json1 · Dependencies
None beyond React and Tailwind.
2 · Copy the source
components/onycx/grid-glow-background.tsx
Requires React 19 and Tailwind CSS v4. Copy the source from the grid-glow-background.tsx tab after tweaking: your values are baked in as the new defaults. Exported image examples use portable sample artwork. Replace it with your own media as needed.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactNode | — | Rendered above every layer. Without children the original hero renders: topline, two-line title, artwork and a footer row with a pill link. |
| glow / mid / deep / dark / base | string | "#f16001" / "#d12f00" / "#800900" / "#210604" / "#090909" | Gradient stops at 0 / 28 / 52 / 76 / 100%; base also tints the vignette (75% top, 91% bottom). |
| gridSize / gridOpacity | number | 80 / 0.031 | Cell size and line strength; masked from transparent on the left to full on the right. |
| minHeight / height | number / string | 920 / "min(100svh, 1120px)" | Section sizing; pass className for other heights. |
| image / imageAlt | string | "/media/hand-hero/hero-hand.webp" | Artwork of the default hero (ignored with children). |