Components/GretTech/Horizon Grid

Horizon Grid

A synthwave scene for heroes: an endless neon grid floor racing toward a striped sun setting behind the horizon. Day and night palettes follow the theme. Pure CSS.

v0

Installation

Full Setup guide

Install the component automatically via Shadcn CLI.

npx shadcn@latest add https://www.grettech.com/api/registry/horizon-grid

Other Examples

Full Bleed Hero

v0

Props

PropTypeDefaultDescription
children
React.ReactNode-Content shown over the scene.
sky
[string, string]Pastel pink by day, deep violet by night (follows the theme)Sky gradient from the top to the horizon.
ground
string"#fdf4ff" light, "#05010f" darkGround colour below the horizon.
sun
[string, string, string]["#fde68a", "#fb7185", "#c026d3"]Sun gradient, top to bottom.
gridColor
string"#c026d3" light, "#e879f9" darkColour of the grid lines and the horizon glow.
horizon
number58Horizon height in % from the top.
speed
number0.8Seconds for the grid to move one cell; lower is faster.
cellSize
number56Grid cell size in px.
showSun
booleantrueShows the sun.
className
string-Extra classes for the scene.
...props
React.HTMLAttributes<HTMLDivElement>-Any other attributes, passed to the scene.